I sure hope I didn't mess up the upgrades that I just applied to the
baseline. I also hope that you all approve of the changes...
1) Integrated the command line processing from htglobals. You can do a
htcobol -h to see the currently available options.
2) Changed the error output handling to set a "Cobol"ish return code.
3) Added a wrapper function to yyerror to allow the setting of numeric error
codes and error severity levels.
The compiler should act just as before from the command line if new options
are not used. Once everyone gets their scripts functioning with the -P
command line option (instead of the -l), I will add the code to pass library
information to the link editor.
I propose that we settle on the following return codes from the compiler
(and change exit/return codes when we are in the modules)
0 = informational
4 = warning
8 = error
12 = critical error
16 = OS critical error
Also, we should change all of the references to yyerror to use hterror.
hterror requires an error number and severity as well as the varargs that
yyerror is currently getting. I will be the first to admit that the
temporary error code as a global is an ugly hack, but I didn't want to try
to rework yyerror (probably a worse idea...)
I am willing to do the yyerror changes. I just wanted to minimize the
changes that I was making until you all could approve of them or tell me to
get out of the code ;)
Glen
|