diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-11-17 17:05:14 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-11-17 17:05:14 +0200 |
commit | 624caa19ebb5b5a19046f0b0deb96b2e6c093685 (patch) | |
tree | 81c57102dd0e7c42aa4b5f4e9b53ef9c9621c9bd /main.c | |
parent | 41da6a35e2cca4ec3c6b7c61e204e51484ecd7eb (diff) | |
download | egawk-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 */ |