Changeset 292 for trunk/idl-compiler/c


Ignore:
Timestamp:
Apr 1, 2007, 5:17:12 PM (18 years ago)
Author:
cinc
Message:

Created C file emitter. Some fixes.

Location:
trunk/idl-compiler/c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/idl-compiler/c/nom-idl-compiler.c

    r289 r292  
    612612  if(fOptionEmitH)
    613613    emitHFile(parseInfo.pInterfaceArray);
    614   if(fOptionEmitIH)
     614  else if(fOptionEmitIH)
    615615    emitIHFile(parseInfo.pInterfaceArray);
    616 
    617 #if 0
    618616  else if(fOptionEmitC)
    619     a++;
    620 
    621   if(pInterfaceArray->len)
    622     printInterface();
    623 #endif
     617    emitCFile(parseInfo.pInterfaceArray);
    624618
    625619  g_scanner_destroy(gScanner);
  • trunk/idl-compiler/c/util.c

    r278 r292  
    162162  return findInterfaceFromName(pif->chrParent);
    163163}
     164
     165gboolean queryMessageReturnsAValue(PMETHOD pm)
     166{
     167  if(pm->mpReturn.uiStar)
     168    return TRUE;
     169
     170  if(!strcmp(pm->mpReturn.chrType, "void"))
     171    return FALSE;
     172
     173  return TRUE;
     174}
     175
Note: See TracChangeset for help on using the changeset viewer.