From 0cc57340cd623a7d8cb6e4d7c19a9222424ad514 Mon Sep 17 00:00:00 2001 From: mid Date: Tue, 30 May 2000 22:37:20 +0000 Subject: [PATCH] - Tue May 30 22:32:31 UTC 2000 - Added lock around tx seqnum to prevent that race when transmitting from diverse threads. (actually committed earlier today) - Added aim_meta.c and a few constants and things to keep track of "releases". - Added mkbuildinfo.sh to automatically update build string "constants" on every invocation of 'make all'. --- CHANGES | 8 ++++++++ Makefile | 8 ++++++-- aim_meta.c | 32 ++++++++++++++++++++++++++++++++ faim/aim.h | 9 +++++++++ mkbuildinfo.sh | 6 ++++++ 5 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 aim_meta.c create mode 100755 mkbuildinfo.sh diff --git a/CHANGES b/CHANGES index 335d4ba..d8ac39f 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,14 @@ No release numbers ------------------ + - Tue May 30 22:32:31 UTC 2000 + - Added lock around tx seqnum to prevent that race when transmitting + from diverse threads. (actually committed earlier today) + - Added aim_meta.c and a few constants and things to keep + track of "releases". + - Added mkbuildinfo.sh to automatically update build string + "constants" on every invocation of 'make all'. + - Mon May 29 12:08:28 GMT 2000 - Rearranged aim_tx_flushqueue(); moved write operation to aim_tx_sendframe() diff --git a/Makefile b/Makefile index e2be321..ecd396b 100644 --- a/Makefile +++ b/Makefile @@ -21,11 +21,15 @@ LIBFAIM_OBJECTS = \ aim_conn.o \ aim_chat.o \ aim_chatnav.o \ - aim_util.o + aim_util.o \ + aim_meta.o all: libfaim allutils -libfaim: $(LIBFAIM_OBJECTS) +mkbuildinfo: + @mkbuildinfo.sh + +libfaim: mkbuildinfo $(LIBFAIM_OBJECTS) $(AR) cru libfaim.a $(LIBFAIM_OBJECTS) $(RANLIB) libfaim.a ld -o $(SONAME) $(LIBFAIM_OBJECTS) -shared -soname $(SONAME) diff --git a/aim_meta.c b/aim_meta.c new file mode 100644 index 0000000..cb00187 --- /dev/null +++ b/aim_meta.c @@ -0,0 +1,32 @@ +/* + * Administrative things for libfaim. + * + * + */ + +#include +#include /* generated by mkbuildinfo.sh */ + +long long aim_getbuilddate(void) +{ + return AIM_BUILDDATE; +} + +long long aim_getbuildtime(void) +{ + return AIM_BUILDTIME; +} + +char *aim_getbuildstring(void) +{ + static char string[100]; + + snprintf(string, 99, "%d.%d.%d-%Ld%Ld", + FAIM_VERSION_MAJOR, + FAIM_VERSION_MINOR, + FAIM_VERSION_MINORMINOR, + aim_getbuilddate(), + aim_getbuildtime()); + return string; +} + diff --git a/faim/aim.h b/faim/aim.h index 6257282..e4e995e 100644 --- a/faim/aim.h +++ b/faim/aim.h @@ -6,6 +6,10 @@ #ifndef __AIM_H__ #define __AIM_H__ +#define FAIM_VERSION_MAJOR 0 +#define FAIM_VERSION_MINOR 99 +#define FAIM_VERSION_MINORMINOR 0 + #include #include @@ -524,5 +528,10 @@ char *aimutil_itemidx(char *toSearch, int index, char dl); int aim_snlen(const char *sn); int aim_sncmp(const char *sn1, const char *sn2); +/* aim_meta.c */ +long long aim_getbuilddate(void); +long long aim_getbuildtime(void); +char *aim_getbuildstring(void); + #endif /* __AIM_H__ */ diff --git a/mkbuildinfo.sh b/mkbuildinfo.sh new file mode 100755 index 0000000..5eb1c4f --- /dev/null +++ b/mkbuildinfo.sh @@ -0,0 +1,6 @@ +#!/bin/bash +rm -rf aim_meta.o aim_buildcode.h +echo -n "#define AIM_BUILDDATE " > aim_buildcode.h +echo `date +%Y%m%e` >> aim_buildcode.h +echo -n "#define AIM_BUILDTIME " >> aim_buildcode.h +echo `date +%H%M%S` >> aim_buildcode.h -- 2.45.2