home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / code / microema.sit / includes / readme next >
Encoding:
Text File  |  1989-04-28  |  2.2 KB  |  51 lines  |  [TEXT/Earl]

  1. This program can be compiled with MPW C 2.0.2, Aztec C 3.6c, or
  2. LightSpeedC 2.15.  Makefiles exist for MPW C, and for Aztec C using the
  3. MPW Shell.
  4.  
  5. MPW C 2.0.2:
  6.  
  7. The Makefile for MPW C defines the default include file path to look
  8. in this folder first.  Thus it uses my stdio.h file, and not the MPW
  9. stdio.h.  (╡EMACS does not use stdio.)  The folder "src" and the
  10. folder "includes" must be in the same parent folder for this to work.
  11.  
  12. This version of ╡EMACS uses the Pascal style interface to many of the
  13. ToolBox routines which is new for MPW C, version 2.  It will not work
  14. with MPW C, version 1.  I have changed ALL of my {CIncludes} header
  15. files to use the Inside Macintosh spellings for Pascal and Inline
  16. toolbox calls, e.g. GETNAMEDRESOURCE -> GetNamedResource.  I have
  17. removed all the declarations for the old-style MPW glue routines, and I
  18. have purged the glue routines from my copy of {CLibraries}CInterface.o. 
  19. These changes should make the source compatible with MPW C 3.0, which I
  20. do not have, unfortunately.
  21.  
  22. Aztec C 3.6c:
  23.  
  24. The Aztec C version uses the new-style MPW compatible header files, and
  25. the Pascal interface to the ToolBox.  The Makefile in this case defines
  26. the pre-processor macro "_INLINE" so that this will work.  The Aztec C
  27. code is essentially the same as the MPW code.  The pre-defined symbols
  28. "macintosh" (MPW) and "MPU68000" (Aztec) are used in a few places where
  29. necessary. 
  30.  
  31. LightSpeedC¬ v2.15:
  32.  
  33. For LightSpeedC¬, there is no way to set the include path except by copying
  34. the include files to the folder where LightSpeedC¬ resides.  Make a backup
  35. of your LightSpeedC¬ stdio.h file.  Then, copy mine and the file pbmacros.h
  36. to the folder with LightSpeedC¬ in it.  This may change with new versions
  37. of the compiler.
  38.  
  39. All systems:
  40.  
  41. Edit the following two lines to define your system in stdio.h:
  42.  
  43. #define LSC 0        /* If LightSpeedC¬ */
  44. #define MPW 1        /* If MPW C 2.0.2 or Aztec C 3.6c */
  45.  
  46. The copy of :includes:stdio.h as I distribute it is set up for
  47. compilation with MPW C 2.0.2 or Aztec C 3.6c.  To use, set the default
  48. directory to :src:, copy either Makefile.MPW or Makefile.Aztec to
  49. Makefile, and type "buildprogram ╡emacs."  There is no Makefile for use
  50. with the Aztec Shell at present.
  51.