HP 9000 User Manual page 117

Computers
Hide thumbs Also See for 9000:
Table of Contents

Advertisement

7
For a large or complex group of messages it may be useful to arrange the
messages into groups called sets. Message sets allow the programmer to
group similar messages together within a catalog. For example, one set might
contain all prompts, and another set might contain all error messages. A
set is introduced by a $set directive. Messages belong to the set specified
by the most recently appearing $set directive. Like message numbers, set
numbers are unsigned integers and must be in ascending order but need not be
consecutive. Message numbers in different sets are independent.
A default set, NL_SETD is defined in <nl_types .h> for use in source programs.
If a $set directive does not appear in the message text source file, messages
will be assigned to set NL_SETD. Using the default set and directives in the
same message text source file is not recommended.
A message text source file with sets might look like the following:
$set 100
$ user prompts
1 Text of message number 1
4
Text of message number
4
9
Text of message number
9
$set 200
$ error messages
1 Text of message number
1
3
Te~t
of message number
3
To make leading or trailing blanks visible, the $quote directive can specify a
quote symbol. For example:
$ show blanks
$quote "
1"
leading blanks"
2 "trailing blanks
"
For more details on the format of the message text source file see
gencat(l).
7·10 The Message Catalog System

Advertisement

Table of Contents
loading

Table of Contents