diff options
author | Tim Janik <timj@gtk.org> | 2006-08-29 11:29:24 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 2006-08-29 11:29:24 +0000 |
commit | 08e3a830fbfa0474057bede11c7c95d599b6da2d (patch) | |
tree | d6978dd39f2ee29f15d25538079637934f2d2c16 /gobject | |
parent | a66bf6e9f2398a53d63febb07f96f6f051ffea28 (diff) |
fixed to print usage and version info on STDOUT (#322502).
Tue Aug 29 13:27:33 2006 Tim Janik <timj@gtk.org>
* glib-mkenums.in: fixed to print usage and version info on STDOUT
(#322502).
* gobject.c (g_initially_unowned_init): restore ; after G_DEFINE_TYPE.
Diffstat (limited to 'gobject')
-rw-r--r-- | gobject/ChangeLog | 7 | ||||
-rwxr-xr-x | gobject/glib-mkenums.in | 58 | ||||
-rw-r--r-- | gobject/gobject.c | 2 |
3 files changed, 37 insertions, 30 deletions
diff --git a/gobject/ChangeLog b/gobject/ChangeLog index c4b02aeea..6364ace12 100644 --- a/gobject/ChangeLog +++ b/gobject/ChangeLog @@ -1,3 +1,10 @@ +Tue Aug 29 13:27:33 2006 Tim Janik <timj@gtk.org> + + * glib-mkenums.in: fixed to print usage and version info on STDOUT + (#322502). + + * gobject.c (g_initially_unowned_init): restore ; after G_DEFINE_TYPE. + 2006-08-26 Matthias Clasen <mclasen@redhat.com> * gobject.c: Remove ; after G_DEFINE_TYPE. (#351741, Kjartan Maraas) diff --git a/gobject/glib-mkenums.in b/gobject/glib-mkenums.in index bce03ad3e..db7da6824 100755 --- a/gobject/glib-mkenums.in +++ b/gobject/glib-mkenums.in @@ -117,38 +117,38 @@ sub parse_entries { } sub version { - print STDERR "glib-mkenums version glib-@GLIB_VERSION@\n"; - print STDERR "glib-mkenums comes with ABSOLUTELY NO WARRANTY.\n"; - print STDERR "You may redistribute copies of glib-mkenums under the terms of\n"; - print STDERR "the GNU General Public License which can be found in the\n"; - print STDERR "GLib source package. Sources, examples and contact\n"; - print STDERR "information are available at http://www.gtk.org\n"; + print "glib-mkenums version glib-@GLIB_VERSION@\n"; + print "glib-mkenums comes with ABSOLUTELY NO WARRANTY.\n"; + print "You may redistribute copies of glib-mkenums under the terms of\n"; + print "the GNU General Public License which can be found in the\n"; + print "GLib source package. Sources, examples and contact\n"; + print "information are available at http://www.gtk.org\n"; exit 0; } sub usage { - print STDERR "Usage: glib-mkenums [options] [files...]\n"; - print STDERR " --fhead <text> output file header\n"; - print STDERR " --fprod <text> per input file production\n"; - print STDERR " --ftail <text> output file trailer\n"; - print STDERR " --eprod <text> per enum text (produced prior to value itarations)\n"; - print STDERR " --vhead <text> value header, produced before iterating over enum values\n"; - print STDERR " --vprod <text> value text, produced for each enum value\n"; - print STDERR " --vtail <text> value tail, produced after iterating over enum values\n"; - print STDERR " --comments <text> comment structure\n"; - print STDERR " --template file template file\n"; - print STDERR " -h, --help show this help message\n"; - print STDERR " -v, --version print version informations\n"; - print STDERR "Production text substitutions:\n"; - print STDERR " \@EnumName\@ PrefixTheXEnum\n"; - print STDERR " \@enum_name\@ prefix_the_xenum\n"; - print STDERR " \@ENUMNAME\@ PREFIX_THE_XENUM\n"; - print STDERR " \@ENUMSHORT\@ THE_XENUM\n"; - print STDERR " \@VALUENAME\@ PREFIX_THE_XVALUE\n"; - print STDERR " \@valuenick\@ the-xvalue\n"; - print STDERR " \@type\@ either enum or flags\n"; - print STDERR " \@Type\@ either Enum or Flags\n"; - print STDERR " \@TYPE\@ either ENUM or FLAGS\n"; - print STDERR " \@filename\@ name of current input file\n"; + print "Usage: glib-mkenums [options] [files...]\n"; + print " --fhead <text> output file header\n"; + print " --fprod <text> per input file production\n"; + print " --ftail <text> output file trailer\n"; + print " --eprod <text> per enum text (produced prior to value itarations)\n"; + print " --vhead <text> value header, produced before iterating over enum values\n"; + print " --vprod <text> value text, produced for each enum value\n"; + print " --vtail <text> value tail, produced after iterating over enum values\n"; + print " --comments <text> comment structure\n"; + print " --template file template file\n"; + print " -h, --help show this help message\n"; + print " -v, --version print version informations\n"; + print "Production text substitutions:\n"; + print " \@EnumName\@ PrefixTheXEnum\n"; + print " \@enum_name\@ prefix_the_xenum\n"; + print " \@ENUMNAME\@ PREFIX_THE_XENUM\n"; + print " \@ENUMSHORT\@ THE_XENUM\n"; + print " \@VALUENAME\@ PREFIX_THE_XVALUE\n"; + print " \@valuenick\@ the-xvalue\n"; + print " \@type\@ either enum or flags\n"; + print " \@Type\@ either Enum or Flags\n"; + print " \@TYPE\@ either ENUM or FLAGS\n"; + print " \@filename\@ name of current input file\n"; exit 0; } diff --git a/gobject/gobject.c b/gobject/gobject.c index 2d6e9cd56..d5290a108 100644 --- a/gobject/gobject.c +++ b/gobject/gobject.c @@ -2242,7 +2242,7 @@ g_object_compat_control (gsize what, } } -G_DEFINE_TYPE (GInitiallyUnowned, g_initially_unowned, G_TYPE_OBJECT) +G_DEFINE_TYPE (GInitiallyUnowned, g_initially_unowned, G_TYPE_OBJECT); static void g_initially_unowned_init (GInitiallyUnowned *object) |