Mercurial > pidgin.yaz
annotate libfaim/aim_meta.c @ 1256:b2f63d1a989b
[gaim-migrate @ 1266]
dont --enable-debug! hehe j/k
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 14 Dec 2000 01:54:16 +0000 |
parents | 595ac7759563 |
children |
rev | line source |
---|---|
282 | 1 /* |
2 * Administrative things for libfaim. | |
3 * | |
4 * Changes by EWarmenhoven Wed May 31 00:31:52 UTC 2000 | |
5 * - I don't wanna use aim_buildcode! :) I'll put the things that get made | |
6 * by the .sh file into Makefile.am and hopefully that'll work better. | |
7 * | |
8 */ | |
9 | |
10 #include <faim/aim.h> | |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
283
diff
changeset
|
11 /* #include <aim_buildcode.h> generated by mkbuildinfo.sh */ |
282 | 12 |
840
595ac7759563
[gaim-migrate @ 850]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
13 faim_export char *aim_getbuilddate(void) |
282 | 14 { |
15 return AIM_BUILDDATE; | |
16 } | |
17 | |
840
595ac7759563
[gaim-migrate @ 850]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
18 faim_export char *aim_getbuildtime(void) |
282 | 19 { |
20 return AIM_BUILDTIME; | |
21 } | |
22 | |
840
595ac7759563
[gaim-migrate @ 850]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
23 faim_export char *aim_getbuildstring(void) |
282 | 24 { |
25 static char string[100]; | |
26 | |
283
0f14e6d8a51b
[gaim-migrate @ 293]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
282
diff
changeset
|
27 snprintf(string, 99, "%d.%d.%d-%s%s", |
282 | 28 FAIM_VERSION_MAJOR, |
29 FAIM_VERSION_MINOR, | |
30 FAIM_VERSION_MINORMINOR, | |
31 aim_getbuilddate(), | |
32 aim_getbuildtime()); | |
33 return string; | |
34 } | |
35 | |
840
595ac7759563
[gaim-migrate @ 850]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
36 #if debug > 0 |
595ac7759563
[gaim-migrate @ 850]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
37 faim_internal void faimdprintf(int dlevel, const char *format, ...) |
595ac7759563
[gaim-migrate @ 850]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
38 { |
595ac7759563
[gaim-migrate @ 850]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
39 if (dlevel >= debug) { |
595ac7759563
[gaim-migrate @ 850]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
40 va_list ap; |
595ac7759563
[gaim-migrate @ 850]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
41 |
595ac7759563
[gaim-migrate @ 850]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
42 va_start(ap, format); |
595ac7759563
[gaim-migrate @ 850]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
43 vfprintf(stderr, format, ap); |
595ac7759563
[gaim-migrate @ 850]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
44 va_end(ap); |
595ac7759563
[gaim-migrate @ 850]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
45 } |
595ac7759563
[gaim-migrate @ 850]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
46 return; |
595ac7759563
[gaim-migrate @ 850]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
47 } |
595ac7759563
[gaim-migrate @ 850]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
48 #else |
595ac7759563
[gaim-migrate @ 850]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
49 faim_internal void faimdprintf(int dlevel, const char *format, ...) |
595ac7759563
[gaim-migrate @ 850]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
50 { |
595ac7759563
[gaim-migrate @ 850]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
51 return; |
595ac7759563
[gaim-migrate @ 850]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
52 } |
595ac7759563
[gaim-migrate @ 850]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
349
diff
changeset
|
53 #endif |