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:
parent
c65cd8256b
commit
436b0cafc0
2
parse.c
2
parse.c
|
@ -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)
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue