The file (sequence) inclusion directive is seq
. The argument of
seq
is an include files ‘,’ separated list. The include
files are Keep
in cmz. The following optional arguments may be
mixed:
A conditionnal is introduced by IF=
followed by a conditionnal
expression described in
Conditional expressions. The
directive is ignored if the conditionnal expression is false.
When this argument is present the text of the sequence will
always be included in the file where the +seq
appears.
When there is no T=noinclude
argument, the +seq
directive may be replaced with an inclusion command suitable
for the language of the file being processed, if such
command has been specified.
For example if we have the following sequence
+KEEP,inc,lang=C typedef struct incstr {char* msg};
And the following code in the file being processed:
+DECK,mainf,lang=C +SEQ,inc int main (int argc, char* argv) { exit(0); }
the processing of ‘mainf’ should lead to the file ‘mainf.c’, containing an include command for ‘inc’:
#include "inc.h" int main (int argc, char* argv) { exit(0); }
In case the +seq
has the T=noinclude
:
+DECK,mainf,lang=C +SEQ,inc,T=noinclude int main (int argc, char* argv) { exit(0); }
The processing of ‘mainf’ should lead to the file ‘mainf.c’ containing the text of ‘inc’:
typedef struct incstr {char* msg}; int main (int argc, char* argv) { exit(0); }