aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-11-17 17:05:14 +0200
committerArnold D. Robbins <arnold@skeeve.com>2014-11-17 17:05:14 +0200
commit624caa19ebb5b5a19046f0b0deb96b2e6c093685 (patch)
tree81c57102dd0e7c42aa4b5f4e9b53ef9c9621c9bd /main.c
parent41da6a35e2cca4ec3c6b7c61e204e51484ecd7eb (diff)
downloadegawk-624caa19ebb5b5a19046f0b0deb96b2e6c093685.tar.gz
egawk-624caa19ebb5b5a19046f0b0deb96b2e6c093685.tar.bz2
egawk-624caa19ebb5b5a19046f0b0deb96b2e6c093685.zip
Add runtime check to run old code. Easier to debug/test.
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.c b/main.c
index ddda1d66..a2bdf1bc 100644
--- a/main.c
+++ b/main.c
@@ -170,6 +170,8 @@ GETGROUPS_T *groupset; /* current group set */
int ngroups; /* size of said set */
#endif
+bool do_old_mem = false; /* XXX temporary */
+
void (*lintfunc)(const char *mesg, ...) = r_warning;
/* Sorted by long option name! */
@@ -231,6 +233,9 @@ main(int argc, char **argv)
#endif /* HAVE_MTRACE */
#endif /* HAVE_MCHECK_H */
+ if (getenv("OLDMEM") != NULL)
+ do_old_mem = true; /* XXX temporary */
+
myname = gawk_name(argv[0]);
os_arg_fixup(&argc, &argv); /* emulate redirection, expand wildcards */