While we're off changing glib.h, correct some cosmetic nits. No changed

functionality.

-Yosh
This commit is contained in:
Manish Singh 1998-07-10 06:53:27 +00:00
parent 17856ab1cd
commit da0f2dde98
2 changed files with 22 additions and 22 deletions

22
glib.h
View File

@ -8,7 +8,7 @@
* *
* This library is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details. * Library General Public License for more details.
* *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU Library General Public
@ -134,7 +134,7 @@
#endif /* G_CODE_GENERATION */ #endif /* G_CODE_GENERATION */
/* Provide simple macro statement wrappers (adapted from Pearl): /* Provide simple macro statement wrappers (adapted from Perl):
* G_STMT_START { statements; } G_STMT_END; * G_STMT_START { statements; } G_STMT_END;
* can be used as a single statement, as in * can be used as a single statement, as in
* if (x) G_STMT_START { ... } G_STMT_END; else ... * if (x) G_STMT_START { ... } G_STMT_END; else ...
@ -180,7 +180,7 @@
#endif /* !__GNUC__ */ #endif /* !__GNUC__ */
/* Hacker macro to place breakpoints for x86 machines. /* Hacker macro to place breakpoints for x86 machines.
* Actuall use is strongly deprecated of course ;) * Actual use is strongly deprecated of course ;)
*/ */
#if defined (__i386__) #if defined (__i386__)
#define G_BREAKPOINT() G_STMT_START{ __asm__ ("int $03"); }G_STMT_END #define G_BREAKPOINT() G_STMT_START{ __asm__ ("int $03"); }G_STMT_END
@ -239,7 +239,7 @@
#define g_chunk_new0(type, chunk) ( \ #define g_chunk_new0(type, chunk) ( \
(type *) memset (g_mem_chunk_alloc (chunk), 0, sizeof (type)) \ (type *) memset (g_mem_chunk_alloc (chunk), 0, sizeof (type)) \
) )
#define g_chunk_free(mem, mem_chunk) G_STMT_START { \ #define g_chunk_free(mem, mem_chunk) G_STMT_START { \
g_mem_chunk_free ((mem_chunk), (mem)); \ g_mem_chunk_free ((mem_chunk), (mem)); \
} G_STMT_END } G_STMT_END
@ -433,9 +433,9 @@ typedef unsigned long guint32;
/* This should never happen */ /* This should never happen */
#endif #endif
typedef gint32 gssize; typedef gint32 gssize;
typedef guint32 gsize; typedef guint32 gsize;
typedef gint32 gtime; typedef gint32 gtime;
typedef guint32 GQuark; typedef guint32 GQuark;
typedef struct _GList GList; typedef struct _GList GList;
@ -455,8 +455,8 @@ typedef struct _GDebugKey GDebugKey;
typedef struct _GScannerConfig GScannerConfig; typedef struct _GScannerConfig GScannerConfig;
typedef struct _GScanner GScanner; typedef struct _GScanner GScanner;
typedef union _GValue GValue; typedef union _GValue GValue;
typedef struct _GRelation GRelation; typedef struct _GRelation GRelation;
typedef struct _GTuples GTuples; typedef struct _GTuples GTuples;
typedef void (*GFunc) (gpointer data, typedef void (*GFunc) (gpointer data,
@ -512,13 +512,13 @@ struct _GArray
struct _GByteArray struct _GByteArray
{ {
guint8 *data; guint8 *data;
guint len; guint len;
}; };
struct _GPtrArray struct _GPtrArray
{ {
gpointer *pdata; gpointer *pdata;
guint len; guint len;
}; };
struct _GTuples struct _GTuples
@ -529,7 +529,7 @@ struct _GTuples
struct _GDebugKey struct _GDebugKey
{ {
gchar *key; gchar *key;
guint value; guint value;
}; };
struct _GCache { gint dummy; }; struct _GCache { gint dummy; };

View File

@ -8,7 +8,7 @@
* *
* This library is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details. * Library General Public License for more details.
* *
* You should have received a copy of the GNU Library General Public * You should have received a copy of the GNU Library General Public
@ -134,7 +134,7 @@
#endif /* G_CODE_GENERATION */ #endif /* G_CODE_GENERATION */
/* Provide simple macro statement wrappers (adapted from Pearl): /* Provide simple macro statement wrappers (adapted from Perl):
* G_STMT_START { statements; } G_STMT_END; * G_STMT_START { statements; } G_STMT_END;
* can be used as a single statement, as in * can be used as a single statement, as in
* if (x) G_STMT_START { ... } G_STMT_END; else ... * if (x) G_STMT_START { ... } G_STMT_END; else ...
@ -180,7 +180,7 @@
#endif /* !__GNUC__ */ #endif /* !__GNUC__ */
/* Hacker macro to place breakpoints for x86 machines. /* Hacker macro to place breakpoints for x86 machines.
* Actuall use is strongly deprecated of course ;) * Actual use is strongly deprecated of course ;)
*/ */
#if defined (__i386__) #if defined (__i386__)
#define G_BREAKPOINT() G_STMT_START{ __asm__ ("int $03"); }G_STMT_END #define G_BREAKPOINT() G_STMT_START{ __asm__ ("int $03"); }G_STMT_END
@ -239,7 +239,7 @@
#define g_chunk_new0(type, chunk) ( \ #define g_chunk_new0(type, chunk) ( \
(type *) memset (g_mem_chunk_alloc (chunk), 0, sizeof (type)) \ (type *) memset (g_mem_chunk_alloc (chunk), 0, sizeof (type)) \
) )
#define g_chunk_free(mem, mem_chunk) G_STMT_START { \ #define g_chunk_free(mem, mem_chunk) G_STMT_START { \
g_mem_chunk_free ((mem_chunk), (mem)); \ g_mem_chunk_free ((mem_chunk), (mem)); \
} G_STMT_END } G_STMT_END
@ -433,9 +433,9 @@ typedef unsigned long guint32;
/* This should never happen */ /* This should never happen */
#endif #endif
typedef gint32 gssize; typedef gint32 gssize;
typedef guint32 gsize; typedef guint32 gsize;
typedef gint32 gtime; typedef gint32 gtime;
typedef guint32 GQuark; typedef guint32 GQuark;
typedef struct _GList GList; typedef struct _GList GList;
@ -455,8 +455,8 @@ typedef struct _GDebugKey GDebugKey;
typedef struct _GScannerConfig GScannerConfig; typedef struct _GScannerConfig GScannerConfig;
typedef struct _GScanner GScanner; typedef struct _GScanner GScanner;
typedef union _GValue GValue; typedef union _GValue GValue;
typedef struct _GRelation GRelation; typedef struct _GRelation GRelation;
typedef struct _GTuples GTuples; typedef struct _GTuples GTuples;
typedef void (*GFunc) (gpointer data, typedef void (*GFunc) (gpointer data,
@ -512,13 +512,13 @@ struct _GArray
struct _GByteArray struct _GByteArray
{ {
guint8 *data; guint8 *data;
guint len; guint len;
}; };
struct _GPtrArray struct _GPtrArray
{ {
gpointer *pdata; gpointer *pdata;
guint len; guint len;
}; };
struct _GTuples struct _GTuples
@ -529,7 +529,7 @@ struct _GTuples
struct _GDebugKey struct _GDebugKey
{ {
gchar *key; gchar *key;
guint value; guint value;
}; };
struct _GCache { gint dummy; }; struct _GCache { gint dummy; };