Patched to compile.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 18 Feb 2009 14:43:16 -0500
changeset 654 9210bd7eb2e2
parent 653 c1eb8cca56f8
child 655 0b82fdeebf86
Patched to compile.
mojoshader_preprocessor.c
--- a/mojoshader_preprocessor.c	Wed Feb 18 14:43:11 2009 -0500
+++ b/mojoshader_preprocessor.c	Wed Feb 18 14:43:16 2009 -0500
@@ -694,7 +694,7 @@
 {
     const Token token = lexer(state);
     pushback(state);  // rewind no matter what.
-    return ( (token == TOKEN_INCOMPLETE_COMMENT) // call it an eol.
+    return ( (token == TOKEN_INCOMPLETE_COMMENT) || // call it an eol.
              (token == ((Token) '\n')) || (token == TOKEN_EOI) );
 } // require_newline
 
@@ -884,11 +884,9 @@
     init_buffer(&buffer);
 
     int done = 0;
-    const char *source = NULL;
     state->report_whitespace = 1;
     while ((!done) && (!ctx->out_of_memory))
     {
-        bytes_left = state->bytes_left;
         const Token token = lexer(state);
         switch (token)
         {