mojoshader_lexer.re
changeset 649 527cfe6f2d45
parent 648 243e35876142
child 651 05ad72d120a5
equal deleted inserted replaced
648:243e35876142 649:527cfe6f2d45
    53         s->token = (const char *) tok;
    53         s->token = (const char *) tok;
    54     } // else
    54     } // else
    55     s->tokenlen = (unsigned int) (s->source - s->token);
    55     s->tokenlen = (unsigned int) (s->source - s->token);
    56 } // update_state
    56 } // update_state
    57 
    57 
    58 Token preprocessor_internal_lexer(IncludeState *s)
    58 Token preprocessor_lexer(IncludeState *s)
    59 {
    59 {
    60     const uchar *cursor = (const uchar *) s->source;
    60     const uchar *cursor = (const uchar *) s->source;
    61     const uchar *token;
    61     const uchar *token;
    62     const uchar *matchptr;
    62     const uchar *matchptr;
    63     const uchar *limit = cursor + s->bytes_left;
    63     const uchar *limit = cursor + s->bytes_left;
   221     ANY             { goto bad_chars; }
   221     ANY             { goto bad_chars; }
   222 */
   222 */
   223 
   223 
   224     assert(0 && "Shouldn't hit this code");
   224     assert(0 && "Shouldn't hit this code");
   225     RET(TOKEN_UNKNOWN);
   225     RET(TOKEN_UNKNOWN);
   226 } // preprocessor_internal_lexer
   226 } // preprocessor_lexer
   227 
   227 
   228 // end of mojoshader_lexer_preprocessor.re (or .c) ...
   228 // end of mojoshader_lexer_preprocessor.re (or .c) ...
   229 
   229