Cleanup of DataType class
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@572 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
20fa159d56
commit
9053ebe332
10 changed files with 261 additions and 256 deletions
|
|
@ -176,14 +176,15 @@ void RUBY::parse() {
|
|||
headers();
|
||||
|
||||
// typedef void *VALUE
|
||||
DataType value;
|
||||
strcpy(value.name, "void");
|
||||
value.type = T_VOID;
|
||||
value.is_pointer = 1;
|
||||
value.implicit_ptr = 0;
|
||||
DataType_typedef_add(&value,(char*)"VALUE",0);
|
||||
DataType *value = NewDataType(0);
|
||||
strcpy(value->name, "void");
|
||||
value->type = T_VOID;
|
||||
value->is_pointer = 1;
|
||||
value->implicit_ptr = 0;
|
||||
DataType_typedef_add(value,(char*)"VALUE",0);
|
||||
|
||||
yyparse(); // Run the SWIG parser
|
||||
DelDataType(value);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue