Separate Compilation
85
5
The program unit
,
inc_prog2.p
program inc_prog2;
%include "include2.h";
procedure proc; extern;
begin
global := 1;
writeln('From MAIN, before PROC: ',global);
proc;
writeln('From MAIN, after PROC: ',global);
end. { proc }
The module unit
,
inc_mod2.p
module inc_mod2;
define
global;
%include "include2.h";
procedure proc;
begin
writeln('From PROC : ',global);
global := 1;
end; { proc }
The
include
file,
include2.h
var
global : extern integer;
Summary of Contents for SunSoft Pascal 4.0
Page 14: ...xiv Pascal 4 0 User s Guide ...
Page 16: ...xvi Pascal 4 0 User s Guide ...
Page 30: ...6 Pascal 4 0 User s Guide 1 ...
Page 160: ...136 Pascal 4 0 User s Guide 6 ...
Page 268: ...244 Pascal 4 0 User s Guide 11 ...
Page 320: ...296 Pascal 4 0 User s Guide B ...
Page 331: ...Index 307 ...
Page 333: ......