OSSP CVS Repository

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

Check-in Number: 913
Date: 2001-Sep-10 12:15:11 (local)
2001-Sep-10 10:15:11 (UTC)
User:thl
Branch:
Comment: no need to double-declare the version stuff
Tickets:
Inspections:
Files:
ossp-pkg/l2/l2.h.in      1.2 -> 1.3     14 inserted, 0 deleted
ossp-pkg/l2/l2_p.h      1.13 -> 1.14     0 inserted, 4 deleted

ossp-pkg/l2/l2.h.in 1.2 -> 1.3

--- l2.h.in      2001/09/10 09:54:41     1.2
+++ l2.h.in      2001/09/10 10:15:11     1.3
@@ -30,9 +30,23 @@
 #ifndef __L2_H__
 #define __L2_H__
 
+/* version information (compile-time) */
 #define L2_VERSION_STR "@L2_VERSION_STR@"
 #define L2_VERSION_HEX @L2_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;
+} l2_version_t;
+extern l2_version_t l2_version;
+
 /* include standard environment we are based on */
 #include <stdio.h>
 #include <stdlib.h>


ossp-pkg/l2/l2_p.h 1.13 -> 1.14

--- l2_p.h       2001/09/09 15:42:25     1.13
+++ l2_p.h       2001/09/10 10:15:11     1.14
@@ -36,10 +36,6 @@
 #include "l2_ut_pcre.h"
 #include "l2_ut_sa.h"
 
-#define _L2_VERSION_C_AS_HEADER_
-#include "l2_version.c"
-#undef  _L2_VERSION_C_AS_HEADER_
-
 #define L2_MAX_MSGSIZE    4096
 #define L2_MAX_CHANNELS    128
 #define L2_MAX_FORMATTERS  128

CVSTrac 2.0.1