Changeset 275 for trunk/idl-compiler


Ignore:
Timestamp:
Mar 26, 2007, 10:17:04 PM (18 years ago)
Author:
cinc
Message:

Added filestem parsing.

Location:
trunk/idl-compiler
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/idl-compiler/Makefile

    r271 r275  
    3636                        $(OBJDIR)/lineinfo_parser.o \
    3737                        $(OBJDIR)/metaclass_parser.o \
     38                        $(OBJDIR)/filestem_parser.o \
    3839                        $(OBJDIR)/h_file_emitter.o \
    3940                        $(OBJDIR)/printdata.o
  • trunk/idl-compiler/c/nom-idl-compiler.c

    r272 r275  
    8585  {"NOMCLASSNAME", IDL_SYMBOL_CLSNAME, KIND_UNKNOWN},
    8686  {"NOMMETACLASS", IDL_SYMBOL_OLDMETACLASS, KIND_UNKNOWN},
    87   {"MetaClass", IDL_SYMBOL_METACLASS, KIND_UNKNOWN},
     87  {"metaclass", IDL_SYMBOL_METACLASS, KIND_UNKNOWN},
     88  {"filestem", IDL_SYMBOL_FILESTEM, KIND_UNKNOWN},
    8889  {"native", IDL_SYMBOL_NATIVE, KIND_UNKNOWN},
    8990  {"gulong", IDL_SYMBOL_GULONG, KIND_TYPESPEC},
  • trunk/idl-compiler/c/printdata.c

    r272 r275  
    146146      g_printf("\tMetaclass:\t%s\n", (pif->chrMetaClass ? pif->chrMetaClass : "None"));
    147147      g_printf("\tSource file:\t%s\n", pif->chrSourceFileName);
     148      if(pif->chrFileStem)
     149        g_printf("\tFile stem:\t%s\n", pif->chrFileStem);
    148150      /* Print instance vars */
    149151      g_printf("\tInstance vars:\t%d\n", pif->pInstanceVarArray->len);
     
    168170  g_printf("\tMetaclass:\t%s\n", (pif->chrMetaClass ? pif->chrMetaClass : "None"));
    169171  g_printf("\tSource file:\t%s\n", pif->chrSourceFileName);
     172  if(pif->chrFileStem)
     173    g_printf("\tFile stem:\t%s\n", pif->chrFileStem);
    170174  /* Print instance vars */
    171175  g_printf("\tInstance vars:\t%d\n", pif->pInstanceVarArray->len);
  • trunk/idl-compiler/include/parser.h

    r272 r275  
    8585  char*  chrSourceFileName; /* The preprocessor includes files for us. This is the info
    8686                               about the file this interface is defined in. */
     87  char*  chrFileStem;  /* Holding output filestem */
    8788  GPtrArray *pMethodArray;
    8889  GPtrArray *pOverrideArray;
     
    125126  IDL_SYMBOL_OLDMETACLASS,
    126127  IDL_SYMBOL_METACLASS,
     128  IDL_SYMBOL_FILESTEM,      /* Followed by the file name for output */
    127129  IDL_SYMBOL_NATIVE,
    128130  /* Some GLib types */
     
    171173void parsePreprocLineInfo(void);
    172174void parseMetaClass(void);
     175void parseFileStem(void);
    173176
    174177void emitHFile(GPtrArray* pInterfaceArray);
  • trunk/idl-compiler/parser_c/interface_parser.c

    r272 r275  
    129129          case IDL_SYMBOL_METACLASS:
    130130            parseMetaClass();
     131            break;
     132          case IDL_SYMBOL_FILESTEM:
     133            parseFileStem();
    131134            break;
    132135          default:
Note: See TracChangeset for help on using the changeset viewer.