[gobject-introspection] g-ir-compiler: remove references to --code, remove --no-init options
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] g-ir-compiler: remove references to --code, remove --no-init options
- Date: Wed, 9 Oct 2013 16:54:17 +0000 (UTC)
commit 85a1b423bbd5bdc27c76c77d0b9d30174f05d6e2
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date: Wed Aug 14 23:48:16 2013 +0200
g-ir-compiler: remove references to --code, remove --no-init options
The "--code" option was removed years ago in ac81f3e8c5f1c380d16677232d67466e739da283
so remove references to it from README and g-ir-compiler(1)
Remove the "--no-init" option from g-ir-compiler and g-ir-compiler(1)
as it was documented to "can only be used if --code is also specified",
so no reason to keep it around.
README | 3 +--
docs/g-ir-compiler.1 | 11 +----------
tools/compiler.c | 2 --
3 files changed, 2 insertions(+), 14 deletions(-)
---
diff --git a/README b/README
index 43b6be1..6f9ce75 100644
--- a/README
+++ b/README
@@ -30,8 +30,7 @@ Tools
Three tools are shipped with GObject Introspection:
- g-ir-compile, a typelib compiler. It converts one or more GIR files
- into one or more typelib blobs. It can either emit the raw typelib
- blob or C code (--code).
+ into one or more typelib blobs.
- g-ir-generate, an GIR generator, using the repository API. It generates
GIR files from binary typelib which can be in a shared object, or a raw
typelib blob.
diff --git a/docs/g-ir-compiler.1 b/docs/g-ir-compiler.1
index 8d1b85d..24b180a 100644
--- a/docs/g-ir-compiler.1
+++ b/docs/g-ir-compiler.1
@@ -6,18 +6,13 @@ g-ir-compiler \- typelib compiler.
[OPTION...] GIRFILE
.SH DESCRIPTION
g-ir-compiler converts one or more GIR files into one or more typelib.
-It can either emit the raw typelib blob (default behavior) or C code
-(--code). The output will be written to standard output unless the --output
+The output will be written to standard output unless the --output
is specified.
.SH OPTIONS
.TP
.B \---help
Show help options
.TP
-.B \, ---code
-Emit C code which is suitable for including in a shared library instead
-of a raw typelib.
-.TP
.B \, ---output=FILENAME
Save the resulting output in FILENAME.
.TP
@@ -27,10 +22,6 @@ Show verbose messages
.B \---debug
Show debug messages
.TP
-.B \---no-init
-Do not include an initialization snippet to register the typelib in the
-respository. This can only be used if --code is also specified.
-.TP
.B \---includedir=DIRECTORY
Adds a directory which will be used to find includes inside the GIR format.
.TP
diff --git a/tools/compiler.c b/tools/compiler.c
index f8e8a90..23d76db 100644
--- a/tools/compiler.c
+++ b/tools/compiler.c
@@ -36,7 +36,6 @@
#include "girparser.h"
#include "gitypelib-internal.h"
-gboolean no_init = FALSE;
gchar **includedirs = NULL;
gchar **input = NULL;
gchar *output = NULL;
@@ -129,7 +128,6 @@ static void log_handler (const gchar *log_domain,
static GOptionEntry options[] =
{
- { "no-init", 0, 0, G_OPTION_ARG_NONE, &no_init, "do not create _init() function", NULL },
{ "includedir", 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &includedirs, "include directories in GIR search path",
NULL },
{ "output", 'o', 0, G_OPTION_ARG_FILENAME, &output, "output file", "FILE" },
{ "module", 'm', 0, G_OPTION_ARG_STRING, &mname, "module to compile", "NAME" },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]