Modifying SWAT Output [ Switch Programming User's Guide ] MPE/iX 5.0 Documentation
Switch Programming User's Guide
Modifying SWAT Output
The output file generated by SWAT contains the compiler statements and
external declarations necessary to permit compilation of the stub
procedure source code as a single entity. However, for a variety of
reasons, you may wish to modify this file. Because SWAT generates source
code in a text file, you can use existing HP 3000 editors to modify the
source produced by the tool.
Reasons for modifying SWAT output include the following:
* Adding additional compiler commands, error-handling statements,
and/or comments
* Merging several Switch stub source modules into one file (SWAT
produces only one stub per file)
* Making changes to handle the specific situations for which SWAT
cannot generate complete stubs (see "Special Cases" )
To merge Switch stubs, you need to identify the global area of a stub.
The top global area consists of the first line through the comment line
designating the end of the outer block declarations. The bottom global
area begins following the line containing the comment that designates the
end of the stub procedure. If you combine stubs, only one such global
area is necessary. You can delete the global areas from all but one
stub, and then insert any number of stub procedures between those global
declarations. Refer to Appendixes D and E for use files that automate
the process of merging several Switch stub source modules into one file.
MPE/iX 5.0 Documentation