Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Elsa Gonsiorowski
codes
Commits
94f215ec
Commit
94f215ec
authored
Jul 31, 2013
by
Philip Carns
Browse files
missing update from CODES (support conf comments)
parent
c7ff9d37
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/modelconfig/configlex.l
View file @
94f215ec
...
...
@@ -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 %
z
u bytes!", sizeof(yylval->string_buf));
" length is %
l
u bytes!", sizeof(yylval->string_buf));
return cfgp_lex_error (yyextra,
yylloc->last_line, yylloc->last_column, buf);
}
...
...
src/modelconfig/configstore.c
View file @
94f215ec
#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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment