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

missing update from CODES (support conf comments)

parent c7ff9d37
......@@ -82,6 +82,7 @@ BACKSLASH "\\"
}
"//" { 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_COL_DEF_ADV; }
......@@ -190,7 +191,7 @@ BACKSLASH "\\"
{
char buf[512];
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,
yylloc->last_line, yylloc->last_column, buf);
}
......
#include "codes_base_config.h"
#include <string.h>
#include <assert.h>
#include "codes_base_config.h"
#include "configstore.h"
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#include "configstore.h"
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