home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / languages / pascal / PTC / _PtC1 / README < prev    next >
Encoding:
Text File  |  1991-04-25  |  3.2 KB  |  86 lines

  1. Acorn people: double-click on !Make to build ptc.
  2.  
  3.  
  4. README for ptc as enhanced by Tor Lillqvist.
  5.  
  6. $Log:    README,v $
  7. Revision 1.11  90/12/09  23:03:41  tml (Tor Lillqvist)
  8. Changed the type of the Bools[] strings to plain char* (not unsigned).
  9.  
  10. Revision 1.10  90/03/28  00:51:09  tml (Tor Lillqvist)
  11. Fixed outputting 'char' as the C type for Pascal 'Char'.  This
  12. is wrong because Pascal Chars are of an unsigned nature while
  13. C chars usually are signed.
  14.  
  15. Revision 1.9  90/03/27  02:19:18  tml (Tor Lillqvist)
  16. Removed void casts from ptc.h.  The Ultrix 3.1 compiler didn't
  17. like them.
  18. Use unsigned chars.  That was what we had supposedly used all the
  19. time, but we had n fact used normal (signed on most systems) chars.
  20. (In the ptc-generated C code, that is.)  This caused a problem
  21. when using char variables as array indices, for instance, as
  22. ptc believed the char to have a value range of 0..255 when in 
  23. fact the signed char had the range -128..127.
  24.  
  25. Revision 1.8  90/03/25  09:31:05  tml (Tor Lillqvist)
  26. Fixed Fopen.
  27. Don't put the original ptc.p in the tar archive, put a backwards
  28. diff from the current instead.
  29.  
  30. Revision 1.7  90/03/25  08:58:59  tml (Tor Lillqvist)
  31. Fix in ptc.h: added missing __LINE__ arguments to Fopen.
  32.  
  33. Revision 1.6  90/03/23  16:24:51  tml (Tor Lillqvist)
  34. In ptc.h: set eoln flag at eof.  Use putc, not fputc.
  35.  
  36. Revision 1.5  90/03/17  17:32:02  tml (Tor Lillqvist)
  37. Fixed Seek in ptc.h (parens were wrong).
  38.  
  39. Revision 1.4  90/03/13  19:57:16  tml (Tor Lillqvist)
  40. Fixes to ptc.[ph].  Even better laziness.
  41.  
  42. Revision 1.3  90/03/13  08:23:28  tml (Tor Lillqvist)
  43. Include all RCS logs in the tar file, not only the one for ptc.p.
  44.  
  45. Revision 1.2  90/03/13  08:13:34  tml (Tor Lillqvist)
  46. By mistake I used fgetc in ptc.h.  getc is better of course (faster).
  47.  
  48. Revision 1.1  90/03/13  08:10:49  tml (Tor Lillqvist)
  49. Initial revision
  50.  
  51.  
  52. I have made some relatively minor enhancements to the ptc Pascal-to-C
  53. translator.  The RCS logs are included the file RLOGS.  A translated
  54. version of ptc.p for bootstrapping is included in the tar archive.
  55. The original version of ptc.p can be generated by applying the
  56. ptc.p.backdiff diff.
  57.  
  58. Tor Lillqvist
  59. tml@tik.vtt.fi
  60.  
  61. GTOAL:  added support for 'others:' and 'break()' -- so that
  62. web -> pascal sources can compile without changefiles! Also
  63. added some support for program arguments; rudimentary but
  64. soon to be extended. (Needs a getopt with long arguments)
  65. At the moment it outputs the argument list at the top of
  66. the C file in a comment.  This should really be in a string.
  67.  
  68. I've added a really nasty bodge (#ptcheader) which is used
  69. with mkptypes to insert better-quality headers than ptc
  70. itself produces.  ptc's headers have been suppressed and
  71. mkptypes is used instead.
  72.  
  73. Acorn's toansi fixes up the bits of C ptc couldn't reach.
  74.  
  75. Because the terms of use for ptc include that the original
  76. source should be distributed, I've included a diff file from
  77. the one I received to the current state.  You can use this
  78. and patch -R to restore the original if you need to.
  79.  
  80. There is still work to be done on program parameters.  At the
  81. moment, unknown files are prompted for when they are opened.
  82. I hope to add passing these filenames in as command-line
  83. arguments.
  84.  
  85. Graham Toal <gtoal@ed.ac.uk>
  86.