diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2016-06-16 22:20:56 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2016-06-16 22:20:56 +0300 |
commit | e48a5f8c731e44fa71e8a53d57a4a47c2b8b3dc0 (patch) | |
tree | 2c3ccb9fe8e3b7c859b726932464b3cfd2980814 /awk.h | |
parent | f9586a3dc83144d6383f2db275532f981601426b (diff) | |
download | egawk-e48a5f8c731e44fa71e8a53d57a4a47c2b8b3dc0.tar.gz egawk-e48a5f8c731e44fa71e8a53d57a4a47c2b8b3dc0.tar.bz2 egawk-e48a5f8c731e44fa71e8a53d57a4a47c2b8b3dc0.zip |
Add some comments, minor buglet fix.
Diffstat (limited to 'awk.h')
-rw-r--r-- | awk.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1763,6 +1763,8 @@ dupnode(NODE *n) } #endif +/* force_string --- force a node to have a string value */ + static inline NODE * force_string(NODE *s) { @@ -1778,6 +1780,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) { @@ -1785,6 +1789,8 @@ unref(NODE *r) r_unref(r); } +/* force_number --- force a node to have a numeric value */ + static inline NODE * force_number(NODE *n) { @@ -1793,6 +1799,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) { @@ -1809,6 +1817,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) { |