This is about option processing code and inserted main() procedures:
Long, long ago and far away, main procedures were not emitted into
the result. Then I realized it would be really useful to be able
to test the options without building the entire program.
"test-main" was born.
Then I figured out that it was really useful to have infrastructure
that seamlessly handled operands from the command line equally with
operands read from stdin. The "main = { ... };" stuff was born.
Except now there were two ways to create a "main()". Rather than
obsolete the old way, I used its presence to create the same information
as one would see with "main = { type = test; ... };". All would
then be good, but as has been noted there are wrinkles that I must
have revealed with some patch I did.
The result is that today we have two not-very-well-integrated
methods for inserting a main() procedure:
The 'main' attribute and various "sub" attributes:
http://autogen.sourceforge.net/doc/Generated-main.html
and a "test-main" attribute that has become mainly a problem
http://autogen.sourceforge.net/doc/main-main.html
Because supporting both has shown itself to be a painful nuisance,
you will now get warnings if you use "test-main" and support for
it will be withdrawn entirely sometime or another.
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Autogen-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/autogen-users