Jim Meyering
2009-Aug-03 15:35 UTC
[Libguestfs] [PATCH] allow use of #if HAVE_CONFIG_H, for example code
Adding the #if HAVE_CONFIG_H triggers a syntax-check rule. This exempts those two example files.>From c498ad1fea5a8ca7783a24929b472756f45c57a0 Mon Sep 17 00:00:00 2001From: Jim Meyering <meyering at redhat.com> Date: Mon, 3 Aug 2009 11:09:13 -0400 Subject: [PATCH] allow use of #if HAVE_CONFIG_H, for example code * .x-sc_prohibit_have_config_h: New file, to exempt examples. --- .x-sc_prohibit_have_config_h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) create mode 100644 .x-sc_prohibit_have_config_h diff --git a/.x-sc_prohibit_have_config_h b/.x-sc_prohibit_have_config_h new file mode 100644 index 0000000..e1d94fe --- /dev/null +++ b/.x-sc_prohibit_have_config_h @@ -0,0 +1,2 @@ +^examples/hello.c +^examples/to-xml.c -- 1.6.4.212.g4719
Richard W.M. Jones
2009-Aug-03 16:08 UTC
[Libguestfs] [PATCH] allow use of #if HAVE_CONFIG_H, for example code
On Mon, Aug 03, 2009 at 05:35:24PM +0200, Jim Meyering wrote:> Adding the #if HAVE_CONFIG_H triggers a syntax-check rule. > This exempts those two example files. > > >From c498ad1fea5a8ca7783a24929b472756f45c57a0 Mon Sep 17 00:00:00 2001 > From: Jim Meyering <meyering at redhat.com> > Date: Mon, 3 Aug 2009 11:09:13 -0400 > Subject: [PATCH] allow use of #if HAVE_CONFIG_H, for example code > > * .x-sc_prohibit_have_config_h: New file, to exempt examples. > --- > .x-sc_prohibit_have_config_h | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > create mode 100644 .x-sc_prohibit_have_config_h > > diff --git a/.x-sc_prohibit_have_config_h b/.x-sc_prohibit_have_config_h > new file mode 100644 > index 0000000..e1d94fe > --- /dev/null > +++ b/.x-sc_prohibit_have_config_h > @@ -0,0 +1,2 @@ > +^examples/hello.c > +^examples/to-xml.c > -- > 1.6.4.212.g4719 > > _______________________________________________ > Libguestfs mailing list > Libguestfs at redhat.com > https://www.redhat.com/mailman/listinfo/libguestfsACK. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 75 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora