OSSP CVS Repository

ossp - Difference in ossp-pkg/rc/rc_private.h versions 1.4 and 1.5
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/rc/rc_private.h 1.4 -> 1.5

--- rc_private.h 2002/02/28 15:30:04     1.4
+++ rc_private.h 2002/02/28 18:24:04     1.5
@@ -38,32 +38,35 @@
 #include <assert.h>
 #ifndef DEBUG
 #define NDEBUG
-#define TRACE(expr) ((void)0)
+#define TRACE(str) ((void)0)
+#define TRACEL(long) ((void)0)
 #else
 #define TRACE(str)  fprintf(stderr, "%s:%d: %s\n", __FILE__, __LINE__, str)
+#define TRACEL(long)  fprintf(stderr, "%s:%d: %ld\n", __FILE__, __LINE__, long)
 #endif
 
+/* The GUID for OSSP rc */
+#define RC_STR_ID "OSSP rc"
+
+
 /* Memory debugging support */
 #if defined(HAVE_DMALLOC_H) && defined(WITH_DMALLOC)
 #include "dmalloc.h"
 #endif
 
-/* GUID to use with OSSP ex library */
-const char g_szOSSPrc[];
-
 /* Define the ability to throw OSSP ex exceptions       */
 #include "ex.h" /* OSSP ex exception handling library   */
 #define RC_THROW(rv) \
     ((rv) != RC_OK && (ex_catching && !ex_shielding) \
-     ? (ex_throw(g_szOSSPrc, NULL, (rv)), (rv)) : (rv))
+     ? (ex_throw(RC_STR_ID, NULL, (rv)), (rv)) : (rv))
 
 #include "val.h"
 
 
 /* Main rc configuration storage */
 typedef struct {
-    void *pvCtx;
-    val_t *pVal;
+    val_t *pVal; /* Storage of configuration values         */
+    int nLocks;  /* Server locks, probably not thread-safe  */
 } rc_config_t;
 
 #endif /* __OSSPRC_PRIVATE_H__ */

CVSTrac 2.0.1