Conditional support for #include for surveyor

git-svn-id: http://picoc.googlecode.com/svn/trunk@202 21eae674-98b7-11dd-bd71-f92a316d2d60
This commit is contained in:
zik.saleeba 2009-03-12 20:44:50 +00:00
parent c65cd8256b
commit 436b0cafc0
2 changed files with 3 additions and 0 deletions

View file

@ -371,6 +371,7 @@ int ParseStatement(struct ParseState *Parser)
CheckTrailingSemicolon = FALSE; CheckTrailingSemicolon = FALSE;
break; break;
#ifndef NO_HASH_INCLUDE
case TokenHashInclude: case TokenHashInclude:
{ {
struct Value *LexerValue; struct Value *LexerValue;
@ -381,6 +382,7 @@ int ParseStatement(struct ParseState *Parser)
CheckTrailingSemicolon = FALSE; CheckTrailingSemicolon = FALSE;
break; break;
} }
#endif
case TokenSwitch: case TokenSwitch:
if (LexGetToken(Parser, NULL, TRUE) != TokenOpenBracket) if (LexGetToken(Parser, NULL, TRUE) != TokenOpenBracket)

View file

@ -48,6 +48,7 @@
# ifdef SURVEYOR_HOST # ifdef SURVEYOR_HOST
# define NO_FP # define NO_FP
# define NO_CTYPE # define NO_CTYPE
# define NO_HASH_INCLUDE
# include <cdefBF537.h> # include <cdefBF537.h>
# include "../string.h" # include "../string.h"
# include "../print.h" # include "../print.h"