Added g_array_length

-Yosh
This commit is contained in:
Manish Singh 1998-07-04 20:39:29 +00:00
parent b7c94a718d
commit 61bccc36a9
10 changed files with 36 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Sat Jul 4 13:38:52 PDT 1998 Manish Singh <yosh@gimp.org>
* glib.h: added g_array_length
Tue Jun 30 11:58:25 1998 Tim Janik <timj@gtk.org>
* gscanner.c (g_scanner_unexp_token): take symbol_2_token into

View File

@ -1,3 +1,7 @@
Sat Jul 4 13:38:52 PDT 1998 Manish Singh <yosh@gimp.org>
* glib.h: added g_array_length
Tue Jun 30 11:58:25 1998 Tim Janik <timj@gtk.org>
* gscanner.c (g_scanner_unexp_token): take symbol_2_token into

View File

@ -1,3 +1,7 @@
Sat Jul 4 13:38:52 PDT 1998 Manish Singh <yosh@gimp.org>
* glib.h: added g_array_length
Tue Jun 30 11:58:25 1998 Tim Janik <timj@gtk.org>
* gscanner.c (g_scanner_unexp_token): take symbol_2_token into

View File

@ -1,3 +1,7 @@
Sat Jul 4 13:38:52 PDT 1998 Manish Singh <yosh@gimp.org>
* glib.h: added g_array_length
Tue Jun 30 11:58:25 1998 Tim Janik <timj@gtk.org>
* gscanner.c (g_scanner_unexp_token): take symbol_2_token into

View File

@ -1,3 +1,7 @@
Sat Jul 4 13:38:52 PDT 1998 Manish Singh <yosh@gimp.org>
* glib.h: added g_array_length
Tue Jun 30 11:58:25 1998 Tim Janik <timj@gtk.org>
* gscanner.c (g_scanner_unexp_token): take symbol_2_token into

View File

@ -1,3 +1,7 @@
Sat Jul 4 13:38:52 PDT 1998 Manish Singh <yosh@gimp.org>
* glib.h: added g_array_length
Tue Jun 30 11:58:25 1998 Tim Janik <timj@gtk.org>
* gscanner.c (g_scanner_unexp_token): take symbol_2_token into

View File

@ -1,3 +1,7 @@
Sat Jul 4 13:38:52 PDT 1998 Manish Singh <yosh@gimp.org>
* glib.h: added g_array_length
Tue Jun 30 11:58:25 1998 Tim Janik <timj@gtk.org>
* gscanner.c (g_scanner_unexp_token): take symbol_2_token into

View File

@ -1,3 +1,7 @@
Sat Jul 4 13:38:52 PDT 1998 Manish Singh <yosh@gimp.org>
* glib.h: added g_array_length
Tue Jun 30 11:58:25 1998 Tim Janik <timj@gtk.org>
* gscanner.c (g_scanner_unexp_token): take symbol_2_token into

2
glib.h
View File

@ -891,6 +891,8 @@ void g_string_sprintfa (GString *string,
/* Resizable arrays
*/
#define g_array_length(array,type) \
(((array)->len)/sizeof(type))
#define g_array_append_val(array,type,val) \
g_rarray_append (array, (gpointer) &val, sizeof (type))
#define g_array_append_vals(array,type,vals,nvals) \

View File

@ -891,6 +891,8 @@ void g_string_sprintfa (GString *string,
/* Resizable arrays
*/
#define g_array_length(array,type) \
(((array)->len)/sizeof(type))
#define g_array_append_val(array,type,val) \
g_rarray_append (array, (gpointer) &val, sizeof (type))
#define g_array_append_vals(array,type,vals,nvals) \