summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6aac7e4)
raw | patch | inline | side by side (parent: 6aac7e4)
author | Sebastian Harl <sh@tokkee.org> | |
Sun, 23 Feb 2014 04:48:03 +0000 (20:48 -0800) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Sun, 23 Feb 2014 04:48:03 +0000 (20:48 -0800) |
src/frontend/grammar.y | patch | blob | history | |
src/frontend/scanner.l | patch | blob | history |
diff --git a/src/frontend/grammar.y b/src/frontend/grammar.y
index 8b2a8bf27c066d5a3cc0d12a481d01f5847d4d64..e6c627b3a4b966e288c9aadbbcf02ddfea5e0eb6 100644 (file)
--- a/src/frontend/grammar.y
+++ b/src/frontend/grammar.y
list_statement:
LIST
{
- $$ = sdb_object_create_T(/* name = */ NULL, sdb_conn_node_t);
+ $$ = SDB_CONN_NODE(sdb_object_create_T(/* name = */ NULL,
+ sdb_conn_node_t));
((sdb_conn_node_t *)$$)->cmd = CONNECTION_LIST;
}
;
diff --git a/src/frontend/scanner.l b/src/frontend/scanner.l
index a0c05d8ab495fdd7ed4da9e215f0caa280f1b36c..948b6badf155e848c5182ad1ca38f8004a49eb3f 100644 (file)
--- a/src/frontend/scanner.l
+++ b/src/frontend/scanner.l
<CSC>{csc_inside} { /* ignore */ }
<CSC>{csc_end} { BEGIN(INITIAL); }
<CSC><<EOF>> {
- sdb_fe_yyerror(yylval, yyscanner, "unterminated C-style comment");
+ sdb_fe_yyerror(yylloc, yyscanner, "unterminated C-style comment");
return SCANNER_ERROR;
}