diff options
author | john haque <j.eh@mchsi.com> | 2011-08-21 05:54:38 -0500 |
---|---|---|
committer | john haque <j.eh@mchsi.com> | 2011-10-12 07:46:07 -0500 |
commit | f0866c5197ee0c01fd1ded16e364cbe612c271be (patch) | |
tree | bece1471f69606eea216154b2d7a480cd90c0a20 /array.c | |
parent | 1fea520248b42ca995c8797698c60301ea42ffe9 (diff) | |
download | egawk-f0866c5197ee0c01fd1ded16e364cbe612c271be.tar.gz egawk-f0866c5197ee0c01fd1ded16e364cbe612c271be.tar.bz2 egawk-f0866c5197ee0c01fd1ded16e364cbe612c271be.zip |
Add a test file, cleanup code and update doc.
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -48,10 +48,11 @@ static array_ptr *atypes[MAX_ATYPE]; static int num_atypes = 0; /* + * register_array_func --- add routines to handle arrays. + * * index 0 : initialization. * index 1 : check if index is compatible. * index 8 : array dump, memory and other statistics (do_adump). - * Also used by debugger 'examine' command. */ @@ -69,6 +70,7 @@ register_array_func(array_ptr *afunc) return FALSE; } + /* array_init --- register all builtin array types */ void @@ -79,6 +81,7 @@ array_init() (void) register_array_func(cint_array_func); } + /* make_array --- create an array node */ NODE * @@ -438,7 +441,7 @@ concat_exp(int nargs, int do_subsep) DEREF(r); } - return make_str_node(str, len); + return make_str_node(str, len, ALREADY_MALLOCED); } |