OSSP CVS Repository

ossp - Difference in ossp-pkg/mm/mm_vers.c versions 1.35 and 1.36
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/mm/mm_vers.c 1.35 -> 1.36

--- mm_vers.c    2000/06/20 07:02:06     1.35
+++ mm_vers.c    2000/07/01 14:17:42     1.36
@@ -1,32 +1,46 @@
 /*
-**  mm_vers.c -- Version Information
+**  mm_vers.c -- Version Information for MM (syntax: C/C++)
 **  [automatically generated and maintained by GNU shtool]
 */
 
-#ifdef _AS_HEADER
+#ifdef _MM_VERS_C_AS_HEADER_
+
+#ifndef _MM_VERS_C_
+#define _MM_VERS_C_
 
-#ifndef _MM_VERS_C
-#define _MM_VERS_C
 #define MM_VERSION 0x101203
-extern const int  MM_Version;
-extern const char MM_VersionStr[];
-extern const char MM_Hello[];
-extern const char MM_GNUVersion[];
-extern const char MM_WhatID[];
-extern const char MM_RCSIdentID[];
-extern const char MM_WebID[];
-extern const char MM_PlainID[];
-#endif /* _MM_VERS_C */
-
-#else
-
-const int  MM_Version      = 0x101203;
-const char MM_VersionStr[] = "1.1.3 (20-Jun-2000)";
-const char MM_Hello[]      = "This is MM, Version 1.1.3 (20-Jun-2000)";
-const char MM_GNUVersion[] = "MM Version 1.1.3";
-const char MM_WhatID[]     = "@(#)MM Version 1.1.3 (20-Jun-2000)";
-const char MM_RCSIdentID[] = "$Id: MM 1.1.3 20-Jun-2000 $";
-const char MM_WebID[]      = "MM/1.1.3";
-const char MM_PlainID[]    = "1.1.3";
 
-#endif
+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;
+} mm_version_t;
+
+extern mm_version_t mm_version;
+
+#endif /* _MM_VERS_C_ */
+
+#else /* _MM_VERS_C_AS_HEADER_ */
+
+#define _MM_VERS_C_AS_HEADER_
+#include "mm_vers.c"
+#undef  _MM_VERS_C_AS_HEADER_
+
+mm_version_t mm_version = {
+    0x101203,
+    "1.1.3",
+    "1.1.3 (01-Jul-2000)",
+    "This is MM, Version 1.1.3 (01-Jul-2000)",
+    "MM 1.1.3 (01-Jul-2000)",
+    "MM/1.1.3",
+    "@(#)MM 1.1.3 (01-Jul-2000)",
+    "$Id: MM 1.1.3 (01-Jul-2000) $"
+};
+
+#endif /* _MM_VERS_C_AS_HEADER_ */
+

CVSTrac 2.0.1