Displaying 8 results from an estimated 8 matches for "emptyline".
Did you mean:
emptylines
2014 Jan 21
1
[PATCH] builder: allow more empty lines in index files
...--
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/builder/index-parse.y b/builder/index-parse.y
index f5e551b..a8d2f62 100644
--- a/builder/index-parse.y
+++ b/builder/index-parse.y
@@ -80,10 +80,10 @@ index:
{ parsed_index = $2; }
sections:
- section
+ section emptylines
{ $$ = $1; }
- | section EMPTY_LINE sections
- { $$ = $1; $$->next = $3; }
+ | section EMPTY_LINE emptylines sections
+ { $$ = $1; $$->next = $4; }
section:
SECTION_HEADER fields
@@ -113,6 +113,12 @@ continuations:
free ($1);
free...
2015 Mar 13
1
[PATCH] builder: handle empty lines in indexes before first section (RHBZ#1201526)
...mode 100644 builder/test-virt-index-validate-good-3
diff --git a/builder/index-parse.y b/builder/index-parse.y
index 8ea2d73..82ea9d2 100644
--- a/builder/index-parse.y
+++ b/builder/index-parse.y
@@ -104,10 +104,10 @@ index:
{ context->parsed_index = $2; }
sections:
- section emptylines
- { $$ = $1; }
- | section EMPTY_LINE emptylines sections
- { $$ = $1; $$->next = $4; }
+ emptylines section emptylines
+ { $$ = $2; }
+ | emptylines section EMPTY_LINE emptylines sections
+ { $$ = $2; $$->next = $5; }
| emptylines
{ $$ =...
2014 Mar 20
3
[PATCH 1/2] builder: allow the index parser to parse files with no sections
...builder/website/validate.sh | 7 +++++++
2 files changed, 9 insertions(+)
diff --git a/builder/index-parse.y b/builder/index-parse.y
index 9355bd4..5133959 100644
--- a/builder/index-parse.y
+++ b/builder/index-parse.y
@@ -108,6 +108,8 @@ sections:
{ $$ = $1; }
| section EMPTY_LINE emptylines sections
{ $$ = $1; $$->next = $4; }
+ | emptylines
+ { $$ = NULL; }
section:
SECTION_HEADER fields
diff --git a/builder/website/validate.sh b/builder/website/validate.sh
index bd9a4ed..f2e24cf 100755
--- a/builder/website/validate.sh
+++ b/builder/website/validate....
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 Mar 19
7
[PATCH 1/3] builder: make the C index parser reentrant
...parse-param { struct parse_context *context }
+
%%
index:
sections
- { parsed_index = $1; }
+ { context->parsed_index = $1; }
| PGP_PROLOGUE sections PGP_EPILOGUE
- { parsed_index = $2; }
+ { context->parsed_index = $2; }
sections:
section emptylines
@@ -122,8 +141,21 @@ emptylines:
%%
void
-yyerror (const char *msg)
+yyerror (YYLTYPE * yylloc, yyscan_t scanner, struct parse_context *context, const char *msg)
{
fprintf (stderr, "syntax error at line %d: %s\n",
- yylloc.first_line, msg);
+ yylloc->first_...
2014 Apr 22
3
[PATCH 1/2] builder: add an optional suffix string for INI parsing errors
....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, "%s%s%s%ssyntax error at line %d: %s%s%s\n",
context->program_name ? context-&...
2023 Feb 20
1
fseek/fgetc puzzle
...o. It turns out that the effective sequence
if((fo = Zopen(name, "a+")) == NULL){
if((fo = Zopen(name, "wx")) == NULL){
...
if(fseek(fo, -2L, SEEK_END) == 0){
switch(fread(buf, sizeof *buf, 2, fo)){
...
if(emptyline){
putc('\n', fo);
fflush(fo);
}
on a O_APPEND|O_RDWR file requires an intermediate
fseek(fout, 0, SEEK_END))
or
fflush()
which i consider a bug in Solaris stdio.
J?rg Schilling however convinced me that the standard...
2008 Nov 29
3
including Sweave tangled code in '.Rnw' document
Hello List,
I have been using Sweave for my homework this last quarter and have been
very impressed at how much time and effort it saves me. I, however, have
run up against a problem which I have not been able to solve using any of
the Sweave/LaTeX tricks I know. I work through my homework one problem at a
time, typesetting equations and writing R code, etc. and occasionally use