Define YY_NO_INPUT. This makes aicasm buildable by clang with Werror

turned on.
This commit is contained in:
Rui Paulo 2010-10-13 10:33:01 +00:00
parent 60982546cd
commit c42a2be28f
2 changed files with 2 additions and 0 deletions

View File

@ -61,6 +61,7 @@
#include "aicasm_symbol.h"
#include "aicasm_macro_gram.h"
#define YY_NO_INPUT
#define MAX_STR_CONST 4096
static char string_buf[MAX_STR_CONST];
static char *string_buf_ptr;

View File

@ -61,6 +61,7 @@
#include "aicasm_symbol.h"
#include "aicasm_gram.h"
#define YY_NO_INPUT
/* This is used for macro body capture too, so err on the large size. */
#define MAX_STR_CONST 4096
static char string_buf[MAX_STR_CONST];