Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/majn/tgl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/auto.h
diff options
context:
space:
mode:
authorvvaltman <vvaltman@neon>2015-04-22 13:57:52 +0300
committervvaltman <vvaltman@neon>2015-04-22 13:57:52 +0300
commita26ec159c218a4b3f40902427a9b15bcfa4ef39d (patch)
tree12ca62164c39e24631b79e79028a43e6ded5447e /auto.h
parentca6a83be98dd66b49f5d78fba27e35451c5948dc (diff)
many fixes
Diffstat (limited to 'auto.h')
-rw-r--r--auto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/auto.h b/auto.h
index 1c0da9c..b2e216a 100644
--- a/auto.h
+++ b/auto.h
@@ -53,6 +53,7 @@ static inline void *memdup (const void *d, int len) {
#define DS_LVAL(x) ((x) ? *(x) : 0)
#define DS_STR(x) ((x) ? (x)->data : NULL), ((x) ? (x)->len : 0)
+#define DS_RSTR(x) ((x) ? (x)->len : 0), ((x) ? (x)->data : NULL)
#define DS_STR_DUP(x) memdup(((x) ? (x)->data : NULL), ((x) ? (x)->len + 1: 0))
#define DS_BVAL(x) ((x) && ((x)->magic == CODE_bool_true))