Displaying 2 results from an estimated 2 matches for "310870d".
2014 Apr 22
3
[PATCH 1/2] builder: add an optional suffix string for INI parsing errors
---
builder/index-parse.y | 6 ++++--
builder/index-parser-c.c | 3 ++-
builder/index-struct.h | 1 +
builder/ini_reader.ml | 6 +++---
builder/ini_reader.mli | 2 +-
5 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/builder/index-parse.y b/builder/index-parse.y
index 310870d..7ddef53 100644
--- a/builder/index-parse.y
+++ b/builder/index-parse.y
@@ -150,12 +150,14 @@ emptylines:
void
yyerror (YYLTYPE * yylloc, yyscan_t scanner, struct parse_context *context, const char *msg)
{
- fprintf (stderr, "%s%s%s%ssyntax error at line %d: %s\n",
+ fprintf (stderr,...
2014 Apr 02
2
[PATCH] builder: better handle some index parsing errors
...le such kind of parsing
errors, removing the need to exit() directly (and leave things in an
unclean state).
---
builder/index-parse.y | 1 +
builder/index-scan.l | 5 +----
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/builder/index-parse.y b/builder/index-parse.y
index f08a683..310870d 100644
--- a/builder/index-parse.y
+++ b/builder/index-parse.y
@@ -78,6 +78,7 @@ typedef void *yyscan_t;
%token EMPTY_LINE
%token PGP_PROLOGUE
%token PGP_EPILOGUE
+%token UNKNOWN_LINE
%type <section> sections section
%type <field> fields field
di...