Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gtk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oblomov
gtk
Commits
344572dc
Commit
344572dc
authored
Jun 10, 1998
by
Owen Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed g_const_pointer => gconstpointer.
parent
b70abe38
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
136 additions
and
69 deletions
+136
-69
ChangeLog
ChangeLog
+9
-0
ChangeLog.pre-2-0
ChangeLog.pre-2-0
+9
-0
ChangeLog.pre-2-10
ChangeLog.pre-2-10
+9
-0
ChangeLog.pre-2-2
ChangeLog.pre-2-2
+9
-0
ChangeLog.pre-2-4
ChangeLog.pre-2-4
+9
-0
ChangeLog.pre-2-6
ChangeLog.pre-2-6
+9
-0
ChangeLog.pre-2-8
ChangeLog.pre-2-8
+9
-0
gdk/gdkcc.c
gdk/gdkcc.c
+3
-3
gdk/x11/gdkcc-x11.c
gdk/x11/gdkcc-x11.c
+3
-3
glib/ChangeLog
glib/ChangeLog
+4
-0
glib/gdataset.c
glib/gdataset.c
+14
-14
glib/ghash.c
glib/ghash.c
+4
-4
glib/glib.h
glib/glib.h
+14
-14
glib/gstring.c
glib/gstring.c
+2
-2
glib/gutils.c
glib/gutils.c
+1
-1
glib/testglib.c
glib/testglib.c
+7
-7
gtk/gtkaccelgroup.c
gtk/gtkaccelgroup.c
+3
-3
gtk/gtkbindings.c
gtk/gtkbindings.c
+5
-5
gtk/gtkmain.c
gtk/gtkmain.c
+6
-6
gtk/gtksignal.c
gtk/gtksignal.c
+6
-6
gtk/gtktext.c
gtk/gtktext.c
+1
-1
No files found.
ChangeLog
View file @
344572dc
Wed Jun 10 12:57:03 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkcc.c glib/ghash.c glib/glib.h glib/gstring.c
glib/gutils.c glib/testglib.c glib/gdataset.c
gtk/gtkaccelgroup.c gtk/gtkmain.c gtk/gtksignal.c
gtk/gtktext.c gtk/gtkbindings.c:
renamed g_const_pointer => gconstpointer
Wed Jun 10 06:25:17 1998 Tim Janik <timj@gtk.org>
* gdk/gdk.c (gdk_init): prevent gdk_init() from segfaulting when
...
...
ChangeLog.pre-2-0
View file @
344572dc
Wed Jun 10 12:57:03 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkcc.c glib/ghash.c glib/glib.h glib/gstring.c
glib/gutils.c glib/testglib.c glib/gdataset.c
gtk/gtkaccelgroup.c gtk/gtkmain.c gtk/gtksignal.c
gtk/gtktext.c gtk/gtkbindings.c:
renamed g_const_pointer => gconstpointer
Wed Jun 10 06:25:17 1998 Tim Janik <timj@gtk.org>
* gdk/gdk.c (gdk_init): prevent gdk_init() from segfaulting when
...
...
ChangeLog.pre-2-10
View file @
344572dc
Wed Jun 10 12:57:03 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkcc.c glib/ghash.c glib/glib.h glib/gstring.c
glib/gutils.c glib/testglib.c glib/gdataset.c
gtk/gtkaccelgroup.c gtk/gtkmain.c gtk/gtksignal.c
gtk/gtktext.c gtk/gtkbindings.c:
renamed g_const_pointer => gconstpointer
Wed Jun 10 06:25:17 1998 Tim Janik <timj@gtk.org>
* gdk/gdk.c (gdk_init): prevent gdk_init() from segfaulting when
...
...
ChangeLog.pre-2-2
View file @
344572dc
Wed Jun 10 12:57:03 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkcc.c glib/ghash.c glib/glib.h glib/gstring.c
glib/gutils.c glib/testglib.c glib/gdataset.c
gtk/gtkaccelgroup.c gtk/gtkmain.c gtk/gtksignal.c
gtk/gtktext.c gtk/gtkbindings.c:
renamed g_const_pointer => gconstpointer
Wed Jun 10 06:25:17 1998 Tim Janik <timj@gtk.org>
* gdk/gdk.c (gdk_init): prevent gdk_init() from segfaulting when
...
...
ChangeLog.pre-2-4
View file @
344572dc
Wed Jun 10 12:57:03 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkcc.c glib/ghash.c glib/glib.h glib/gstring.c
glib/gutils.c glib/testglib.c glib/gdataset.c
gtk/gtkaccelgroup.c gtk/gtkmain.c gtk/gtksignal.c
gtk/gtktext.c gtk/gtkbindings.c:
renamed g_const_pointer => gconstpointer
Wed Jun 10 06:25:17 1998 Tim Janik <timj@gtk.org>
* gdk/gdk.c (gdk_init): prevent gdk_init() from segfaulting when
...
...
ChangeLog.pre-2-6
View file @
344572dc
Wed Jun 10 12:57:03 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkcc.c glib/ghash.c glib/glib.h glib/gstring.c
glib/gutils.c glib/testglib.c glib/gdataset.c
gtk/gtkaccelgroup.c gtk/gtkmain.c gtk/gtksignal.c
gtk/gtktext.c gtk/gtkbindings.c:
renamed g_const_pointer => gconstpointer
Wed Jun 10 06:25:17 1998 Tim Janik <timj@gtk.org>
* gdk/gdk.c (gdk_init): prevent gdk_init() from segfaulting when
...
...
ChangeLog.pre-2-8
View file @
344572dc
Wed Jun 10 12:57:03 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkcc.c glib/ghash.c glib/glib.h glib/gstring.c
glib/gutils.c glib/testglib.c glib/gdataset.c
gtk/gtkaccelgroup.c gtk/gtkmain.c gtk/gtksignal.c
gtk/gtktext.c gtk/gtkbindings.c:
renamed g_const_pointer => gconstpointer
Wed Jun 10 06:25:17 1998 Tim Janik <timj@gtk.org>
* gdk/gdk.c (gdk_init): prevent gdk_init() from segfaulting when
...
...
gdk/gdkcc.c
View file @
344572dc
...
...
@@ -66,7 +66,7 @@
static
guint
hash_color
(
g
_const_
pointer
key
)
hash_color
(
g
const
pointer
key
)
{
const
GdkColor
*
color
=
key
;
...
...
@@ -74,8 +74,8 @@ hash_color (g_const_pointer key)
}
static
gint
compare_colors
(
g
_const_
pointer
a
,
g
_const_
pointer
b
)
compare_colors
(
g
const
pointer
a
,
g
const
pointer
b
)
{
const
GdkColor
*
aa
=
a
;
const
GdkColor
*
bb
=
b
;
...
...
gdk/x11/gdkcc-x11.c
View file @
344572dc
...
...
@@ -66,7 +66,7 @@
static
guint
hash_color
(
g
_const_
pointer
key
)
hash_color
(
g
const
pointer
key
)
{
const
GdkColor
*
color
=
key
;
...
...
@@ -74,8 +74,8 @@ hash_color (g_const_pointer key)
}
static
gint
compare_colors
(
g
_const_
pointer
a
,
g
_const_
pointer
b
)
compare_colors
(
g
const
pointer
a
,
g
const
pointer
b
)
{
const
GdkColor
*
aa
=
a
;
const
GdkColor
*
bb
=
b
;
...
...
glib/ChangeLog
View file @
344572dc
Wed Jun 10 12:56:07 1998 Owen Taylor <otaylor@gtk.org>
* glib.h: renamed g_const_pointer => gconstpointer
Tue Jun 9 17:47:33 1998 Owen Taylor <otaylor@gtk.org>
* glib.h: Remove #error - HP/UX.
...
...
glib/gdataset.c
View file @
344572dc
...
...
@@ -41,14 +41,14 @@ struct _GDatasetData
struct
_GDataset
{
g
_const_
pointer
location
;
g
const
pointer
location
;
GDatasetData
*
data_list
;
};
/* --- prototypes --- */
static
inline
GDataset
*
g_dataset_lookup
(
g
_const_
pointer
dataset_location
);
static
inline
void
g_dataset_destroy_i
(
GDataset
*
dataset
);
static
inline
GDataset
*
g_dataset_lookup
(
g
const
pointer
dataset_location
);
static
inline
void
g_dataset_destroy_i
(
GDataset
*
dataset
);
static
void
g_dataset_initialize
(
void
);
static
guint
*
g_dataset_id_new
(
void
);
...
...
@@ -65,7 +65,7 @@ static guint g_dataset_id_index = G_DATASET_ID_BLOCK_SIZE + 1;
/* --- functions --- */
static
inline
GDataset
*
g_dataset_lookup
(
g
_const_
pointer
dataset_location
)
g_dataset_lookup
(
g
const
pointer
dataset_location
)
{
register
GDataset
*
dataset
;
...
...
@@ -109,7 +109,7 @@ g_dataset_destroy_i (GDataset *dataset)
}
void
g_dataset_destroy
(
g
_const_
pointer
dataset_location
)
g_dataset_destroy
(
g
const
pointer
dataset_location
)
{
register
GDataset
*
dataset
;
...
...
@@ -121,9 +121,9 @@ g_dataset_destroy (g_const_pointer dataset_location)
}
void
g_dataset_id_set_destroy
(
g
_const_
pointer
dataset_location
,
guint
key_id
,
GDestroyNotify
destroy_func
)
g_dataset_id_set_destroy
(
g
const
pointer
dataset_location
,
guint
key_id
,
GDestroyNotify
destroy_func
)
{
g_return_if_fail
(
dataset_location
!=
NULL
);
...
...
@@ -150,8 +150,8 @@ g_dataset_id_set_destroy (g_const_pointer dataset_location,
}
gpointer
g_dataset_id_get_data
(
g
_const_
pointer
dataset_location
,
guint
key_id
)
g_dataset_id_get_data
(
g
const
pointer
dataset_location
,
guint
key_id
)
{
g_return_val_if_fail
(
dataset_location
!=
NULL
,
NULL
);
...
...
@@ -174,10 +174,10 @@ g_dataset_id_get_data (g_const_pointer dataset_location,
}
void
g_dataset_id_set_data_full
(
g
_const_
pointer
dataset_location
,
guint
key_id
,
gpointer
data
,
GDestroyNotify
destroy_func
)
g_dataset_id_set_data_full
(
g
const
pointer
dataset_location
,
guint
key_id
,
gpointer
data
,
GDestroyNotify
destroy_func
)
{
register
GDataset
*
dataset
;
register
GDatasetData
*
list
;
...
...
glib/ghash.c
View file @
344572dc
...
...
@@ -145,8 +145,8 @@ g_hash_table_insert (GHashTable *hash_table,
}
void
g_hash_table_remove
(
GHashTable
*
hash_table
,
g
_const_
pointer
key
)
g_hash_table_remove
(
GHashTable
*
hash_table
,
g
const
pointer
key
)
{
GRealHashTable
*
rhash_table
;
GHashNode
*
node
;
...
...
@@ -186,8 +186,8 @@ g_hash_table_remove (GHashTable *hash_table,
}
gpointer
g_hash_table_lookup
(
GHashTable
*
hash_table
,
g
_const_
pointer
key
)
g_hash_table_lookup
(
GHashTable
*
hash_table
,
g
const
pointer
key
)
{
GRealHashTable
*
rhash_table
;
GHashNode
*
node
;
...
...
glib/glib.h
View file @
344572dc
...
...
@@ -389,7 +389,7 @@ typedef double gldouble;
#endif
/* 0 */
typedef
void
*
gpointer
;
typedef
const
void
*
g
_const_
pointer
;
typedef
const
void
*
g
const
pointer
;
#if (SIZEOF_CHAR == 1)
typedef
signed
char
gint8
;
...
...
@@ -472,9 +472,9 @@ typedef void (*GScannerMsgFunc) (GScanner *scanner,
gint
error
);
typedef
void
(
*
GDestroyNotify
)
(
gpointer
data
);
typedef
guint
(
*
GHashFunc
)
(
g
_const_pointer
key
);
typedef
gint
(
*
GCompareFunc
)
(
g
_const_pointer
a
,
g
_const_pointer
b
);
typedef
guint
(
*
GHashFunc
)
(
g
constpointer
key
);
typedef
gint
(
*
GCompareFunc
)
(
g
constpointer
a
,
g
constpointer
b
);
struct
_GList
{
...
...
@@ -627,9 +627,9 @@ void g_hash_table_insert (GHashTable *hash_table,
gpointer
key
,
gpointer
value
);
void
g_hash_table_remove
(
GHashTable
*
hash_table
,
g
_const_pointer
key
);
g
constpointer
key
);
gpointer
g_hash_table_lookup
(
GHashTable
*
hash_table
,
g
_const_pointer
key
);
g
constpointer
key
);
void
g_hash_table_freeze
(
GHashTable
*
hash_table
);
void
g_hash_table_thaw
(
GHashTable
*
hash_table
);
void
g_hash_table_foreach
(
GHashTable
*
hash_table
,
...
...
@@ -893,29 +893,29 @@ GArray* g_rarray_truncate (GArray *array,
/* Hash Functions
*/
gint
g_str_equal
(
g
_const_pointer
v
,
g
_const_pointer
v2
);
guint
g_str_hash
(
g
_const_
pointer
v
);
gint
g_str_equal
(
g
constpointer
v
,
g
constpointer
v2
);
guint
g_str_hash
(
g
const
pointer
v
);
/* This "hash" function will just return the key's adress as an
* unsigned integer. Useful for hashing on plain adresses or
* simple integer values.
*/
guint
g_direct_hash
(
g
_const_
pointer
key
);
guint
g_direct_hash
(
g
const
pointer
key
);
/* Location Associated Data
*/
void
g_dataset_destroy
(
g
_const_pointer
dataset_location
);
void
g_dataset_destroy
(
g
constpointer
dataset_location
);
guint
g_dataset_try_key
(
const
gchar
*
key
);
guint
g_dataset_force_id
(
const
gchar
*
key
);
gpointer
g_dataset_id_get_data
(
g
_const_pointer
dataset_location
,
gpointer
g_dataset_id_get_data
(
g
constpointer
dataset_location
,
guint
key_id
);
void
g_dataset_id_set_data_full
(
g
_const_pointer
dataset_location
,
void
g_dataset_id_set_data_full
(
g
constpointer
dataset_location
,
guint
key_id
,
gpointer
data
,
GDestroyNotify
destroy_func
);
void
g_dataset_id_set_destroy
(
g
_const_pointer
dataset_location
,
void
g_dataset_id_set_destroy
(
g
constpointer
dataset_location
,
guint
key_id
,
GDestroyNotify
destroy_func
);
...
...
glib/gstring.c
View file @
344572dc
...
...
@@ -50,14 +50,14 @@ static GMemChunk *string_mem_chunk = NULL;
*/
gint
g_str_equal
(
g
_const_pointer
v
,
g_const_
pointer
v2
)
g_str_equal
(
g
constpointer
v
,
gconst
pointer
v2
)
{
return
strcmp
((
const
gchar
*
)
v
,
(
const
gchar
*
)
v2
)
==
0
;
}
/* a char* hash function from ASU */
guint
g_str_hash
(
g
_const_
pointer
v
)
g_str_hash
(
g
const
pointer
v
)
{
const
char
*
s
=
(
char
*
)
v
;
const
char
*
p
;
...
...
glib/gutils.c
View file @
344572dc
...
...
@@ -847,7 +847,7 @@ g_parse_debug_string (const gchar *string,
}
guint
g_direct_hash
(
g
_const_
pointer
key
)
g_direct_hash
(
g
const
pointer
key
)
{
return
GPOINTER_TO_UINT
(
key
);
}
...
...
glib/testglib.c
View file @
344572dc
...
...
@@ -33,20 +33,20 @@ my_hash_callback (gpointer key,
}
guint
my_hash
(
g
_const_
pointer
key
)
my_hash
(
g
const
pointer
key
)
{
return
(
guint
)
*
((
const
gint
*
)
key
);
}
gint
my_hash_compare
(
g
_const_
pointer
a
,
g
_const_
pointer
b
)
my_hash_compare
(
g
const
pointer
a
,
g
const
pointer
b
)
{
return
*
((
const
gint
*
)
a
)
==
*
((
const
gint
*
)
b
);
}
gint
my_list_compare_one
(
g
_const_pointer
a
,
g_const_
pointer
b
)
my_list_compare_one
(
g
constpointer
a
,
gconst
pointer
b
)
{
gint
one
=
*
((
const
gint
*
)
a
);
gint
two
=
*
((
const
gint
*
)
b
);
...
...
@@ -54,7 +54,7 @@ my_list_compare_one (g_const_pointer a, g_const_pointer b)
}
gint
my_list_compare_two
(
g
_const_pointer
a
,
g_const_
pointer
b
)
my_list_compare_two
(
g
constpointer
a
,
gconst
pointer
b
)
{
gint
one
=
*
((
const
gint
*
)
a
);
gint
two
=
*
((
const
gint
*
)
b
);
...
...
@@ -69,8 +69,8 @@ my_list_print (gpointer a, gpointer b)
}; */
gint
my_compare
(
g
_const_
pointer
a
,
g
_const_
pointer
b
)
my_compare
(
g
const
pointer
a
,
g
const
pointer
b
)
{
const
char
*
cha
=
a
;
const
char
*
chb
=
b
;
...
...
gtk/gtkaccelgroup.c
View file @
344572dc
...
...
@@ -57,8 +57,8 @@ static GMemChunk *accel_entries_mem_chunk = NULL;
/* --- functions --- */
static
gint
gtk_accel_entries_equal
(
g
_const_
pointer
a
,
g
_const_
pointer
b
)
gtk_accel_entries_equal
(
g
const
pointer
a
,
g
const
pointer
b
)
{
const
GtkAccelEntry
*
e1
;
const
GtkAccelEntry
*
e2
;
...
...
@@ -72,7 +72,7 @@ gtk_accel_entries_equal (g_const_pointer a,
}
static
guint
gtk_accel_entries_hash
(
g
_const_
pointer
a
)
gtk_accel_entries_hash
(
g
const
pointer
a
)
{
const
GtkAccelEntry
*
e
;
guint
h
;
...
...
gtk/gtkbindings.c
View file @
344572dc
...
...
@@ -70,7 +70,7 @@ binding_signal_free (GtkBindingSignal *sig)
}
static
guint
binding_entry_hash
(
g
_const_
pointer
key
)
binding_entry_hash
(
g
const
pointer
key
)
{
register
const
GtkBindingEntry
*
e
=
key
;
register
guint
h
;
...
...
@@ -82,8 +82,8 @@ binding_entry_hash (g_const_pointer key)
}
static
gint
binding_entries_compare
(
g
_const_
pointer
a
,
g
_const_
pointer
b
)
binding_entries_compare
(
g
const
pointer
a
,
g
const
pointer
b
)
{
register
const
GtkBindingEntry
*
ea
=
a
;
register
const
GtkBindingEntry
*
eb
=
b
;
...
...
@@ -762,8 +762,8 @@ binding_match_activate (GSList *pspec_list,
}
static
gint
gtk_binding_pattern_compare
(
g
_const_
pointer
a
,
g
_const_
pointer
b
)
gtk_binding_pattern_compare
(
g
const
pointer
a
,
g
const
pointer
b
)
{
register
const
GtkPatternSpec
*
pa
=
a
;
register
const
GtkPatternSpec
*
pb
=
b
;
...
...
gtk/gtkmain.c
View file @
344572dc
...
...
@@ -128,11 +128,11 @@ static gint gtk_timeout_remove_from_list (GList **list,
guint
tag
,
gint
remove_link
);
static
gint
gtk_idle_compare
(
g
_const_
pointer
a
,
g
_const_
pointer
b
);
static
gint
gtk_idle_compare
(
g
const
pointer
a
,
g
const
pointer
b
);
static
gint
gtk_timeout_compare
(
g
_const_
pointer
a
,
g
_const_
pointer
b
);
static
gint
gtk_timeout_compare
(
g
const
pointer
a
,
g
const
pointer
b
);
const
guint
gtk_major_version
=
GTK_MAJOR_VERSION
;
const
guint
gtk_minor_version
=
GTK_MINOR_VERSION
;
...
...
@@ -995,7 +995,7 @@ gtk_timeout_remove (guint tag)
* sure that we insert at the _end_ of the idles of this priority
*/
static
gint
gtk_idle_compare
(
g
_const_pointer
a
,
g_const_
pointer
b
)
gtk_idle_compare
(
g
constpointer
a
,
gconst
pointer
b
)
{
return
(((
const
GtkIdleFunction
*
)
a
)
->
priority
<
((
const
GtkIdleFunction
*
)
b
)
->
priority
)
...
...
@@ -1364,7 +1364,7 @@ gtk_exit_func (void)
* sure that we insert after timeouts of equal interval
*/
static
gint
gtk_timeout_compare
(
g
_const_pointer
a
,
g_const_
pointer
b
)
gtk_timeout_compare
(
g
constpointer
a
,
gconst
pointer
b
)
{
return
(((
const
GtkTimeoutFunction
*
)
a
)
->
interval
<
((
const
GtkTimeoutFunction
*
)
b
)
->
interval
)
...
...
gtk/gtksignal.c
View file @
344572dc
...
...
@@ -119,9 +119,9 @@ struct _GtkDisconnectInfo
};
static
guint
gtk_signal_hash
(
g
_const_
pointer
h
);
static
gint
gtk_signal_compare
(
g
_const_
pointer
h1
,
g
_const_
pointer
h2
);
static
guint
gtk_signal_hash
(
g
const
pointer
h
);
static
gint
gtk_signal_compare
(
g
const
pointer
h1
,
g
const
pointer
h2
);
static
GtkHandler
*
gtk_signal_handler_new
(
void
);
static
void
gtk_signal_handler_ref
(
GtkHandler
*
handler
);
static
void
gtk_signal_handler_unref
(
GtkHandler
*
handler
,
...
...
@@ -1186,7 +1186,7 @@ gtk_signal_set_funcs (GtkSignalMarshal marshal_func,
}
static
guint
gtk_signal_hash
(
g
_const_
pointer
h
)
gtk_signal_hash
(
g
const
pointer
h
)
{
register
const
GtkSignalHash
*
hash
=
h
;
...
...
@@ -1194,8 +1194,8 @@ gtk_signal_hash (g_const_pointer h)
}
static
gint
gtk_signal_compare
(
g
_const_
pointer
h1
,
g
_const_
pointer
h2
)
gtk_signal_compare
(
g
const
pointer
h1
,
g
const
pointer
h2
)
{
register
const
GtkSignalHash
*
hash1
=
h1
;
register
const
GtkSignalHash
*
hash2
=
h2
;
...
...
gtk/gtktext.c
View file @
344572dc
...
...
@@ -2495,7 +2495,7 @@ insert_expose (GtkText* text, guint old_pixels, gint nchars,
}
static
guint
font_hash
(
g
_const_
pointer
font
)
font_hash
(
g
const
pointer
font
)
{
return
gdk_font_id
((
const
GdkFont
*
)
font
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment