Mercurial > pidgin
annotate src/protocols/oscar/meta.c @ 4194:9325df841a40
[gaim-migrate @ 4425]
This is what happens when our cable goes down for a few hours.
Dear Time Warner,
Speaking as a customer, you suck.
-Your friendly neighborhood ant
So like, I went through and fixed pretty much every call to debug_printf,
so that it uses the correct %whatever's. I also changed a lot of va_arg
stuff to make it more uniform. The va_arg man page says that the return
value does not need to be cast, but if this is not true on all operating
systems, somebody lemme know and I'll fix it.
Oh, the few compile warnings that aren't fixed interfere with my SSI
stuff. I'll commit fixes for that along with the ICQ SSI stuff. I'm
trying to get it done before school starts on Thursday.
Keyword: Trying.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 04 Jan 2003 06:11:37 +0000 |
parents | 9682c0e022c6 |
children |
rev | line source |
---|---|
2086 | 1 /* |
2 * Administrative things for libfaim. | |
3 * | |
4 * | |
5 */ | |
6 | |
2672 | 7 #define FAIM_INTERNAL |
2086 | 8 #include <aim.h> |
9 | |
3630 | 10 #ifdef _WIN32 |
11 #include "win32dep.h" | |
12 #endif | |
13 | |
2086 | 14 faim_export char *aim_getbuilddate(void) |
15 { | |
2246
933346315b9b
[gaim-migrate @ 2256]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2086
diff
changeset
|
16 return AIM_BUILDDATE; |
2086 | 17 } |
18 | |
19 faim_export char *aim_getbuildtime(void) | |
20 { | |
2246
933346315b9b
[gaim-migrate @ 2256]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2086
diff
changeset
|
21 return AIM_BUILDTIME; |
2086 | 22 } |
23 | |
24 faim_export int aim_getbuildstring(char *buf, int buflen) | |
25 { | |
26 | |
2246
933346315b9b
[gaim-migrate @ 2256]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2086
diff
changeset
|
27 snprintf(buf, buflen, "%d.%d.%d-%s%s", |
933346315b9b
[gaim-migrate @ 2256]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2086
diff
changeset
|
28 FAIM_VERSION_MAJOR, |
933346315b9b
[gaim-migrate @ 2256]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2086
diff
changeset
|
29 FAIM_VERSION_MINOR, |
933346315b9b
[gaim-migrate @ 2256]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2086
diff
changeset
|
30 FAIM_VERSION_MINORMINOR, |
933346315b9b
[gaim-migrate @ 2256]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2086
diff
changeset
|
31 aim_getbuilddate(), |
933346315b9b
[gaim-migrate @ 2256]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2086
diff
changeset
|
32 aim_getbuildtime()); |
2086 | 33 |
2246
933346315b9b
[gaim-migrate @ 2256]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2086
diff
changeset
|
34 return 0; |
2086 | 35 } |
36 | |
2246
933346315b9b
[gaim-migrate @ 2256]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2086
diff
changeset
|
37 faim_internal void faimdprintf(aim_session_t *sess, int dlevel, const char *format, ...) |
2086 | 38 { |
2246
933346315b9b
[gaim-migrate @ 2256]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2086
diff
changeset
|
39 if (!sess) { |
933346315b9b
[gaim-migrate @ 2256]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2086
diff
changeset
|
40 fprintf(stderr, "faimdprintf: no session! boo! (%d, %s)\n", dlevel, format); |
933346315b9b
[gaim-migrate @ 2256]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2086
diff
changeset
|
41 return; |
933346315b9b
[gaim-migrate @ 2256]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2086
diff
changeset
|
42 } |
2086 | 43 |
2246
933346315b9b
[gaim-migrate @ 2256]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2086
diff
changeset
|
44 if ((dlevel <= sess->debug) && sess->debugcb) { |
933346315b9b
[gaim-migrate @ 2256]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2086
diff
changeset
|
45 va_list ap; |
2086 | 46 |
2246
933346315b9b
[gaim-migrate @ 2256]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2086
diff
changeset
|
47 va_start(ap, format); |
933346315b9b
[gaim-migrate @ 2256]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2086
diff
changeset
|
48 sess->debugcb(sess, dlevel, format, ap); |
933346315b9b
[gaim-migrate @ 2256]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2086
diff
changeset
|
49 va_end(ap); |
933346315b9b
[gaim-migrate @ 2256]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2086
diff
changeset
|
50 } |
2086 | 51 |
2246
933346315b9b
[gaim-migrate @ 2256]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2086
diff
changeset
|
52 return; |
2086 | 53 } |
2246
933346315b9b
[gaim-migrate @ 2256]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
2086
diff
changeset
|
54 |