OSSP CVS Repository

ossp - Check-in [912]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 912
Date: 2001-Sep-10 12:14:38 (local)
2001-Sep-10 10:14:38 (UTC)
User:thl
Branch:
Comment: add also run-time version information to public API
Tickets:
Inspections:
Files:
ossp-pkg/str/Makefile.in      1.35 -> 1.36     4 inserted, 2 deleted
ossp-pkg/str/str.h.in      1.1 -> 1.2     14 inserted, 0 deleted

ossp-pkg/str/Makefile.in 1.35 -> 1.36

--- Makefile.in  2001/09/05 08:29:16     1.35
+++ Makefile.in  2001/09/10 10:14:38     1.36
@@ -56,7 +56,8 @@
 str_parse.c \
 str_format.c \
 str_hash.c \
-str_base64.c
+str_base64.c \
+str_version.c
 
 OBJS=\
 str_pcre.lo \
@@ -67,7 +68,8 @@
 str_parse.lo \
 str_format.lo \
 str_hash.lo \
-str_base64.lo
+str_base64.lo \
+str_version.lo
 
 _VERSION_FILE = \
         $(S)str_version.c


ossp-pkg/str/str.h.in 1.1 -> 1.2

--- str.h.in     2001/09/10 09:55:13     1.1
+++ str.h.in     2001/09/10 10:14:38     1.2
@@ -38,9 +38,23 @@
 #define END_DECLARATION   /*nop*/
 #endif
 
+/* version information (compile-time) */
 #define STR_VERSION_STR "@STR_VERSION_STR@"
 #define STR_VERSION_HEX @STR_VERSION_HEX@
 
+/* version information (run-time) */
+typedef struct {
+    const int   v_hex;
+    const char *v_short;
+    const char *v_long;
+    const char *v_tex;
+    const char *v_gnu;
+    const char *v_web;
+    const char *v_sccs;
+    const char *v_rcs;
+} str_version_t;
+extern str_version_t str_version;
+
 #include <string.h>
 #include <sys/types.h>
 #include <stdarg.h>

CVSTrac 2.0.1