diff options
author | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2016-07-06 21:31:22 -0400 |
---|---|---|
committer | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2016-07-06 21:31:22 -0400 |
commit | ce342a04922797cb53557178c54d32c4efafda16 (patch) | |
tree | d92372e30a992d950705e1f234bea5ac6405bd67 /awk.h | |
parent | f8424b236fabb881cc977b9e8e2e7c8debf56da0 (diff) | |
download | egawk-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.h | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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 |