aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-07-17 23:13:14 +0300
committerArnold D. Robbins <arnold@skeeve.com>2012-07-17 23:13:14 +0300
commit0907dd281b71fb440c83fc53e6b4c7312f1c1f47 (patch)
tree4b68597c9c69c9d8af03213989b3edfa951477e5 /awk.h
parent7e99da1009403952ec84ade1cad199b59927f735 (diff)
downloadegawk-0907dd281b71fb440c83fc53e6b4c7312f1c1f47.tar.gz
egawk-0907dd281b71fb440c83fc53e6b4c7312f1c1f47.tar.bz2
egawk-0907dd281b71fb440c83fc53e6b4c7312f1c1f47.zip
Add AWK_VALUE_COOKIE. And performance speedup.
Diffstat (limited to 'awk.h')
-rw-r--r--awk.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/awk.h b/awk.h
index f08d7d9c..a85fef85 100644
--- a/awk.h
+++ b/awk.h
@@ -1636,7 +1636,8 @@ extern const wchar_t *wstrstr(const wchar_t *haystack, size_t hs_len,
const wchar_t *needle, size_t needle_len);
extern const wchar_t *wcasestrstr(const wchar_t *haystack, size_t hs_len,
const wchar_t *needle, size_t needle_len);
-extern void free_wstr(NODE *n);
+extern void r_free_wstr(NODE *n);
+#define free_wstr(n) (((n)->flags & WSTRCUR) ? r_free_wstr(n) : 0)
extern wint_t btowc_cache[];
#define btowc_cache(x) btowc_cache[(x)&0xFF]
extern void init_btowc_cache();