|
|
mkcatdecl generates message declaration files that enable C, C++, and Tcl programs to access the messages in the message files. Two C files or one Tcl file (or both) are generated for each module, based on the $moduleset line in the message description file. For example, if a module in a message description file has the following line:
$moduleset SCO_PIZZA C=../pizza/pizza Tcl=../pizza/pizzathe following files will be generated:
The C message declaration file needs to be included only once for each executable. It defines the data structures used by the SCOadmin internationalization facility. If there are more than one C file which make use of the messages from a given module, the additional files can include the external message declaration file, which consists of external declarations of the data in the message declaration file.
For a Tcl program using the messages of a given module, you need to ensure that the Tcl message declaration file is included only once. This can be accomplished by placing the message declaration file within a Tcl library.