search for: yylloc

Displaying 11 results from an estimated 11 matches for "yylloc".

2014 Mar 19
7
[PATCH 1/3] builder: make the C index parser reentrant
...rse.y +++ b/builder/index-parse.y @@ -24,9 +24,14 @@ #include <string.h> #include "index-struct.h" +#include "index-parse.h" -extern void yyerror (const char *); -extern int yylex (void); +#define YY_EXTRA_TYPE struct parse_context * + +extern void yyerror (YYLTYPE * yylloc, yyscan_t scanner, struct parse_context *context, const char *msg); +extern int yylex (YYSTYPE * yylval, YYLTYPE * yylloc, yyscan_t scanner); +extern void scanner_init (yyscan_t *scanner, struct parse_context *context, FILE *in); +extern void scanner_destroy (yyscan_t scanner); /* Join two strin...
2014 Apr 02
2
[PATCH] builder: better handle some index parsing errors
...e <section> sections section %type <field> fields field diff --git a/builder/index-scan.l b/builder/index-scan.l index 073d85f..e3fe377 100644 --- a/builder/index-scan.l +++ b/builder/index-scan.l @@ -29,8 +29,6 @@ #define YY_EXTRA_TYPE struct parse_context * #define YY_USER_ACTION yylloc->first_line = yylloc->last_line = yylineno; -extern void yyerror (YYLTYPE * yylloc, yyscan_t scanner, struct parse_context *context, const char *msg); - %} %option nounput @@ -110,8 +108,7 @@ extern void yyerror (YYLTYPE * yylloc, yyscan_t scanner, struct parse_context *c /* anythin...
2013 Aug 20
1
xen 4.4 code bug
...getting this cc1: warning: -Wformat-nonliteral ignored without -Wformat [-Wformat-nonliteral] libxlu_cfg_y.c: In function ''xlu__cfg_yyparse'': libxlu_cfg_y.c:1292:41: error: ''scanner'' undeclared (first use in this function) yychar = yylex (&yylval, &yylloc, scanner); ^ libxlu_cfg_y.c:1292:41: note: each undeclared identifier is reported only once for each function it appears in make[3]: *** [libxlu_cfg_y.o] Error 1 make[3]: Leaving directory `/data/dev/xen/xen-git/src/xen-build/tools/libxl'' make[2]: *...
2014 Apr 22
3
[PATCH 1/2] builder: add an optional suffix string for INI parsing errors
...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, "%s%s%s%ssyntax error at line %d: %s%s%s\n", context->program_name ? context->program_name : "",...
2015 Jul 08
7
[PATCH 0/6] RFC: basic subscription-manager support in virt-customize
Hi, this series introduces a basic support for registering/attaching/unregistering RHEL guests using subscription-manager, so it is possible to do for example: $ cat <<EOF > sm.conf [general] username=user password=pass [attach-0] pool=ID EOF $ virt-customize -a rhel-guest.qcow2 \ --sm-config sm.conf --sm-register --sm-attach 0 \ --install pkg1 --install pkg2
2015 Dec 18
1
Assistance much appreciated
...#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN @@ -1370,7 +1370,7 @@ #endif /* The semantic value of the lookahead symbol. */ - YYSTYPE yylval YY_INITIAL_VALUE(yyval_default); + extern YYSTYPE yylval YY_INITIAL_VALUE(yyval_default); /* Location data for the lookahead symbol. */ YYLTYPE yylloc @@ -1381,7 +1381,7 @@ /* Number of syntax errors so far. */ - int yynerrs; + extern int yynerrs; /*----------. diff -ru R-3.2.3.dist/src/library/tools/src/gramRd.c R-3.2.3/src/library/tools/src/gramRd.c --- R-3.2.3.dist/src/library/tools/src/gramRd.c 2015-12-09 23:20:01.000000000 +0000...
2015 Dec 17
5
Assistance much appreciated
I have been struggling with this error message - and think I finally understand it's context. Start Line by line debugging shows me the function works: ... > saveRDS(val, mapfile) > val $variables $variables$IANA_HTTP_status_code_db [1] 0 1256 $variables$IANA_URI_scheme_db [1] 1256 3458 $variables$table_of_HTTP_status_codes [1] 4714 830 $references named list() $compressed
2014 Oct 23
17
[PATCH 00/16] Small bits of non-Linux porting
Hi, from time to time, there have been requests (or attempts, like the mingw port posted on the list some months ago) to make libguestfs work on OSes different than Linux. Of course this would imply using a fixed appliance, since it is currently heavily dependent on Linux. The attached series provides some easy changes in this direction, resolving some of the easy issues found in porting to
2016 Mar 06
8
[PATCH 0/5] Use less stack.
Various changes/fixes to use smaller stack frames. Rich.
2016 Mar 07
2
[PATCH v2] Use less stack.
...ames > 5000 bytes. */ +#if defined(__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wframe-larger-than=5000" +#pragma GCC diagnostic ignored "-Wstack-usage=10000" +#endif + #define YY_EXTRA_TYPE struct parse_context * extern void yyerror (YYLTYPE * yylloc, yyscan_t scanner, struct parse_context *context, const char *msg); diff --git a/builder/pxzcat-c.c b/builder/pxzcat-c.c index 4b49e74..1f5ceeb 100644 --- a/builder/pxzcat-c.c +++ b/builder/pxzcat-c.c @@ -250,8 +250,8 @@ parse_indexes (value filenamev, int fd) { lzma_ret r; off_t pos, index_...
2011 Jun 02
48
[PATCH 0/9] libxl: disk configuration handling
This is v3 of my disk series. What were previously patches 01-06 have been applied. These are the tested and updated remainder, addressing the previous comments. 1 Preparatory work. 2-4 The new parser and its documentation. 5-6 Replace old parsers with calls to the new one. 7-8 Two features, one of them essential. 9 Basic test suite for disk string parsing, as adhoc script.