summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2013-08-14 23:48:16 +0200
committerDieter Verfaillie <dieterv@optionexplicit.be>2013-10-08 20:53:20 +0200
commit85a1b423bbd5bdc27c76c77d0b9d30174f05d6e2 (patch)
tree30333cb2f020e4d3d7814eb34617f350a33d3a5f
parent1ff9297507926e33e4fa57984391ffa950024d85 (diff)
downloadgobject-introspection-85a1b423bbd5bdc27c76c77d0b9d30174f05d6e2.tar.gz
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.
-rw-r--r--README3
-rw-r--r--docs/g-ir-compiler.111
-rw-r--r--tools/compiler.c2
3 files changed, 2 insertions, 14 deletions
diff --git a/README b/README
index 43b6be1b..6f9ce75d 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 8d1b85d0..24b180aa 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 f8e8a90c..23d76db8 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" },