This is a NON-STANDARD upload with the SAME NAME as the other file.
If you want to play with it, rename it yourself, or whatever you have to do to keep
it out of the rest of the development code. Let me explain. I have made the variables into structs for ::draw(), ::format(), and ::table_format(). Currently it's a work-alike clone, slightly un-optimized (every read is indirect *) but it's ready to build into a system so subroutines that can pass all the variables around as a single pointer. It's a little difficult to test at this point but I think it's currently an exact functional clone of the original code. From here I will try to make the if-else stuff more intelligible. BTW, the first on (::draw()) is loaded with descriptive comments in case you have been puzzled about how it works. It's really a verycool little parser.
I may just need to keep track of unknown keywords (tags) and count opens and closes. At least I hope so. Someone did a lot of work on that thing and I'd sure like to see it work. Anyway, in order to make testing easy, I have left the name of this file the same as the original, and it SHOULD be an exact work-alike still. This is a copy of HelpView.cxx (same name -- LOOK OUT!) [See attached.] ----------* In this, all the reads are indirect, that is they are reading object->varname rather than object.varname. The 'me' macro only looks like it's addressing the vars directly
because it's defined as #define me (*structptr)The reason to use the 'me' macro is because it keeps the code readable. Perhaps
more readable than it was, because now we can see who owns what variables.I'll try to get this working with the Doxygen now. It already works with simple
HTML. I'll let you know if I have any luck.
HelpView.cxx.tar.gz
Description: GNU Zip compressed data
_______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
