Commit 94f215ec authored by Philip Carns's avatar Philip Carns
Browse files

missing update from CODES (support conf comments)

parent c7ff9d37
...@@ -82,6 +82,7 @@ BACKSLASH "\\" ...@@ -82,6 +82,7 @@ BACKSLASH "\\"
} }
"//" { LOC_COL_ADV(1); yy_push_state(COMMENT, yyscanner); } "//" { LOC_COL_ADV(1); yy_push_state(COMMENT, yyscanner); }
"#" { LOC_COL_ADV(1); yy_push_state(COMMENT, yyscanner); }
<COMMENT>\n { LOC_LINE_ADV(1); yy_pop_state( yyscanner ); } <COMMENT>\n { LOC_LINE_ADV(1); yy_pop_state( yyscanner ); }
<COMMENT>[^\n]+ { LOC_COL_DEF_ADV; } <COMMENT>[^\n]+ { LOC_COL_DEF_ADV; }
...@@ -190,7 +191,7 @@ BACKSLASH "\\" ...@@ -190,7 +191,7 @@ BACKSLASH "\\"
{ {
char buf[512]; char buf[512];
snprintf (buf, sizeof(buf), "ID too long: Maximum ID" snprintf (buf, sizeof(buf), "ID too long: Maximum ID"
" length is %zu bytes!", sizeof(yylval->string_buf)); " length is %lu bytes!", sizeof(yylval->string_buf));
return cfgp_lex_error (yyextra, return cfgp_lex_error (yyextra,
yylloc->last_line, yylloc->last_column, buf); yylloc->last_line, yylloc->last_column, buf);
} }
......
#include "codes_base_config.h"
#include <string.h> #include <string.h>
#include <assert.h> #include <assert.h>
#include "codes_base_config.h"
#include "configstore.h"
#ifdef HAVE_MALLOC_H #ifdef HAVE_MALLOC_H
#include <malloc.h> #include <malloc.h>
#endif #endif
#ifdef HAVE_STDLIB_H #include "configstore.h"
#include <stdlib.h>
#endif
struct mcs_entry struct mcs_entry
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment