A

The include file, bird.h

var

a:array[1..7] of char := 'penguin';

b:array[1..6] of char := 'toucan';

%var bird1

The output when you enable bird1 with the -configoption

The output when you enable bird2 with the -configoption

hostname% pc -xl-config bird1 ifdef.p hostname% a.out

Bird two is a penguin.

hostname% pc -xl -config bird2 ifdef.p hostname% a.out

Bird two is a toucan.

The %enable Directive

The %enable directive sets a conditional variable to true.

Syntax

%enable var1 ..., varN

Comments

A defined conditional variable is enable (true) when it appears in either the %enable directive or in the -configoption. Conditional variables are false by default.

254

Pascal 4.0 User’s Guide

Page 278
Image 278
HP SunSoft Pascal 4.0 manual enable Directive, Hostname% pc -xl -config bird2 ifdef.p hostname% a.out, 254