mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 22:16:16 +01:00
Pedantically use g types throughout.
Tue Aug 3 15:50:55 2004 Matthias Clasen <maclas@gmx.de> * glib/goption.[hc]: Pedantically use g types throughout.
This commit is contained in:
parent
a62fd5ec60
commit
4ca03e4b4e
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
|||||||
|
Tue Aug 3 15:50:55 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/goption.[hc]: Pedantically use g types throughout.
|
||||||
|
|
||||||
|
Tue Aug 3 14:58:20 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gutils.h:
|
||||||
|
* glib/gutils.c (glib_check_version): New function to
|
||||||
|
check the version of GLib at runtime. (#149175, Michael Natterer)
|
||||||
|
|
||||||
2004-08-03 Anders Carlsson <andersca@gnome.org>
|
2004-08-03 Anders Carlsson <andersca@gnome.org>
|
||||||
|
|
||||||
* glib/goption.h:
|
* glib/goption.h:
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
Tue Aug 3 15:50:55 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/goption.[hc]: Pedantically use g types throughout.
|
||||||
|
|
||||||
|
Tue Aug 3 14:58:20 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gutils.h:
|
||||||
|
* glib/gutils.c (glib_check_version): New function to
|
||||||
|
check the version of GLib at runtime. (#149175, Michael Natterer)
|
||||||
|
|
||||||
2004-08-03 Anders Carlsson <andersca@gnome.org>
|
2004-08-03 Anders Carlsson <andersca@gnome.org>
|
||||||
|
|
||||||
* glib/goption.h:
|
* glib/goption.h:
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
Tue Aug 3 15:50:55 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/goption.[hc]: Pedantically use g types throughout.
|
||||||
|
|
||||||
|
Tue Aug 3 14:58:20 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gutils.h:
|
||||||
|
* glib/gutils.c (glib_check_version): New function to
|
||||||
|
check the version of GLib at runtime. (#149175, Michael Natterer)
|
||||||
|
|
||||||
2004-08-03 Anders Carlsson <andersca@gnome.org>
|
2004-08-03 Anders Carlsson <andersca@gnome.org>
|
||||||
|
|
||||||
* glib/goption.h:
|
* glib/goption.h:
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
Tue Aug 3 15:50:55 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/goption.[hc]: Pedantically use g types throughout.
|
||||||
|
|
||||||
|
Tue Aug 3 14:58:20 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gutils.h:
|
||||||
|
* glib/gutils.c (glib_check_version): New function to
|
||||||
|
check the version of GLib at runtime. (#149175, Michael Natterer)
|
||||||
|
|
||||||
2004-08-03 Anders Carlsson <andersca@gnome.org>
|
2004-08-03 Anders Carlsson <andersca@gnome.org>
|
||||||
|
|
||||||
* glib/goption.h:
|
* glib/goption.h:
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
Tue Aug 3 15:50:55 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/goption.[hc]: Pedantically use g types throughout.
|
||||||
|
|
||||||
|
Tue Aug 3 14:58:20 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gutils.h:
|
||||||
|
* glib/gutils.c (glib_check_version): New function to
|
||||||
|
check the version of GLib at runtime. (#149175, Michael Natterer)
|
||||||
|
|
||||||
2004-08-03 Anders Carlsson <andersca@gnome.org>
|
2004-08-03 Anders Carlsson <andersca@gnome.org>
|
||||||
|
|
||||||
* glib/goption.h:
|
* glib/goption.h:
|
||||||
|
@ -42,7 +42,7 @@ typedef struct {
|
|||||||
union {
|
union {
|
||||||
gchar *str;
|
gchar *str;
|
||||||
struct {
|
struct {
|
||||||
int len;
|
gint len;
|
||||||
gchar **data;
|
gchar **data;
|
||||||
} array;
|
} array;
|
||||||
} allocated;
|
} allocated;
|
||||||
@ -380,8 +380,8 @@ print_help (GOptionContext *context,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
parse_int (const char *arg_name,
|
parse_int (const gchar *arg_name,
|
||||||
const char *arg,
|
const gchar *arg,
|
||||||
gint *result,
|
gint *result,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
@ -573,7 +573,7 @@ parse_arg (GOptionContext *context,
|
|||||||
|
|
||||||
case G_OPTION_ARG_INT:
|
case G_OPTION_ARG_INT:
|
||||||
{
|
{
|
||||||
int data;
|
gint data;
|
||||||
|
|
||||||
if (!parse_int (option_name, value,
|
if (!parse_int (option_name, value,
|
||||||
&data,
|
&data,
|
||||||
@ -622,7 +622,7 @@ parse_short_option (GOptionContext *context,
|
|||||||
GError **error,
|
GError **error,
|
||||||
gboolean *parsed)
|
gboolean *parsed)
|
||||||
{
|
{
|
||||||
int j;
|
gint j;
|
||||||
|
|
||||||
for (j = 0; j < group->n_entries; j++)
|
for (j = 0; j < group->n_entries; j++)
|
||||||
{
|
{
|
||||||
@ -683,7 +683,7 @@ parse_long_option (GOptionContext *context,
|
|||||||
GError **error,
|
GError **error,
|
||||||
gboolean *parsed)
|
gboolean *parsed)
|
||||||
{
|
{
|
||||||
int j;
|
gint j;
|
||||||
|
|
||||||
for (j = 0; j < group->n_entries; j++)
|
for (j = 0; j < group->n_entries; j++)
|
||||||
{
|
{
|
||||||
@ -1123,8 +1123,8 @@ void
|
|||||||
g_option_group_add_entries (GOptionGroup *group,
|
g_option_group_add_entries (GOptionGroup *group,
|
||||||
const GOptionEntry *entries)
|
const GOptionEntry *entries)
|
||||||
{
|
{
|
||||||
int n_entries;
|
gint n_entries;
|
||||||
int i;
|
gint i;
|
||||||
|
|
||||||
g_return_if_fail (entries != NULL);
|
g_return_if_fail (entries != NULL);
|
||||||
|
|
||||||
|
@ -76,15 +76,15 @@ GQuark g_option_context_error_quark (void) G_GNUC_CONST;
|
|||||||
|
|
||||||
struct _GOptionEntry
|
struct _GOptionEntry
|
||||||
{
|
{
|
||||||
const char *long_name;
|
const gchar *long_name;
|
||||||
char short_name;
|
gchar short_name;
|
||||||
int flags;
|
gint flags;
|
||||||
|
|
||||||
GOptionArg arg;
|
GOptionArg arg;
|
||||||
gpointer arg_data;
|
gpointer arg_data;
|
||||||
|
|
||||||
const char *description;
|
const gchar *description;
|
||||||
const char *arg_description;
|
const gchar *arg_description;
|
||||||
};
|
};
|
||||||
|
|
||||||
GOptionContext *g_option_context_new (const gchar *parameter_string);
|
GOptionContext *g_option_context_new (const gchar *parameter_string);
|
||||||
@ -113,7 +113,7 @@ GOptionGroup *g_option_context_get_main_group (GOptionContext *context);
|
|||||||
|
|
||||||
GOptionGroup *g_option_group_new (const gchar *name,
|
GOptionGroup *g_option_group_new (const gchar *name,
|
||||||
const gchar *description,
|
const gchar *description,
|
||||||
const char *help_description,
|
const gchar *help_description,
|
||||||
gpointer user_data,
|
gpointer user_data,
|
||||||
GDestroyNotify destroy);
|
GDestroyNotify destroy);
|
||||||
void g_option_group_set_parse_hooks (GOptionGroup *group,
|
void g_option_group_set_parse_hooks (GOptionGroup *group,
|
||||||
|
Loading…
Reference in New Issue
Block a user