Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
4159:3f267c74e50a | 4160:fcc6db86f5c7 |
---|---|
406 | 406 |
407 /* Functions in idle.c */ | 407 /* Functions in idle.c */ |
408 extern gint check_idle(gpointer); | 408 extern gint check_idle(gpointer); |
409 | 409 |
410 /* Functions in prefs.c */ | 410 /* Functions in prefs.c */ |
411 extern void debug_printf(char * fmt, ...); | 411 extern void debug_printf(char * fmt, ...) G_GNUC_PRINTF(1,2); |
412 | 412 |
413 /* Functions in server.c */ | 413 /* Functions in server.c */ |
414 /* input to serv */ | 414 /* input to serv */ |
415 extern void serv_login(struct aim_user *); | 415 extern void serv_login(struct aim_user *); |
416 extern void serv_close(struct gaim_connection *); | 416 extern void serv_close(struct gaim_connection *); |
452 extern char *tobase64(const char *); | 452 extern char *tobase64(const char *); |
453 extern void frombase64(const char *, char **, int *); | 453 extern void frombase64(const char *, char **, int *); |
454 extern void clean_pid(); | 454 extern void clean_pid(); |
455 extern char *date(); | 455 extern char *date(); |
456 extern gint linkify_text(char *); | 456 extern gint linkify_text(char *); |
457 extern FILE *open_log_file (char *, int); | 457 extern FILE *open_log_file (const char *, int); |
458 extern char *sec_to_text(guint); | 458 extern char *sec_to_text(guint); |
459 extern struct aim_user *find_user(const char *, int); | 459 extern struct aim_user *find_user(const char *, int) G_GNUC_PURE; |
460 extern char *full_date(); | 460 extern char *full_date() G_GNUC_PURE; |
461 extern void check_gaim_versions(); | 461 extern void check_gaim_versions(); |
462 extern char *away_subs(char *, char *); | 462 extern char *away_subs(char *, char *); |
463 extern char *stylize(gchar *, int); | 463 extern char *stylize(gchar *, int); |
464 extern void show_usage (int, char *); | 464 extern void show_usage (int, char *); |
465 extern const gchar *gaim_home_dir(); | 465 extern const gchar *gaim_home_dir(); |
469 extern gchar *strdup_withhtml(const gchar *); | 469 extern gchar *strdup_withhtml(const gchar *); |
470 extern void away_on_login(char *); | 470 extern void away_on_login(char *); |
471 extern void system_log(enum log_event, struct gaim_connection *, struct buddy *, int); | 471 extern void system_log(enum log_event, struct gaim_connection *, struct buddy *, int); |
472 extern char *add_cr(char *); | 472 extern char *add_cr(char *); |
473 extern void strip_linefeed(char *); | 473 extern void strip_linefeed(char *); |
474 extern time_t get_time(int, int, int, int, int, int); | 474 extern time_t get_time(int, int, int, int, int, int) G_GNUC_CONST; |
475 extern FILE *gaim_mkstemp(gchar **); | 475 extern FILE *gaim_mkstemp(gchar **); |
476 extern char *convert_string(char *, const char *, const char *); | 476 extern char *convert_string(char *, const char *, const char *); |
477 extern const char *handle_uri(char *); | 477 extern const char *handle_uri(char *); |
478 | 478 |
479 /*------------------------------------------------------------------------*/ | 479 /*------------------------------------------------------------------------*/ |