Mercurial > pidgin
diff src/gaim.h @ 4160:fcc6db86f5c7
[gaim-migrate @ 4389]
Nicola's Lichtmaier (niqueco) writes:
"Several things:
I've added some "const"s here and there.
I've declared some functions as "pure" or "const"
(helps gcc to optimize the code).
I've declared debug_printf so that gcc can check the
printf format string (this makes visible several
formatting bugs!)
I've changed minor things in util.c (why having an
useless extra call to g_strncasecmp?).
And I've added some _() as usual.
I hope some of this gets checked in, if not all."
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Tue, 31 Dec 2002 18:19:14 +0000 |
parents | 4b04ecb3eb97 |
children | af2eeb7f7cf8 |
line wrap: on
line diff
--- a/src/gaim.h Tue Dec 31 05:24:17 2002 +0000 +++ b/src/gaim.h Tue Dec 31 18:19:14 2002 +0000 @@ -408,7 +408,7 @@ extern gint check_idle(gpointer); /* Functions in prefs.c */ -extern void debug_printf(char * fmt, ...); +extern void debug_printf(char * fmt, ...) G_GNUC_PRINTF(1,2); /* Functions in server.c */ /* input to serv */ @@ -454,10 +454,10 @@ extern void clean_pid(); extern char *date(); extern gint linkify_text(char *); -extern FILE *open_log_file (char *, int); +extern FILE *open_log_file (const char *, int); extern char *sec_to_text(guint); -extern struct aim_user *find_user(const char *, int); -extern char *full_date(); +extern struct aim_user *find_user(const char *, int) G_GNUC_PURE; +extern char *full_date() G_GNUC_PURE; extern void check_gaim_versions(); extern char *away_subs(char *, char *); extern char *stylize(gchar *, int); @@ -471,7 +471,7 @@ extern void system_log(enum log_event, struct gaim_connection *, struct buddy *, int); extern char *add_cr(char *); extern void strip_linefeed(char *); -extern time_t get_time(int, int, int, int, int, int); +extern time_t get_time(int, int, int, int, int, int) G_GNUC_CONST; extern FILE *gaim_mkstemp(gchar **); extern char *convert_string(char *, const char *, const char *); extern const char *handle_uri(char *);