aboutsummaryrefslogtreecommitdiffstats
path: root/gawkapi.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-10-04 12:52:26 +0200
committerArnold D. Robbins <arnold@skeeve.com>2012-10-04 12:52:26 +0200
commite7bdf5ebd4162172e79c00196061af625bd729f2 (patch)
tree50f12a230167ee3c730bbf89ba419f2b9afc6a0f /gawkapi.c
parent82f91536607791340faab394432860f68f0b2787 (diff)
downloadegawk-e7bdf5ebd4162172e79c00196061af625bd729f2.tar.gz
egawk-e7bdf5ebd4162172e79c00196061af625bd729f2.tar.bz2
egawk-e7bdf5ebd4162172e79c00196061af625bd729f2.zip
Clean up make_str_node macro.
Diffstat (limited to 'gawkapi.c')
-rw-r--r--gawkapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gawkapi.c b/gawkapi.c
index dbb8549b..3473a48c 100644
--- a/gawkapi.c
+++ b/gawkapi.c
@@ -634,7 +634,7 @@ api_sym_update_scalar(awk_ext_id_t id,
* a number, we can avoid calling unref and then making a new node
* by simply installing the new value. First, we follow the same
* recipe used by node.c:r_unref to wipe the current values, and then
- * we copy the logic from r_make_number or r_make_str_node to install
+ * we copy the logic from r_make_number or make_str_node to install
* the new value.
*/
switch (value->val_type) {
@@ -670,7 +670,7 @@ api_sym_update_scalar(awk_ext_id_t id,
#endif
free_wstr(r);
- /* r_make_str_node(ALREADY_MALLOCED): */
+ /* make_str_node(s, l, ALREADY_MALLOCED): */
r->numbr = 0;
r->flags = (MALLOC|STRING|STRCUR);
r->stfmt = -1;