[monkey-bubble: 114/753] s/int/gboolean/
- From: Sven Herzberg <herzi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [monkey-bubble: 114/753] s/int/gboolean/
- Date: Wed, 14 Jul 2010 22:05:15 +0000 (UTC)
commit 0934af72b3f94b21817b525f464dfea72099c54a
Author: George Lebl <jirka 5z com>
Date: Fri Jul 14 08:45:15 2000 +0000
s/int/gboolean/
Fri Jul 14 01:41:05 2000 George Lebl <jirka 5z com>
* gnome-dentry.[ch]: s/int/gboolean/
* gnome-help.[ch]: add const stuff
* gnome-history.[ch]: add const stuff and GnomeHistoryEnt is a
typedef to the structure and NOT the pointer as this is
inconsistent with the rest of gnome and plain ugly
* gnome-mime-info.[ch]: const stuff
* gnome-regex.h: use a standard looking typedef for the structure
* gnome-score.[ch]: const stuff
* gnome-url.[ch]: GnomeURLDisplayContext again a typedef to
the structure NOT the pointer so that we are consistent again
* gnomelib-init.[ch], gnomelib-init2.[ch]: const stuff
libgnome/gnome-score.c | 6 +++---
libgnome/gnome-score.h | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/libgnome/gnome-score.c b/libgnome/gnome-score.c
index c6dce31..8bdc983 100644
--- a/libgnome/gnome-score.c
+++ b/libgnome/gnome-score.c
@@ -348,7 +348,7 @@ gnome_score_init (const gchar * gamename)
*/
gint
gnome_score_log (gfloat score,
- gchar * level,
+ const gchar * level,
gboolean higher_to_lower_score_order)
{
struct command cmd;
@@ -394,8 +394,8 @@ gnome_score_log (gfloat score,
* point to regions that were allocated with g_malloc() with the contents.
*/
gint
-gnome_score_get_notable (gchar * gamename,
- gchar * level,
+gnome_score_get_notable (const gchar * gamename,
+ const gchar * level,
gchar *** names,
gfloat ** scores,
time_t ** scoretimes)
diff --git a/libgnome/gnome-score.h b/libgnome/gnome-score.h
index 8cdce98..ee3a6ff 100644
--- a/libgnome/gnome-score.h
+++ b/libgnome/gnome-score.h
@@ -45,16 +45,16 @@ gnome_score_init (const gchar * gamename);
/* Returns the position in the top-ten starting from 1, or 0 if it isn't in the table */
gint
gnome_score_log(gfloat score,
- gchar *level, /* Pass in NULL unless you want to keep
- per-level scores for the game */
+ const gchar *level, /* Pass in NULL unless you want to keep
+ per-level scores for the game */
/* Pass in TRUE if higher scores are "better"
in the game */
gboolean higher_to_lower_score_order);
gint /* Returns number of items in the arrays */
-gnome_score_get_notable(gchar *gamename, /* Will be auto-determined if NULL */
- gchar *level,
+gnome_score_get_notable(const gchar *gamename, /* Will be auto-determined if NULL */
+ const gchar *level,
gchar ***names,
gfloat **scores,
time_t **scoretimes);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]