HP 9000 User Manual page 127

Computers
Hide thumbs Also See for 9000:
Table of Contents

Advertisement

Step 4. Editing the Modified Source Program
Your new source program will need some minor editing before it can be used.
A string such as:
• • •
II
string
II
• • •
in the original source file, would have been changed to:
... catgets(catd, NL_SETN,
msg_num,
"string") ...
The msg_num was assigned by insertmsg. You must provide definitions for
catd and NL_SETN. This can be done by adding the following lines near the
beginning of the program:
#include <nl_types.h>
#define NL_SETN 1
catd
=
catopen("name",
0);
The catopen call would ordinarily be part of the "standard" initialization.
(See the section "Recommended Initialization" in this chapter for additional
information. )
7
After these modifications, the new source program can be compiled and linked.
Step 5. Editing the Message Text Source File
For many cases, the message text source file, prog.msg in the above example,
will need no modification. However, if you are using sets, appropriate $set
directives must be inserted.
Step 6. Creating a Message Catalog
After any changes to the message text source file, the message catalog can be
created using gencat. As in the earlier example:
gencat prog.cat prog.msg
7 -20
The Message Catalog System

Advertisement

Table of Contents
loading

Table of Contents