Displaying 6 results from an estimated 6 matches for "parse_context_free".
2014 Mar 20
5
[PATCH 1/3] builder/virt-index-validate: try to cleanup in any occasion
...in) == EOF) {
+ fprintf (stderr, _("%s: %s: error closing input file: %m (ignored)\n"),
program_name, input);
- exit (EXIT_FAILURE);
}
- if (fclose (in) == EOF) {
- fprintf (stderr, _("%s: %s: error 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 (stder...
2014 Mar 20
2
Re: [PATCH 1/3] builder/virt-index-validate: try to cleanup in any occasion
...> > program_name, input);
> >
> > - exit (EXIT_FAILURE);
> >
> > }
> >
> > - if (fclose (in) == EOF) {
> > - fprintf (stderr, _("%s: %s: error 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 (co...
2014 Mar 19
7
[PATCH 1/3] builder: make the C index parser reentrant
...sections->next) {
struct field *fields;
size_t j, nr_fields;
@@ -105,8 +109,8 @@ virt_builder_parse_index (value filenamev)
Store_field (rv, i, v); /* assign to return array of sections */
}
- /* Free parsed global data. */
- free_index ();
+ /* Free parsed data. */
+ parse_context_free (&context);
CAMLreturn (rv);
}
diff --git a/builder/index-scan.l b/builder/index-scan.l
index 832ea51..073d85f 100644
--- a/builder/index-scan.l
+++ b/builder/index-scan.l
@@ -23,18 +23,22 @@
#include <stdlib.h>
#include <string.h>
-#include "index-parse.h"
#inc...
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
2017 Apr 04
1
[PATCH] Use Unicode single quotes ‘’ in place of short single quoted strings throughout.
...ng ‘%s’") path;
(* Any other protocol. *)
| _ ->
diff --git a/builder/index-validate.c b/builder/index-validate.c
index 33086b2fd..224cd674a 100644
--- a/builder/index-validate.c
+++ b/builder/index-validate.c
@@ -122,7 +122,7 @@ main (int argc, char *argv[])
if (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 @...
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.