home *** CD-ROM | disk | FTP | other *** search
-
- {$V-}
- PROGRAM farexam;
- {-demonstrate BigTurbo techniques}
- {this file holds code for the extra segment}
-
- {first BigTurbo include file - before everything else}
- {$I far1.inc}
-
- {all your global variables and declarations are in following file}
- {$I exam.glo}
-
- {your procedures follow}
-
- PROCEDURE farproc1;
- {-demonstrate a local call in the extra segment}
- BEGIN
- WriteLn('got to farproc1');
- WriteLn('calling mainproc2 in main code segment');
- MakeLongCall('mainproc2');
- WriteLn('back from mainproc2');
- END; {farproc1}
-
- PROCEDURE farproc2;
- {-just demonstrate getting here from main segment}
- BEGIN
- WriteLn('got to farproc2 from main code');
- WriteLn('calling local procedure farproc1 in far code');
- farproc1;
- WriteLn('returned from farproc1');
- END; {farproc2}
-
- {second BigTurbo include file - after all your procedures}
- {$I far2.inc}
-
- BEGIN
- {this block should normally be empty}
- {you can use it to directly call procedures in this program during debugging}
- END.
-