diff options
author | Colin Walters <walters@verbum.org> | 2008-08-22 21:14:31 +0000 |
---|---|---|
committer | Colin Walters <walters@src.gnome.org> | 2008-08-22 21:14:31 +0000 |
commit | da26182ec67f950157e8c72efc06770a7b5f1bf5 (patch) | |
tree | 4d062e73cccd0f77b1b0c6a975329fe1281ab1eb /tools/compiler.c | |
parent | c62542302696e4a31cf44bda5c5fddacd691ae81 (diff) | |
download | gobject-introspection-da26182ec67f950157e8c72efc06770a7b5f1bf5.tar.gz |
Default to --raw. Update.
2008-08-22 Colin Walters <walters@verbum.org>
* tools/generate.c, tools/compiler.c: Default
to --raw.
* all Makefile.am: Update.
svn path=/trunk/; revision=462
Diffstat (limited to 'tools/compiler.c')
-rw-r--r-- | tools/compiler.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/compiler.c b/tools/compiler.c index c515ddfa..a3f5e723 100644 --- a/tools/compiler.c +++ b/tools/compiler.c @@ -29,7 +29,7 @@ #include "girparser.h" #include "gtypelib.h" -gboolean raw = FALSE; +gboolean code = FALSE; gboolean no_init = FALSE; gchar **input = NULL; gchar *output = NULL; @@ -119,7 +119,7 @@ write_out_typelib (gchar *prefix, g_free (filename); } - if (raw) + if (!code) fwrite (typelib->data, 1, typelib->len, file); else { @@ -148,8 +148,7 @@ static void log_handler (const gchar *log_domain, static GOptionEntry options[] = { - { "raw", 0, 0, G_OPTION_ARG_NONE, &raw, "emit raw typelib", NULL }, - { "code", 0, G_OPTION_FLAG_REVERSE, G_OPTION_ARG_NONE, &raw, "emit C code", NULL }, + { "code", 0, 0, G_OPTION_ARG_NONE, &code, "emit C code", NULL }, { "no-init", 0, 0, G_OPTION_ARG_NONE, &no_init, "do not create _init() function", NULL }, { "output", 'o', 0, G_OPTION_ARG_FILENAME, &output, "output file", "FILE" }, { "module", 'm', 0, G_OPTION_ARG_STRING, &mname, "module to compile", "NAME" }, |