Displaying 10 results from an estimated 10 matches for "yyleng".
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
...rg );
outn( "" );
}
void indent_puts( str )
char str[];
{
do_indent();
outn( str );
}
void make_tables()
{
register int i;
int did_eof_rule = 0;
skelout();
indent_level = 1;
if ( yymore_used )
{
indent_puts( "yytext_ptr -= yy_more_len; \\" );
indent_puts( "yyleng = (int) (yy_cp - yytext_ptr); \\" );
}
else
indent_puts( "yyleng = (int) (yy_cp - yy_bp); \\" );
skelout();
if ( yytext_is_array )
{
indent_puts( "if ( yyleng >= YYLMAX ) \\" );
(++indent_level);
indent_puts(
"YY_FATAL_ERROR( \"token too large,...
2008 Jan 12
1
[LLVMdev] Labels
...%tmp3, i32** @yyval, align 4
ret void
}
define void @yySet(i8* %text, i32 %count)
{
entry:
%tmp = load i32** @yyval, align 4
%tmp1 = load i32* @yy, align 4
%tmp3 = getelementptr i32* %tmp, i32 %count
store i32 %tmp1, i32* %tmp3, align 4
ret void
}
define void @yy_13_body(i8* %yytext, i32 %yyleng)
{
ret void
}
define void @yy_12_body(i8* %yytext, i32 %yyleng)
{
ret void
}
define void @yy_11_body(i8* %yytext, i32 %yyleng)
{
ret void
}
define void @yy_10_body(i8* %yytext, i32 %yyleng)
{
ret void
}
define void @yy_9_body(i8* %yytext, i32 %yyleng)
{
ret void
}
define void @y...
2017 Oct 26
1
[PATCH] builder: ignore spaces after repo identifiers (RHBZ#1506511)
...er/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 --git a/build...
2014 Mar 19
7
[PATCH 1/3] builder: make the C index parser reentrant
...{ 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 {
size_...
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
2014 Jan 21
0
[PATCH] builder: proper consider subkeys in index files
...ytext+i+1, j);
+ i += 1+j+2;
+ } else {
+ yylval.field->subkey = NULL;
+ }
/* Note we chop the final \n off here. */
yylval.field->value = strndup (yytext+i+1, yyleng-(i+2));
return FIELD;
diff --git a/builder/index-struct.c b/builder/index-struct.c
index 26bed24..fe5b0e3 100644
--- a/builder/index-struct.c
+++ b/builder/index-struct.c
@@ -52,6 +52,7 @@ free_field (struct field *field)
if (field) {
free_field (field->next);...
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.
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
...ytext+i+1, j);
+ i += 1+j+2;
+ } else {
+ yylval.field->subkey = NULL;
+ }
/* Note we chop the final \n off here. */
yylval.field->value = strndup (yytext+i+1, yyleng-(i+2));
return FIELD;
diff --git a/builder/index-struct.c b/builder/index-struct.c
index 26bed24..fe5b0e3 100644
--- a/builder/index-struct.c
+++ b/builder/index-struct.c
@@ -52,6 +52,7 @@ free_field (struct field *field)
if (field) {
free_field (field->next);...