explicitely include the prototypes for inline functions to cure gcc

Fri Sep 11 02:11:46 1998  Tim Janik  <timj@gtk.org>

        * glib.h: explicitely include the prototypes for inline functions
        to cure gcc warnings for -Wmissing-prototypes.
This commit is contained in:
Tim Janik 1998-09-11 00:16:22 +00:00 committed by Tim Janik
parent 1b2750bd90
commit 91e9b770c6
10 changed files with 72 additions and 28 deletions

View File

@ -1,3 +1,8 @@
Fri Sep 11 02:11:46 1998 Tim Janik <timj@gtk.org>
* glib.h: explicitely include the prototypes for inline functions
to cure gcc warnings for -Wmissing-prototypes.
Wed Sep 9 02:52:04 PDT 1998 Manish Singh <yosh@gimp.org>
* configure.in: added -posix check for NeXTStep

View File

@ -1,3 +1,8 @@
Fri Sep 11 02:11:46 1998 Tim Janik <timj@gtk.org>
* glib.h: explicitely include the prototypes for inline functions
to cure gcc warnings for -Wmissing-prototypes.
Wed Sep 9 02:52:04 PDT 1998 Manish Singh <yosh@gimp.org>
* configure.in: added -posix check for NeXTStep

View File

@ -1,3 +1,8 @@
Fri Sep 11 02:11:46 1998 Tim Janik <timj@gtk.org>
* glib.h: explicitely include the prototypes for inline functions
to cure gcc warnings for -Wmissing-prototypes.
Wed Sep 9 02:52:04 PDT 1998 Manish Singh <yosh@gimp.org>
* configure.in: added -posix check for NeXTStep

View File

@ -1,3 +1,8 @@
Fri Sep 11 02:11:46 1998 Tim Janik <timj@gtk.org>
* glib.h: explicitely include the prototypes for inline functions
to cure gcc warnings for -Wmissing-prototypes.
Wed Sep 9 02:52:04 PDT 1998 Manish Singh <yosh@gimp.org>
* configure.in: added -posix check for NeXTStep

View File

@ -1,3 +1,8 @@
Fri Sep 11 02:11:46 1998 Tim Janik <timj@gtk.org>
* glib.h: explicitely include the prototypes for inline functions
to cure gcc warnings for -Wmissing-prototypes.
Wed Sep 9 02:52:04 PDT 1998 Manish Singh <yosh@gimp.org>
* configure.in: added -posix check for NeXTStep

View File

@ -1,3 +1,8 @@
Fri Sep 11 02:11:46 1998 Tim Janik <timj@gtk.org>
* glib.h: explicitely include the prototypes for inline functions
to cure gcc warnings for -Wmissing-prototypes.
Wed Sep 9 02:52:04 PDT 1998 Manish Singh <yosh@gimp.org>
* configure.in: added -posix check for NeXTStep

View File

@ -1,3 +1,8 @@
Fri Sep 11 02:11:46 1998 Tim Janik <timj@gtk.org>
* glib.h: explicitely include the prototypes for inline functions
to cure gcc warnings for -Wmissing-prototypes.
Wed Sep 9 02:52:04 PDT 1998 Manish Singh <yosh@gimp.org>
* configure.in: added -posix check for NeXTStep

View File

@ -1,3 +1,8 @@
Fri Sep 11 02:11:46 1998 Tim Janik <timj@gtk.org>
* glib.h: explicitely include the prototypes for inline functions
to cure gcc warnings for -Wmissing-prototypes.
Wed Sep 9 02:52:04 PDT 1998 Manish Singh <yosh@gimp.org>
* configure.in: added -posix check for NeXTStep

30
glib.h
View File

@ -1256,10 +1256,12 @@ void g_atexit (GVoidFunc func);
/* Bit tests
*/
G_INLINE_FUNC gint g_bit_nth_lsf (guint32 mask,
gint nth_bit);
#ifdef G_CAN_INLINE
G_INLINE_FUNC gint
g_bit_nth_lsf (guint32 mask,
gint nth_bit)
#ifdef G_CAN_INLINE
{
do
{
@ -1270,13 +1272,14 @@ g_bit_nth_lsf (guint32 mask,
while (nth_bit < 32);
return -1;
}
#else
;
#endif
#endif /* G_CAN_INLINE */
G_INLINE_FUNC gint g_bit_nth_msf (guint32 mask,
gint nth_bit);
#ifdef G_CAN_INLINE
G_INLINE_FUNC gint
g_bit_nth_msf (guint32 mask,
gint nth_bit)
#ifdef G_CAN_INLINE
{
if (nth_bit < 0)
nth_bit = 33;
@ -1289,25 +1292,24 @@ g_bit_nth_msf (guint32 mask,
while (nth_bit > 0);
return -1;
}
#else
;
#endif
#endif /* G_CAN_INLINE */
G_INLINE_FUNC guint g_bit_storage (guint number);
#ifdef G_CAN_INLINE
G_INLINE_FUNC guint
g_bit_storage (guint number)
#ifdef G_CAN_INLINE
{
register guint n_bits = 0;
do
{
n_bits++;
number = number >> 1;
} while (number);
number >>= 1;
}
while (number);
return n_bits;
}
#else
;
#endif
#endif /* G_CAN_INLINE */
/* String Chunks

View File

@ -1256,10 +1256,12 @@ void g_atexit (GVoidFunc func);
/* Bit tests
*/
G_INLINE_FUNC gint g_bit_nth_lsf (guint32 mask,
gint nth_bit);
#ifdef G_CAN_INLINE
G_INLINE_FUNC gint
g_bit_nth_lsf (guint32 mask,
gint nth_bit)
#ifdef G_CAN_INLINE
{
do
{
@ -1270,13 +1272,14 @@ g_bit_nth_lsf (guint32 mask,
while (nth_bit < 32);
return -1;
}
#else
;
#endif
#endif /* G_CAN_INLINE */
G_INLINE_FUNC gint g_bit_nth_msf (guint32 mask,
gint nth_bit);
#ifdef G_CAN_INLINE
G_INLINE_FUNC gint
g_bit_nth_msf (guint32 mask,
gint nth_bit)
#ifdef G_CAN_INLINE
{
if (nth_bit < 0)
nth_bit = 33;
@ -1289,25 +1292,24 @@ g_bit_nth_msf (guint32 mask,
while (nth_bit > 0);
return -1;
}
#else
;
#endif
#endif /* G_CAN_INLINE */
G_INLINE_FUNC guint g_bit_storage (guint number);
#ifdef G_CAN_INLINE
G_INLINE_FUNC guint
g_bit_storage (guint number)
#ifdef G_CAN_INLINE
{
register guint n_bits = 0;
do
{
n_bits++;
number = number >> 1;
} while (number);
number >>= 1;
}
while (number);
return n_bits;
}
#else
;
#endif
#endif /* G_CAN_INLINE */
/* String Chunks