mojoshader_internal.h
changeset 620 1c4cf996004e
parent 612 72ccfe69eaf1
child 625 bfb4016d9404
equal deleted inserted replaced
619:e98a8aa6efb0 620:1c4cf996004e
   373 
   373 
   374 // This is opaque.
   374 // This is opaque.
   375 struct Preprocessor;
   375 struct Preprocessor;
   376 typedef struct Preprocessor Preprocessor;
   376 typedef struct Preprocessor Preprocessor;
   377 
   377 
       
   378 typedef struct Conditional
       
   379 {
       
   380     Token type;
       
   381     int linenum;
       
   382     int skipping;
       
   383     struct Conditional *next;
       
   384 } Conditional;
       
   385 
   378 typedef struct IncludeState
   386 typedef struct IncludeState
   379 {
   387 {
   380     const char *filename;
   388     const char *filename;
   381     int included;
   389     int included;
   382     const char *source_base;
   390     const char *source_base;
   383     const char *source;
   391     const char *source;
   384     const char *token;
   392     const char *token;
   385     const unsigned char *lexer_marker;
   393     const unsigned char *lexer_marker;
   386     unsigned int bytes_left;
   394     unsigned int bytes_left;
   387     unsigned int line;
   395     unsigned int line;
       
   396     Conditional *conditional_stack;
   388     struct IncludeState *next;
   397     struct IncludeState *next;
   389 } IncludeState;
   398 } IncludeState;
   390 
   399 
   391 Token preprocessor_internal_lexer(IncludeState *s);
   400 Token preprocessor_internal_lexer(IncludeState *s);
   392 
   401