POSTCODE(3)

Table of Contents

Name

postcode C code executed after a product is generated

Synopsis

%postcode
C-code segment

Description

The postcode section of a product description file contains C code that is executed by an SDTool after a product is generated, but before the product output file is closed. The C code is inserted as the last part of the GEN_x procedure in file GEN_x.c, where x is the option character that selects the product. If postprocessing or traversal of the parse tree is necessary after the product is generated, then this is the place to put the code.

The C code in this section is executed only if the product is generated. C code placed in the source description finalcode section will always be executed after all products are generated.

Example

%postcode
reportinfo("End Generation of Product X.\n");

See Also

FINALCODE(2)
HEADER(2)
MIDDLECODE(2)
STARTCODE(2)
DECLARE(3)
PRECODE(3)
GEN_x(5)


© 1990 Lucent Technologies, Inc
© 1998 Harmony Software, Inc