diff options
author | Larry Doolittle <ldoolitt@recycle.lbl.gov> | 2017-11-21 07:40:05 -0800 |
---|---|---|
committer | Larry Doolittle <ldoolitt@recycle.lbl.gov> | 2017-11-21 07:40:05 -0800 |
commit | 8ca55ba30e7c52717350ef5b010285052cc9f76d (patch) | |
tree | 80f2cc491fe2580afebe95bd0c81e7842126db52 /src/vhd2vl.y | |
parent | 696301f0a1dbdbe42a2813e767afbfd571942669 (diff) | |
download | vhdl2vl-8ca55ba30e7c52717350ef5b010285052cc9f76d.tar.gz vhdl2vl-8ca55ba30e7c52717350ef5b010285052cc9f76d.zip |
Improve c89 compatibility
Diffstat (limited to 'src/vhd2vl.y')
-rw-r--r-- | src/vhd2vl.y | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/vhd2vl.y b/src/vhd2vl.y index 5f86051..2168073 100644 --- a/src/vhd2vl.y +++ b/src/vhd2vl.y @@ -2431,7 +2431,7 @@ simple_expr : signal { | '(' simple_expr ')' { expdata *e; e=xmalloc(sizeof(expdata)); - //e->sl=addwrap("(",$2->sl,")"); + /* e->sl=addwrap("(",$2->sl,")"); */ e->sl=addsl(NULL,$2->sl); $$=e; } @@ -2457,6 +2457,14 @@ int status; int opt; static int quiet; + static struct option options[] = { + {"debug", no_argument, &yydebug, 1 }, + {"quiet", no_argument, &quiet, 1 }, + {"std", required_argument, 0, 's' }, + {"help", no_argument, 0, 'h' }, + {0, 0, 0, 0 } + }; + /* Init the indentation variables */ indents[0]=NULL; for(i=1;i<MAXINDENT;i++){ @@ -2469,14 +2477,6 @@ static int quiet; sl->slst=NULL; } - static struct option options[] = { - {"debug", no_argument, &yydebug, 1 }, - {"quiet", no_argument, &quiet, 1 }, - {"std", required_argument, 0, 's' }, - {"help", no_argument, 0, 'h' }, - {0, 0, 0, 0 } - }; - while ((opt = getopt_long(argc, argv,"s:h", options, 0 )) != -1) { switch (opt) { case 0: |