aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2012-09-25 12:58:05 +0200
committerArnold D. Robbins <arnold@skeeve.com>2012-09-25 12:58:05 +0200
commitb9a82851866f84ca306a2802b4ca50089a2fe683 (patch)
tree1f9928af8fc5f46589275992e6c6e7295e7a5924 /main.c
parenteb2698f49247c94c84e1e2c2304ba94d96c89bc9 (diff)
downloadegawk-b9a82851866f84ca306a2802b4ca50089a2fe683.tar.gz
egawk-b9a82851866f84ca306a2802b4ca50089a2fe683.tar.bz2
egawk-b9a82851866f84ca306a2802b4ca50089a2fe683.zip
First cut at SYMTAB and FUNCTAB.
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/main.c b/main.c
index f2a3c66b..e1cdd3d3 100644
--- a/main.c
+++ b/main.c
@@ -288,12 +288,18 @@ main(int argc, char **argv)
if (argc < 2)
usage(EXIT_FAILURE, stderr);
+ /* initialize the null string */
+ Nnull_string = make_string("", 0);
+
/* Robustness: check that file descriptors 0, 1, 2 are open */
init_fds();
/* init array handling. */
array_init();
+ /* init the symbol tables */
+ init_symbol_table();
+
output_fp = stdout;
/* we do error messages ourselves on invalid options */
@@ -588,8 +594,6 @@ out:
/* load group set */
init_groupset();
- /* initialize the null string */
- Nnull_string = make_string("", 0);
#ifdef HAVE_MPFR
if (do_mpfr) {
mpz_init(Nnull_string->mpg_i);