mojoshader_lexer.c
changeset 649 527cfe6f2d45
parent 619 e98a8aa6efb0
child 653 c1eb8cca56f8
equal deleted inserted replaced
648:243e35876142 649:527cfe6f2d45
    37     s->bytes_left -= (unsigned int) (cur - ((const uchar *) s->source));
    37     s->bytes_left -= (unsigned int) (cur - ((const uchar *) s->source));
    38     s->source = (const char *) cur;
    38     s->source = (const char *) cur;
    39     s->token = (const char *) tok;
    39     s->token = (const char *) tok;
    40 } // update_state
    40 } // update_state
    41 
    41 
    42 Token preprocessor_internal_lexer(IncludeState *s)
    42 Token preprocessor_lexer(IncludeState *s)
    43 {
    43 {
    44     const uchar *cursor = (const uchar *) s->source;
    44     const uchar *cursor = (const uchar *) s->source;
    45     const uchar *token;
    45     const uchar *token;
    46     const uchar *matchptr;
    46     const uchar *matchptr;
    47     const uchar *limit = cursor + s->bytes_left;
    47     const uchar *limit = cursor + s->bytes_left;
  1351 }
  1351 }
  1352 
  1352 
  1353 
  1353 
  1354     assert(0 && "Shouldn't hit this code");
  1354     assert(0 && "Shouldn't hit this code");
  1355     RET(TOKEN_UNKNOWN);
  1355     RET(TOKEN_UNKNOWN);
  1356 } // preprocessor_internal_lexer
  1356 } // preprocessor_lexer
  1357 
  1357 
  1358 // end of mojoshader_lexer_preprocessor.re (or .c) ...
  1358 // end of mojoshader_lexer_preprocessor.re (or .c) ...
  1359 
  1359