search for: yytext

Displaying 20 results from an estimated 31 matches for "yytext".

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
...[101]; extern int printstats, syntaxerror, eofseen, ddebug, trace, nowarn, spprdflt; extern int interactive, caseins, lex_compat, do_yylineno; extern int useecs, fulltbl, usemecs, fullspd; extern int gen_line_dirs, performance_report, backing_up_report; extern int C_plus_plus, long_align, use_read, yytext_is_array, do_yywrap; extern int csize; extern int yymore_used, reject, real_reject, continued_action, in_rule; extern int yymore_really_used, reject_really_used; extern int datapos, dataline, linenum, out_linenum; extern FILE *skelfile, *yyin, *backing_up_file; extern const char *skel[]; extern int...
2008 Jan 12
1
[LLVMdev] Labels
...%struct._IO_FILE*, i32 } %struct.yythunk = type { i32, i32, void (i8*, i32)*, %struct.yythunk* } @yybuf = global i8* null @yyvalslen = global i32 0 @yyvals = global i32* null @yyval = global i32* null @yythunkpos = global i32 0 @yythunkslen = global i32 0 @yythunks = global %struct.yythunk* null @yytextmax = global i32 0 @yyend = global i32 0 @yybegin = global i32 0 @yytextlen = global i32 0 @yytext = global i8* null @yylimit = global i32 0 @yypos = global i32 0 @yybuflen = global i32 0 @stdin = external global %struct._IO_FILE* @yy = weak global i32 0 define i32 @yyrefill() { entry: %tmp842 = l...
2017 Oct 26
1
[PATCH] builder: ignore spaces after repo identifiers (RHBZ#1506511)
...++ 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; } diff --g...
2014 Jan 22
1
[PATCH] builder: fix small regression in subkey parsing
...builder/index-scan.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/index-scan.l b/builder/index-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 {...
2014 Jan 21
0
[PATCH] builder: proper consider subkeys in index files
...e3..7a9618f 100644 --- a/builder/index-scan.l +++ b/builder/index-scan.l @@ -58,10 +58,17 @@ extern void yyerror (const 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); + i...
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
...e3..7a9618f 100644 --- a/builder/index-scan.l +++ b/builder/index-scan.l @@ -58,10 +58,17 @@ extern void yyerror (const 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); + i...
2014 Mar 19
7
[PATCH 1/3] builder: make the C index parser reentrant
...t;.*\n { yyextra->seen_comments++; } /* An empty line is significant. */ ^\n { return EMPTY_LINE; } /* [...] marks beginning of a section. */ ^"["[-A-Za-z0-9._]+"]"\n { - yylval.str = strndup (yytext+1, yyleng-3); + yylval->str = strndup (yytext+1, yyleng-3); return SECTION_HEADER; } /* field=value or field[subfield]=value */ ^[A-Za-z0-9_.]+("["[A-Za-z0-9_,.]+"]")?"=".*\n {...
2013 Nov 26
7
[PATCH RESEND 0/1] libxl: introduce an option for disabling the non-O_DIRECT
I think I posted this patch before, but it looks like it was in December 2012 (!). 1/1 libxl: introduce an option for disabling the non-O_DIRECT workaround Ideally it would go into 4.4, at least. Provided the corresponding qemu part has gone into qemu-xen, which I think it has. Can anyone confirm ?
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.
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
1999 Nov 23
1
compile error for mkString on alpha (PR#332)
...rces: 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 works. BTW, the...
2003 Aug 07
2
segmentation fault: formula() with long variable names (PR#3680)
R version: 1.7.1 OS: Red Hat Linux 7.2 In this example, I would expect an error for the overly long variable name. This is always reproducable for me. > formula(paste("y~",paste(rep("x",50000),collapse=""))) Segmentation fault Sincerely, Jerome Asselin -- Jerome Asselin (Jérôme), Statistical Analyst British Columbia Centre for Excellence in HIV/AIDS St.
2001 Jun 22
0
Half-Life: Selected Mode is not supported by your card
...ing for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for bison... bison -y checking for flex... flex checking for yywrap in -lfl... yes checking for flex... flex checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for ranlib... ranlib checking for a BSD compatible install... /usr/bin/install -c checking whether ln -s works... yes checking for c2man... $(TOPSRCDIR)/tools/c2man.pl checking for ldconfig... /sbin/ldconfig checking for Cygwin environment... no checking for dllwrap......
2009 Feb 19
0
[LLVMdev] -fPIC warning on every compile on Cygwin
Aaron Gray wrote: > Hi, > > I partly built LLVM on Cygwin yesterday and it was fine as far as it > went. But after doing a svn update today I am getting the following > warning on every compile :- > > > llvm[3]: Compiling LowerAllocations.cpp for Debug build > /usr/src/llvm/lib/Transforms/Utils/LowerAllocations.cpp:1: warning: > -fPIC ignored for
2009 Feb 19
2
[LLVMdev] -fPIC warning on every compile on Cygwin
Hi, I partly built LLVM on Cygwin yesterday and it was fine as far as it went. But after doing a svn update today I am getting the following warning on every compile :- llvm[3]: Compiling LowerAllocations.cpp for Debug build /usr/src/llvm/lib/Transforms/Utils/LowerAllocations.cpp:1: warning: -fPIC ignored for target (all code is position independent) This maybe happening on other targets too.
2009 Feb 19
2
[LLVMdev] -fPIC warning on every compile on Cygwin
...ption to accept ISO C89... (cached) none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking ... checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking ... checking for bison... bison -y checking for BSD-compatible nm... /usr/bin/nm -B checking for GNU make... make checking whether ln -s works... yes checking for cmp... /usr/bin/cmp checking for cp... /usr/bin/cp checking for date... /usr/bin/date checking for find.....
2005 Nov 08
2
[LLVMdev] llvm-test configure problem
...|| test ! -s conftest.err configure:3195: $? = 0 configure:3198: test -s conftest configure:3201: $? = 0 configure:3214: result: yes configure:3225: checking lex output file root configure:3236: flex conftest.l configure:3239: $? = 0 configure:3251: result: lex.yy configure:3256: checking whether yytext is a pointer configure:3272: gcc -o conftest -g -O2 conftest.c -ll >&5 configure:3278: $? = 0 configure:3282: test -z || test ! -s conftest.err configure:3285: $? = 0 configure:3288: test -s conftest configure:3291: $? = 0 configure:3305: result: yes configure:3318: result: configur...
2005 Nov 08
0
[LLVMdev] llvm-test configure problem
What's the config.log from this run? -bw On 11/3/05, Tanya Lattner <tonic at nondot.org> wrote: > > Following the instructions here: > http://llvm.cs.uiuc.edu/docs/TestingGuide.html#run > > I get an error running configure in the llvm-test directory. > > ./configure > --with-llvmgccdir=/localhome/tbrethou/cfrontend/sparc/llvm-gcc/ >