annotate libfaim/aim_meta.c @ 993:eacd93d0089a

[gaim-migrate @ 1003] signing off should be reflected in the convo window. this will help prevent segfaults :-P committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 13 Oct 2000 22:32:20 +0000
parents 595ac7759563
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
282
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
1 /*
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
2 * Administrative things for libfaim.
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
3 *
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
4 * Changes by EWarmenhoven Wed May 31 00:31:52 UTC 2000
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
5 * - I don't wanna use aim_buildcode! :) I'll put the things that get made
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
6 * by the .sh file into Makefile.am and hopefully that'll work better.
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
7 *
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
8 */
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
9
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
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
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
12
840
595ac7759563 [gaim-migrate @ 850]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 349
diff changeset
13 faim_export char *aim_getbuilddate(void)
282
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
14 {
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
15 return AIM_BUILDDATE;
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
16 }
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
17
840
595ac7759563 [gaim-migrate @ 850]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 349
diff changeset
18 faim_export char *aim_getbuildtime(void)
282
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
19 {
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
20 return AIM_BUILDTIME;
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
21 }
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
22
840
595ac7759563 [gaim-migrate @ 850]
Eric Warmenhoven <eric@warmenhoven.org>
parents: 349
diff changeset
23 faim_export char *aim_getbuildstring(void)
282
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
24 {
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
25 static char string[100];
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
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
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
28 FAIM_VERSION_MAJOR,
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
29 FAIM_VERSION_MINOR,
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
30 FAIM_VERSION_MINORMINOR,
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
31 aim_getbuilddate(),
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
32 aim_getbuildtime());
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
33 return string;
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
34 }
918db59d3814 [gaim-migrate @ 292]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
diff changeset
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