Fix struct extraction on unix

This commit is contained in:
Yamagi Burmeister 2011-10-04 11:44:02 +00:00
parent 0226514ad0
commit 002108ace6

View file

@ -512,6 +512,8 @@ void GetTypeNamesFromFile (char *filename, char *typeName)
int isExtern = 0; int isExtern = 0;
tokenList_t *listHead; tokenList_t *listHead;
printf("BANANE!\n");
listHead = NULL; listHead = NULL;
source = LoadSourceFile( filename ); source = LoadSourceFile( filename );
if ( !source ) { if ( !source ) {
@ -824,6 +826,9 @@ int main (int argc, char *argv[])
for ( i = argbase; i < firstParm; i++ ) for ( i = argbase; i < firstParm; i++ )
{ {
printf( "%d: %s\n", i, argv[i] ); printf( "%d: %s\n", i, argv[i] );
if (typeExtract)
GetTypeNamesFromFile (argv[i], typeName);
else
GetFunctionNamesFromFile (argv[i]); GetFunctionNamesFromFile (argv[i]);
} }
if (typeExtract) if (typeExtract)