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:
Dave Beazley 2000-07-12 19:23:43 +00:00
commit 9053ebe332
10 changed files with 261 additions and 256 deletions

View file

@ -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);
}
// ---------------------------------------------------------------------