mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
make data argument const.
Wed Sep 2 19:13:28 1998 Owen Taylor <otaylor@redhat.com> * garray.c glib.h (g_array_[ap/pr]epend_vals): make data argument const.
This commit is contained in:
parent
519435e642
commit
fa58379289
@ -1,3 +1,8 @@
|
||||
Wed Sep 2 19:13:28 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* garray.c glib.h (g_array_[ap/pr]epend_vals): make
|
||||
data argument const.
|
||||
|
||||
Wed Aug 26 06:32:40 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* glib.h:
|
||||
|
@ -1,3 +1,8 @@
|
||||
Wed Sep 2 19:13:28 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* garray.c glib.h (g_array_[ap/pr]epend_vals): make
|
||||
data argument const.
|
||||
|
||||
Wed Aug 26 06:32:40 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* glib.h:
|
||||
|
@ -1,3 +1,8 @@
|
||||
Wed Sep 2 19:13:28 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* garray.c glib.h (g_array_[ap/pr]epend_vals): make
|
||||
data argument const.
|
||||
|
||||
Wed Aug 26 06:32:40 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* glib.h:
|
||||
|
@ -1,3 +1,8 @@
|
||||
Wed Sep 2 19:13:28 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* garray.c glib.h (g_array_[ap/pr]epend_vals): make
|
||||
data argument const.
|
||||
|
||||
Wed Aug 26 06:32:40 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* glib.h:
|
||||
|
@ -1,3 +1,8 @@
|
||||
Wed Sep 2 19:13:28 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* garray.c glib.h (g_array_[ap/pr]epend_vals): make
|
||||
data argument const.
|
||||
|
||||
Wed Aug 26 06:32:40 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* glib.h:
|
||||
|
@ -1,3 +1,8 @@
|
||||
Wed Sep 2 19:13:28 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* garray.c glib.h (g_array_[ap/pr]epend_vals): make
|
||||
data argument const.
|
||||
|
||||
Wed Aug 26 06:32:40 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* glib.h:
|
||||
|
@ -1,3 +1,8 @@
|
||||
Wed Sep 2 19:13:28 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* garray.c glib.h (g_array_[ap/pr]epend_vals): make
|
||||
data argument const.
|
||||
|
||||
Wed Aug 26 06:32:40 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* glib.h:
|
||||
|
@ -1,3 +1,8 @@
|
||||
Wed Sep 2 19:13:28 1998 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* garray.c glib.h (g_array_[ap/pr]epend_vals): make
|
||||
data argument const.
|
||||
|
||||
Wed Aug 26 06:32:40 1998 Tim Janik <timj@gtk.org>
|
||||
|
||||
* glib.h:
|
||||
|
12
garray.c
12
garray.c
@ -79,9 +79,9 @@ g_array_free (GArray *array,
|
||||
}
|
||||
|
||||
GArray*
|
||||
g_array_append_vals (GArray *farray,
|
||||
gpointer data,
|
||||
guint len)
|
||||
g_array_append_vals (GArray *farray,
|
||||
gconstpointer data,
|
||||
guint len)
|
||||
{
|
||||
GRealArray *array = (GRealArray*) farray;
|
||||
|
||||
@ -95,9 +95,9 @@ g_array_append_vals (GArray *farray,
|
||||
}
|
||||
|
||||
GArray*
|
||||
g_array_prepend_vals (GArray *farray,
|
||||
gpointer data,
|
||||
guint len)
|
||||
g_array_prepend_vals (GArray *farray,
|
||||
gconstpointer data,
|
||||
guint len)
|
||||
{
|
||||
GRealArray *array = (GRealArray*) farray;
|
||||
|
||||
|
26
glib.h
26
glib.h
@ -1292,19 +1292,19 @@ void g_string_sprintfa (GString *string,
|
||||
#define g_array_prepend_val(a,v) g_array_prepend_vals(a,&v,1)
|
||||
#define g_array_index(a,t,i) (((t*)a->data)[i])
|
||||
|
||||
GArray* g_array_new (gboolean zero_terminated,
|
||||
gboolean clear,
|
||||
guint element_size);
|
||||
void g_array_free (GArray *array,
|
||||
gboolean free_segment);
|
||||
GArray* g_array_append_vals (GArray *array,
|
||||
gpointer data,
|
||||
guint len);
|
||||
GArray* g_array_prepend_vals (GArray *array,
|
||||
gpointer data,
|
||||
guint len);
|
||||
GArray* g_array_set_size (GArray *array,
|
||||
guint length);
|
||||
GArray* g_array_new (gboolean zero_terminated,
|
||||
gboolean clear,
|
||||
guint element_size);
|
||||
void g_array_free (GArray *array,
|
||||
gboolean free_segment);
|
||||
GArray* g_array_append_vals (GArray *array,
|
||||
gconstpointer data,
|
||||
guint len);
|
||||
GArray* g_array_prepend_vals (GArray *array,
|
||||
gconstpointer data,
|
||||
guint len);
|
||||
GArray* g_array_set_size (GArray *array,
|
||||
guint length);
|
||||
|
||||
/* Resizable pointer array. This interface is much less complicated
|
||||
* than the above. Add appends appends a pointer. Remove fills any
|
||||
|
@ -79,9 +79,9 @@ g_array_free (GArray *array,
|
||||
}
|
||||
|
||||
GArray*
|
||||
g_array_append_vals (GArray *farray,
|
||||
gpointer data,
|
||||
guint len)
|
||||
g_array_append_vals (GArray *farray,
|
||||
gconstpointer data,
|
||||
guint len)
|
||||
{
|
||||
GRealArray *array = (GRealArray*) farray;
|
||||
|
||||
@ -95,9 +95,9 @@ g_array_append_vals (GArray *farray,
|
||||
}
|
||||
|
||||
GArray*
|
||||
g_array_prepend_vals (GArray *farray,
|
||||
gpointer data,
|
||||
guint len)
|
||||
g_array_prepend_vals (GArray *farray,
|
||||
gconstpointer data,
|
||||
guint len)
|
||||
{
|
||||
GRealArray *array = (GRealArray*) farray;
|
||||
|
||||
|
26
glib/glib.h
26
glib/glib.h
@ -1292,19 +1292,19 @@ void g_string_sprintfa (GString *string,
|
||||
#define g_array_prepend_val(a,v) g_array_prepend_vals(a,&v,1)
|
||||
#define g_array_index(a,t,i) (((t*)a->data)[i])
|
||||
|
||||
GArray* g_array_new (gboolean zero_terminated,
|
||||
gboolean clear,
|
||||
guint element_size);
|
||||
void g_array_free (GArray *array,
|
||||
gboolean free_segment);
|
||||
GArray* g_array_append_vals (GArray *array,
|
||||
gpointer data,
|
||||
guint len);
|
||||
GArray* g_array_prepend_vals (GArray *array,
|
||||
gpointer data,
|
||||
guint len);
|
||||
GArray* g_array_set_size (GArray *array,
|
||||
guint length);
|
||||
GArray* g_array_new (gboolean zero_terminated,
|
||||
gboolean clear,
|
||||
guint element_size);
|
||||
void g_array_free (GArray *array,
|
||||
gboolean free_segment);
|
||||
GArray* g_array_append_vals (GArray *array,
|
||||
gconstpointer data,
|
||||
guint len);
|
||||
GArray* g_array_prepend_vals (GArray *array,
|
||||
gconstpointer data,
|
||||
guint len);
|
||||
GArray* g_array_set_size (GArray *array,
|
||||
guint length);
|
||||
|
||||
/* Resizable pointer array. This interface is much less complicated
|
||||
* than the above. Add appends appends a pointer. Remove fills any
|
||||
|
Loading…
Reference in New Issue
Block a user