Displaying 8 results from an estimated 8 matches for "seen_comments".
2014 Mar 19
7
[PATCH 1/3] builder: make the C index parser reentrant
...ption nounput
%option noyywrap
%option yylineno
+%option reentrant
+%option bison-bridge
+%option bison-locations
%%
@@ -46,38 +50,38 @@ extern void yyerror (const char *);
*/
/* Ignore comments - '#' MUST appear at the start of a line. */
-^"#".*\n { seen_comments++; }
+^"#".*\n { yyextra->seen_comments++; }
/* An empty line is significant. */
^\n { return EMPTY_LINE; }
/* [...] marks beginning of a section. */
^"["[-A-Za-z0-9._]+"]"\n {
- yyl...
2014 Mar 20
5
[PATCH 1/3] builder/virt-index-validate: try to cleanup in any occasion
...reading input file: %m\n"),
+ if (ret != 0) {
+ parse_context_free (&context);
+ fprintf (stderr, _("%s: '%s' could not be validated, see errors above\n"),
program_name, input);
exit (EXIT_FAILURE);
}
if (compat_1_24_1 && context.seen_comments) {
+ parse_context_free (&context);
fprintf (stderr, _("%s: %s contains comments which will not work with virt-builder 1.24.1\n"),
program_name, input);
exit (EXIT_FAILURE);
@@ -134,6 +138,7 @@ main (int argc, char *argv[])
if (compat_1_24_0) {...
2014 Apr 22
3
[PATCH 1/2] builder: add an optional suffix string for INI parsing errors
...tring_val (error_suffixv);
in = fopen (String_val (filenamev), "r");
if (in == NULL)
diff --git a/builder/index-struct.h b/builder/index-struct.h
index 3edd06d..150535d 100644
--- a/builder/index-struct.h
+++ b/builder/index-struct.h
@@ -45,6 +45,7 @@ struct parse_context {
int seen_comments;
const char *input_file;
const char *program_name;
+ const char *error_suffix;
};
/* Initialize the content of a parse_context. */
diff --git a/builder/ini_reader.ml b/builder/ini_reader.ml
index 68e3863..c64125c 100644
--- a/builder/ini_reader.ml
+++ b/builder/ini_reader.ml
@@ -27,10 +2...
2014 Mar 20
2
Re: [PATCH 1/3] builder/virt-index-validate: try to cleanup in any occasion
...fprintf (stderr, _("%s: '%s' could not be validated, see errors
> > above\n"),>
> > program_name, input);
> >
> > exit (EXIT_FAILURE);
> >
> > }
> >
> > if (compat_1_24_1 && context.seen_comments) {
> >
> > + parse_context_free (&context);
> >
> > fprintf (stderr, _("%s: %s contains comments which will not
> > work with virt-builder 1.24.1\n"),>
> > program_name, input);
> >
> > ex...
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 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
2017 Apr 04
1
[PATCH] Use Unicode single quotes ‘’ in place of short single quoted strings throughout.
...ret != 0) {
parse_context_free (&context);
error (EXIT_FAILURE, 0,
- _("'%s' could not be validated, see errors above"), input);
+ _("‘%s’ could not be validated, see errors above"), input);
}
if (compat_1_24_1 && context.seen_comments) {
@@ -152,7 +152,7 @@ main (int argc, char *argv[])
strchr (fields->key, ']')) {
parse_context_free (&context);
error (EXIT_FAILURE, 0,
- _("%s: section [%s], field '%s' has invalid characters which will not work with v...
2015 Feb 14
2
[PATCH 0/2] Change guestfs__*
libguestfs has used double and triple underscores in identifiers.
These aren't valid for global names in C++.
(http://stackoverflow.com/a/228797)
These large but completely mechanical patches change the illegal
identifiers to legal ones.
Rich.