summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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" },