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:
Owen Taylor 1998-09-02 23:11:04 +00:00 committed by Owen Taylor
parent 519435e642
commit fa58379289
12 changed files with 78 additions and 38 deletions

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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
View File

@ -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

View File

@ -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;

View File

@ -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