Changeset 272 for trunk/idl-compiler/c/nom-idl-compiler.c
- Timestamp:
- Mar 25, 2007, 8:49:46 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/idl-compiler/c/nom-idl-compiler.c
r271 r272 73 73 74 74 /* The pointer array holding the interfaces we found */ 75 GPtrArray* pInterfaceArray;75 //GPtrArray* pInterfaceArray; 76 76 77 77 /* Symbols defined for our IDL language. … … 110 110 GScanner *gScanner; 111 111 112 /* Holding info about current token. Referenced by gScanner. */ 113 //SYMBOLINFO curSymbol; 114 115 /* Holding the current state of parsing and pointers to necessary lists. */ 112 /* Holding the current state of parsing and pointers to necessary lists. 113 Referenced by gScanner-user_data. */ 116 114 PARSEINFO parseInfo={0}; 117 PPARSEINFO pParseInfo=&parseInfo; 115 PPARSEINFO pParseInfo=&parseInfo; /* This pointer will go away, don't use */ 118 116 119 117 /** … … 129 127 int a; 130 128 131 for(a=0;a<p InterfaceArray->len;a++)132 { 133 PINTERFACE pif=g_ptr_array_index(p InterfaceArray, a);129 for(a=0;a<parseInfo.pInterfaceArray->len;a++) 130 { 131 PINTERFACE pif=g_ptr_array_index(parseInfo.pInterfaceArray, a); 134 132 if(!strcmp(chrName, pif->chrName)) 135 133 return pif; … … 630 628 631 629 gScanner=g_scanner_new(NULL); 632 //gScanner->user_data=(gpointer)&curSymbol;630 gScanner->user_data=(gpointer)&parseInfo; 633 631 634 632 gScanner->msg_handler=funcMsgHandler; 635 p InterfaceArray=g_ptr_array_new();633 parseInfo.pInterfaceArray=g_ptr_array_new(); 636 634 637 635 g_scanner_input_file(gScanner, fd); … … 659 657 /* Write the output file */ 660 658 if(fOptionEmitH) 661 emitHFile(p InterfaceArray);659 emitHFile(parseInfo.pInterfaceArray); 662 660 663 661 #if 0
Note:
See TracChangeset
for help on using the changeset viewer.