aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2016-07-06 21:31:22 -0400
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2016-07-06 21:31:22 -0400
commitce342a04922797cb53557178c54d32c4efafda16 (patch)
treed92372e30a992d950705e1f234bea5ac6405bd67 /awk.h
parentf8424b236fabb881cc977b9e8e2e7c8debf56da0 (diff)
downloadegawk-ce342a04922797cb53557178c54d32c4efafda16.tar.gz
egawk-ce342a04922797cb53557178c54d32c4efafda16.tar.bz2
egawk-ce342a04922797cb53557178c54d32c4efafda16.zip
Document string termination in header files and remove no-longer-needed string termination logic in various places.
Diffstat (limited to 'awk.h')
-rw-r--r--awk.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/awk.h b/awk.h
index b210dcdc..09757b9f 100644
--- a/awk.h
+++ b/awk.h
@@ -473,13 +473,7 @@ typedef struct exp_node {
#define re_cnt flags
/* Node_val */
-/*
- * Note that the string in stptr may not be NUL-terminated, but it is
- * guaranteed to have at least one extra byte that may be temporarily set
- * to '\0'. This is helpful when calling functions such as strtod that require
- * a NUL-terminated argument. In particular, field values $n for n > 0 and
- * n < NF will not have a NUL terminator, since they point into the $0 buffer.
- */
+/* Note that the string in stptr will always be NUL-terminated. */
#define stptr sub.val.sp
#define stlen sub.val.slen
#define valref sub.val.sref