[comp.sys.mac] MPW/Lisa Pascal question.

gillies@noao.UUCP (05/29/87)

	I am currently converting a program from Lisa pascal to MPW pascal.
	I have never used the Lisa pascal compiler and do not have the
	manuals.  Does anyone know what the {$I-/+} compiler option does
	in Lisa pascal.  As far as I can tell, this option is not used
	(at least as $I) in MPW Pascal.  The $I option in MPW Pascal includes
	a separate source file.  I have MPW pascal 2.0b1;

	Below is a small segment of the code showing the use of the 
	$I option.  

     PROCEDURE writerec (var fd: cfile; var rec: gcrec; recnum: integer);
     BEGIN
        seek(fd, recnum);
        fd^:= rec;
        {$I-}
        put(fd);
        if (IORESULT<>0) or (eof(fd)) then 
             errmes ('CONTROL FILE WRITE ', recnum, IORESULT);
        {$I+}
     END;

	Please reply to me directly.  Thanks for your help.
----------------------------
Kim Gillies
National Optical Astronomy Observatories (NOAO)
950 North Cherry
Tucson, AZ  85719
{ihnp4, seismo}!noao!gillies
DELPHI: KGILLIES

jimd@frog.UUCP (Jim Damoulakis) (06/02/87)

In article <621@noao.UUCP> gillies@noao.arpa (Kim Gillies X246) writes:
>
>	I am currently converting a program from Lisa pascal to MPW pascal.
>	I have never used the Lisa pascal compiler and do not have the
>	manuals.  Does anyone know what the {$I-/+} compiler option does
>	in Lisa pascal.  As far as I can tell, this option is not used
>	(at least as $I) in MPW Pascal.  The $I option in MPW Pascal includes
>	a separate source file.  I have MPW pascal 2.0b1;
>

The $I+/$I- options in Lisa Pascal are actually instructions to the code 
generator.  Lisa Pascal's compiler produces intermediate code (a .i file)
which is then processed by a code generator module to produce linkable
object code.  The options in question simply tell the code generator to
either delete or not delete the .i file after it is finished.

Therefore it seems that you should be able to ignore the $I+/- options
with no problem.  My source is the Lisa Pascal 3.0 Release Notes.

Sorry to use the net to respond, but I wasn't able to email to you 
directly.


Jim Damoulakis