diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-06-16 22:21:30 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-06-16 22:21:30 +0300 |
commit | b5c92588dc5972fab63ee2b2b8983a74e6fa5872 (patch) | |
tree | fb566835d746cfb1dcfb9a530fdab67a954ecfbb /awk.h | |
parent | ddb62efafb5659dae532089af83350f066446424 (diff) | |
parent | e48a5f8c731e44fa71e8a53d57a4a47c2b8b3dc0 (diff) | |
download | egawk-b5c92588dc5972fab63ee2b2b8983a74e6fa5872.tar.gz egawk-b5c92588dc5972fab63ee2b2b8983a74e6fa5872.tar.bz2 egawk-b5c92588dc5972fab63ee2b2b8983a74e6fa5872.zip |
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'awk.h')
-rw-r--r-- | awk.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1778,6 +1778,8 @@ dupnode(NODE *n) } #endif +/* force_string --- force a node to have a string value */ + static inline NODE * force_string(NODE *s) { @@ -1796,6 +1798,8 @@ force_string(NODE *s) #define force_number str2number #else /* not GAWKDEBUG */ +/* unref --- decrease the reference count and/or free a node */ + static inline void unref(NODE *r) { @@ -1803,6 +1807,8 @@ unref(NODE *r) r_unref(r); } +/* force_number --- force a node to have a numeric value */ + static inline NODE * force_number(NODE *n) { @@ -1814,6 +1820,8 @@ force_number(NODE *n) #endif /* GAWKDEBUG */ +/* emalloc_real --- malloc with error checking */ + static inline void * emalloc_real(size_t count, const char *where, const char *var, const char *file, int line) { @@ -1830,6 +1838,8 @@ emalloc_real(size_t count, const char *where, const char *var, const char *file, return ret; } +/* erealloc_real --- realloc with error checking */ + static inline void * erealloc_real(void *ptr, size_t count, const char *where, const char *var, const char *file, int line) { |