aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-03-27 06:40:45 +0300
committerArnold D. Robbins <arnold@skeeve.com>2015-03-27 06:40:45 +0300
commit3fad6ad12e1637c4e1b72fbeaf0265f44da0cf27 (patch)
tree8e83597d27430370914142150647e11c07410e0b /eval.c
parent603eb56251817ac19491b7671ed01402b2d7399c (diff)
parent7d3d7d27391db40c0561ea47e6b8a5a1ae24c6fb (diff)
downloadegawk-3fad6ad12e1637c4e1b72fbeaf0265f44da0cf27.tar.gz
egawk-3fad6ad12e1637c4e1b72fbeaf0265f44da0cf27.tar.bz2
egawk-3fad6ad12e1637c4e1b72fbeaf0265f44da0cf27.zip
Merge branch 'master' into wasted-byte
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 95ce758c..8ee17615 100644
--- a/eval.c
+++ b/eval.c
@@ -25,7 +25,6 @@
#include "awk.h"
-extern void after_beginfile(IOBUF **curfile);
extern double pow(double x, double y);
extern double modf(double x, double *yp);
extern double fmod(double x, double y);
@@ -1026,6 +1025,7 @@ update_ERRNO_int(int errcode)
{
char *cp;
+ update_PROCINFO_num("errno", errcode);
if (errcode) {
cp = strerror(errcode);
cp = gettext(cp);
@@ -1040,6 +1040,7 @@ update_ERRNO_int(int errcode)
void
update_ERRNO_string(const char *string)
{
+ update_PROCINFO_num("errno", 0);
unref(ERRNO_node->var_value);
ERRNO_node->var_value = make_string(string, strlen(string));
}
@@ -1049,6 +1050,7 @@ update_ERRNO_string(const char *string)
void
unset_ERRNO(void)
{
+ update_PROCINFO_num("errno", 0);
unref(ERRNO_node->var_value);
ERRNO_node->var_value = dupnode(Nnull_string);
}