mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Added g_array_length
-Yosh
This commit is contained in:
parent
b7c94a718d
commit
61bccc36a9
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
2
glib.h
@ -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) \
|
||||
|
@ -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) \
|
||||
|
Loading…
Reference in New Issue
Block a user