Check-in Number:
|
1580 | |
Date: |
2002-Jan-18 18:30:05 (local)
2002-Jan-18 17:30:05 (UTC) |
User: | rse |
Branch: | |
Comment: |
provide a few macros and return codes |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/act/act.h.in 1.5 -> 1.6
--- act.h.in 2002/01/02 17:05:53 1.5
+++ act.h.in 2002/01/18 17:30:05 1.6
@@ -147,6 +147,18 @@
typedef enum act_type_en act_type_t;
/*
+ * Act return types
+ */
+typedef enum {
+ ACT_OK = 0,
+ ACT_ERR_ARG,
+ ACT_ERR_USE,
+ ACT_ERR_INT,
+ ACT_ERR_IMP,
+ ACT_ERR_SYS
+} act_rc_t;
+
+/*
* ???
*/
|
|
ossp-pkg/act/act_p.h.in 1.5 -> 1.6
--- act_p.h.in 2002/01/02 17:05:53 1.5
+++ act_p.h.in 2002/01/18 17:30:05 1.6
@@ -58,6 +58,9 @@
#define insist(expr,false) if (!(expr)) return false
+#define act_insist(expr,false) if (!(expr)) return false
+#define act_argcheck(expr) if (!(expr)) return ACT_ERR_ARG
+
/* compiler happyness: avoid ``empty compilation unit'' problem */
#define COMPILER_HAPPYNESS(name) \
int __##name##_unit = 0;
|
|