Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mkcatdefs(8) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

gencat



MKCATDEFS(8,C)              AIX Commands Reference               MKCATDEFS(8,C)



-------------------------------------------------------------------------------
mkcatdefs



PURPOSE

Processes symbolic message identifiers in message text source files.

SYNTAX


                                                         +------------+
mkcatdefs --- -h --- catname --- msg-file --- cmd-name --|            |-|
                                                         +- descfile -+


DESCRIPTION

The mkcatdefs command provides a mechanism for specifying message set numbers
and message identification numbers symbolically within a user program and
within the message catalog descriptor file used as input to the gencat command.
The mkcatdefs command preprocesses a descriptor file containing ASCII symbolic
message identifiers (set and message numbers), producing a descriptor file that
has these symbols replaced by numeric values for the set and message numbers.
A header file is also produced and can be included within a user program.  The
header file contains all the symbolic-to-numeric definitions (in the form
"#define symbol value") required to reference the message symbolically.

The -h option is used to suppress a header file.  The catname parameter is the
prefix used to create the header file (for example, catname-msg.h).  The
msg-file parameter contains the message text source file with symbolic
identifiers.

The cmd-name parameter generates a name for the header file (cmd-name_msg.h).
The cmd-name must be an ASCII file name.  The descfile parameter specifies a
descriptor file containing the symbolic definitions in place of the set and
message numbers (by convention the name of descfile is cmd-name.msg).  In
addition to the header file created by mkcatdefs, the modified descriptor file
(with numeric values in place of symbolic values) is written to standard
output.

The header file then can be included in programs that access the messages
within the catalog symbolically rather than numerically.  The descriptor file
written to standard output should be given to the gencat command to produce the
actual catalog.

RELATED INFORMATION

See the following command:  "gencat."

See the catgets and NLgetamsg subroutines in the AIX Technical Reference.



Processed November 8, 1990      MKCATDEFS(8,C)                                1





MKCATDEFS(8,C)              AIX Commands Reference               MKCATDEFS(8,C)




See the "Message Catalog Generation" section of the "International Character
Support" chapter of the AIX Operating System Programming Tools and Interfaces.

See the "Messages" chapter in the AIX MBCS Guide.


















































Processed November 8, 1990      MKCATDEFS(8,C)                                2



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026