search for: yylval

Displaying 20 results from an estimated 20 matches for "yylval".

Did you mean: byval
2014 Mar 19
7
[PATCH 1/3] builder: make the C index parser reentrant
...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 strings with \n */ static char * @@ -52,6 +57,14 @@ concat_newline (const char *str1, const char *str2) %...
2013 Aug 20
1
xen 4.4 code bug
So i am 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'...
2014 Jan 22
1
[PATCH] builder: fix small regression in subkey parsing
...x-scan.l index 7a9618f..e43f82e 100644 --- a/builder/index-scan.l +++ b/builder/index-scan.l @@ -65,7 +65,7 @@ extern void yyerror (const char *); if (yytext[i] == '[') { size_t j = strcspn (yytext+i+1, "]"); yylval.field->subkey = strndup (yytext+i+1, j); - i += 1+j+2; + i += 1+j+1; } else { yylval.field->subkey = NULL; } -- 1.8.3.1
2014 Jan 21
0
[PATCH] builder: proper consider subkeys in index files
...onst char *); /* field=value or field[subfield]=value */ ^[A-Za-z0-9_.]+("["[A-Za-z0-9_,.]+"]")?"=".*\n { - size_t i = strcspn (yytext, "="); + size_t i = strcspn (yytext, "=["); yylval.field = malloc (sizeof (struct field)); yylval.field->next = NULL; yylval.field->key = strndup (yytext, i); + if (yytext[i] == '[') { + size_t j = strcspn (yytext+i+1, "]"); +...
2017 Oct 26
1
[PATCH] builder: ignore spaces after repo identifiers (RHBZ#1506511)
...- a/builder/index-scan.l +++ b/builder/index-scan.l @@ -78,8 +78,9 @@ extern void scanner_destroy (yyscan_t scanner); ^\n { return EMPTY_LINE; } /* [...] marks beginning of a section. */ -^"["[-A-Za-z0-9._]+"]"\n { - yylval->str = strndup (yytext+1, yyleng-3); +^"["[-A-Za-z0-9._]+"]"[[:blank:]]*\n { + const char *end = strrchr (yytext, ']'); + yylval->str = strndup (yytext+1, end-yytext-1); return SECTION_HEADER;...
2014 Jan 21
2
Re: [PATCH] builder: proper consider subkeys in index files
On Tuesday 21 January 2014 16:37:20 Richard W.M. Jones wrote: > On Tue, Jan 21, 2014 at 05:18:27PM +0100, Pino Toscano wrote: > > + sv = caml_copy_string (fields->subkey ? fields->subkey : ""); > > > > Store_field (v, 1, sv); > > Heh, sure would be nice if this was an option type :-) > > I believe the following should work: > >
2014 Jan 21
3
[PATCH] builder: proper consider subkeys in index files
...onst char *); /* field=value or field[subfield]=value */ ^[A-Za-z0-9_.]+("["[A-Za-z0-9_,.]+"]")?"=".*\n { - size_t i = strcspn (yytext, "="); + size_t i = strcspn (yytext, "=["); yylval.field = malloc (sizeof (struct field)); yylval.field->next = NULL; yylval.field->key = strndup (yytext, i); + if (yytext[i] == '[') { + size_t j = strcspn (yytext+i+1, "]"); +...
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
...y/tools/src/gramLatex.c 2015-12-17 14:50:14.000000000 +0000 @@ -1358,7 +1358,7 @@ /* The lookahead symbol. */ - int yychar; + extern int yychar; #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.d...
1999 Nov 23
1
compile error for mkString on alpha (PR#332)
...e preprocessed sources: cc -I. -I../include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H -ieee_with_inexact -g -E gram.c > gram.E grep -n mkString gram.E 8915:SEXP mkString(const char*); 9564:SEXP mkString(const char *); 11995:SEXP mkString( char *s) 12179: protect(yylval = mkString(yytext)); I don't know why the third occurrence of "mkString(const char*);" (line 11995 of preproccessor output) has the "const" removed, it is present in the source! But the trick with typedefing "const char" to "cconst" in the patch above...
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
2007 Sep 18
1
[LLVMdev] 2.1 Pre-Release Available (testers needed)
...e \ -o build/gengtype-lex.o gengtype-lex.c ../../llvm-gcc4.0-2.1.source/gcc/gengtype-lex.l:31:27: error: gengtype-yacc.h: No such file or directory ../../llvm-gcc4.0-2.1.source/gcc/gengtype-lex.l: In function 'yylex': ../../llvm-gcc4.0-2.1.source/gcc/gengtype-lex.l:220: error: 'yylval' undeclared (first use in this function) [...] gmake[1]: *** [build/gengtype-lex.o] Error 1 gmake[1]: Leaving directory `/home/emil/ll/objdir-gcc/gcc' gmake: *** [all-gcc] Error 2 If I install bison and try again from the top, it succeeds. --Emil
2023 Jul 21
1
tools::parseLatex() crashes on "\\verb{}"
..._PUSH('r'); > TEXT_PUSH('b'); > TEXT_PUSH(c); > - while ((c = xxgetc()) != delim) TEXT_PUSH(c); > - TEXT_PUSH(c); > + while (((c = xxgetc()) != delim) && c != R_EOF) TEXT_PUSH(c); > + if (c != R_EOF) TEXT_PUSH(c); > > PRESERVE_SV(yylval = mkString2(stext, bp - stext)); > if(stext != st0) free(stext); > > This seems to have been the only remaining while loop in gramLatex.y > that didn't check for R_EOF. > > More correctness work is needed: mkMarkup() should avoid calling > mkVerb(R_EOF) when running to...
2012 Nov 29
2
[LLVMdev] problem trying to write an LLVM register-allocation pass
I have a new problem: Register RBP is used in a function foo. (I am not allocating RBP to any virtual register, the instances of RBP in function foo are in the machine code when my register allocator starts.) Function foo calls function bar. Register RBP is not saved across the call, though it is live after the call. Function bar includes a virtual register. The code that I'm using to
2012 Dec 01
0
[LLVMdev] problem trying to write an LLVM register-allocation pass
...2, num_reallocs; extern int tmpuses, totnst, peakpairs, numuniq, numdup, hshsave; extern int num_backing_up, bol_needed; void *allocate_array (int, size_t); void *reallocate_array (void*, int, size_t); void *flex_alloc (size_t); void *flex_realloc (void*, size_t); void flex_free (void*); extern int yylval; extern void ccladd (int, int); extern int cclinit (void); extern void cclnegate (int); extern void list_character_set (FILE*, int[]); extern void check_for_backing_up (int, int[]); extern void check_trailing_context (int*, int, int*, int); extern int *epsclosure (int*, int*, int[], int*, int*); ex...
2007 Sep 18
0
[LLVMdev] 2.1 Pre-Release Available (testers needed)
On Mon, Sep 17, 2007 at 12:25:40PM -0700, Chris Lattner wrote: > On Mon, 17 Sep 2007, Emil Mikulic wrote: > >> The 2.1 pre-release (version 1) is available for testing: > >> http://llvm.org/prereleases/2.1/version1/ > > > > I suspect the utils/TableGen/FileParser.h.cvs in the tarball may be > > stale. I tried building LLVM without bison installed and got:
2007 Sep 17
3
[LLVMdev] 2.1 Pre-Release Available (testers needed)
On Mon, 17 Sep 2007, Emil Mikulic wrote: >> The 2.1 pre-release (version 1) is available for testing: >> http://llvm.org/prereleases/2.1/version1/ > > I suspect the utils/TableGen/FileParser.h.cvs in the tarball may be > stale. I tried building LLVM without bison installed and got: Can you try it again without bison with these files:
2016 Jan 27
2
rstan warning messages
Confirmed that gcc-gfortran is installed Package gcc-gfortran-4.4.7-16.el6.x86_64 already installed and latest version What could I check next? I do not have the following installed and will get that done and tested again. libcurl-devel libidn-devel Thanks, Larry -----Original Message----- From: Tom Callaway [mailto:tcallawa at redhat.com] Sent: Wednesday, January 27, 2016
2016 Jan 28
2
rstan warning messages
...SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c myUTF8.c -o myUTF8.o myUTF8.c: In function 'StringValue': myUTF8.c:284:5: warning: passing argument 1 of 'Rf_mkCharLenCE' from incompatible pointer type [enabled by default] yylval = mkCharLenCE(wcs, wcnt, CE_UTF8); /* include terminator */ ^ In file included from /usr/include/R/Rdefines.h:29:0, from myUTF8.c:3: /usr/include/R/Rinternals.h:890:6: note: expected 'const char *' but argument is of type 'ucs_t *' SEX...
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.