C Header protocol
Ben Duncan
bns
Tue May 3 10:56:38 PDT 2005
Ok, I am deep in re-writing SLAG.
I will have a "Menu Program" and a "menu module" (.so).
The idea being that the "module" will contain all of
the functions to handle the menu'ing stuff, but be a S-Lang loadable module.
The "Program" will be simply a stand alone Program linked with/to the
module to run from a command line a SLAG Menu definition.
I have defined a menu.h that contains the structures and other such stuff.
Now in the menu module, I have defined the prototypes at the top of the
program for the routines contained in the program. I have defined
in the menu.h, the routines in the module as "external ...".
menu "PROGRAM" will run them out of the module.
Is this the correct way to do this? Define the prototypes as external
in a header, even though the header is going to get included in the
program where the modules truly are defined?
Thanks ...
--
Ben Duncan - VersAccounting Software LLC 336 Elton Road Jackson MS, 39212
"Never attribute to malice, that which can be adequately explained by stupidity"
- Hanlon's Razor
More information about the Linux-users
mailing list