STATEMENT(4)

Table of Contents

Name

statement executes a C statement during product generation

Synopsis

%{ C-statement }

Description

The C statement template construct allows arbitrary C code to be executed at any time during product generation. The construct does not generate any output to the product (unless it includes calls to the run-time routines that send output to the current product). Any function or variable in the ivy*meta SDTB run-time library, or any function or variable declared in the header section of the source description file or declare section of the product description file, may be used in the statement.

Example

The following product description
%declare
static STRING ident, count;

%template
%forall sym:SYMBOL %loop

%{
ident = tok(sym); count = itoa(lookup(ident,symtable)); } The identifier %(ident) appears %(count) times. %end-loop would generate output like: The identifier abc appears 5 times. The identifier def appears 4 times.

See Also

HEADER(2)
DECLARE(3)
EXPRESSION(4)


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