home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 2 / FFMCD02.bin / new / dev / misc / cweb / common-p.ch < prev    next >
Text File  |  1993-12-21  |  32KB  |  931 lines

  1.                                 -*-Web-*-
  2. This file, COMMON-P.CH, is part of CWEB-p.
  3. It is a changefile for COMMON.H, Version 3.0.
  4.  
  5. Authors and Contributors:
  6. (H2B) Hans-Hermann Bode, Universität Osnabrück,
  7.   (hhbode@@dosuni1.rz.uni-osnabrueck.de or HHBODE@@DOSUNI1.BITNET).
  8.  
  9. (KG) Klaus Guntermann, TH Darmstadt,
  10.   (guntermann@@iti.informatik.th-darmstadt.de).
  11.  
  12. (AS) Andreas Scherer,
  13.   Abt-Wolf-Straße 17, 96215 Lichtenfels, Germany.
  14.  
  15. (CS) Carsten Steger, Universität München,
  16.   carsten.steger@informatik.tu-muenchen.de
  17.  
  18. Caveat utilitor:  Some of the source code introduced by this change file is
  19. made conditional to the use of specific compilers on specific systems.
  20. This applies to places marked with `#ifdef __TURBOC__' and `#ifdef _AMIGA'.
  21.  
  22. This program is distributed WITHOUT ANY WARRANTY, express or implied.
  23.  
  24. The following copyright notice extends to this changefile only, not to
  25. the masterfile COMMON.W.
  26.  
  27. Copyright (C) 1993 Andreas Scherer
  28. Copyright (C) 1991, 1993 Carsten Steger
  29. Copyright (C) 1991, 1992, 1993 Hans-Hermann Bode
  30.  
  31. Permission is granted to make and distribute verbatim copies of this
  32. document provided that the copyright notice and this permission notice
  33. are preserved on all copies.
  34.  
  35. Permission is granted to copy and distribute modified versions of this
  36. document under the conditions for verbatim copying, provided that the
  37. entire resulting derived work is distributed under the terms of a
  38. permission notice identical to this one.
  39.  
  40. Version history:
  41.  
  42. Version    Date        Author    Comment
  43. a1/t1    10 Oct 1991    H2B    First attempt for COMMON.W 2.0.
  44. p2    13 Feb 1992    H2B    Updated for COMMON.W 2.1, ANSI and Turbo
  45.                 changefiles merged together.
  46. p3    16 Apr 1992    H2B    Updated for COMMON.W 2.2, change option for
  47.                 |@@i| completed.
  48. p4    22 Jun 1992    H2B    Updated for COMMON.W 2.4, getting INCLUDEDIR
  49.                 from environment variable CWEBINCLUDE.
  50. p5    19 Jul 1992    H2B    string.h included, usage message extended.
  51. p5a    24 Jul 1992    KG    adaptions for other ANSI C compiler
  52. p5b    28 Jul 1992    H2B    Remaining headers converted to ANSI style.
  53. p5c    30 Jul 1992    KG    removed comments used after #endif
  54. p6    06 Sep 1992    H2B    Updated for COMMON.W 2.7.
  55. p6a     15 Mar 1993     AS      adaptions for SAS/C 6.0 compiler
  56. p6b     28 Jul 1993     AS      path delimiters are `/' or `:' for AMIGA
  57.     31 Aug 1993    AS    return codes extended to AMIGA values
  58. p6c    04 Sep 1993    AS    path searching with CWEBINCLUDE
  59. p6d    09 Oct 1993    AS    Updated for COMMON.W 2.8. (This was p7 for me)
  60. p7    06 Nov 1992    H2B    Converted to master change file, updated for
  61.                 common.w 2.8. [Not released.]
  62. p7.5    29 Nov 1992    H2B    Updated for common.w 2.9beta. [Not released.]
  63. p8    04 Dec 1992    H2B    Updated for common.w 2.9++ (stuff went into
  64.                 the source file). [Not released.]
  65. p8a    10 Mar 1993    H2B    Restructured for public release.
  66.                 [Not released.]
  67. p8b    15 Apr 1993    H2B    Updated for common.w 3.0beta. [Not released.]
  68. p8c    21 Jun 1993    H2B    Updated for final common.w 3.0.
  69. p8d    26 Oct 1993    AS    Incorporated with Amiga version 2.8 [p7] and
  70.                 updated to version 3.0.
  71. ------------------------------------------------------------------------------
  72. @x l.1
  73. % This file is part of CWEB.
  74. % This program by Silvio Levy and Donald E. Knuth
  75. % is based on a program by Knuth.
  76. % It is distributed WITHOUT ANY WARRANTY, express or implied.
  77. % Version 3.0 --- June 1993
  78.  
  79. % Copyright (C) 1987,1990,1993 Silvio Levy and Donald E. Knuth
  80. @y
  81. % This file, common.w, is part of CWEB-p.
  82. % This program by Silvio Levy and Donald E. Knuth
  83. % is based on a program by Knuth.
  84. % It is distributed WITHOUT ANY WARRANTY, express or implied.
  85. % Version 2.4 --- Don Knuth, June 1992
  86. % Version 2.4 [p5] --- Hans-Hermann Bode, July 1992
  87. % Version 2.4 [p5a] --- Klaus Guntermann, July 1992
  88. % Version 2.4 [p5b] --- Hans-Hermann Bode, July 1992
  89. % Version 2.4 [p5c] --- Klaus Guntermann, July 1992
  90. % Version 2.7 [p6] --- Hans-Hermann Bode, September 1992
  91. % Version 2.7 [p6a] --- Andreas Scherer, March 1993
  92. % Version 2.7 [p6b] --- Andreas Scherer, August 1993
  93. % Version 2.7 [p6c] --- Andreas Scherer, September 1993
  94. % Version 2.8 --- Don Knuth, June 1992
  95. % Version 2.8 [p7] --- Andreas Scherer, October 1993
  96. % Version 3.0 --- Don Knuth, June 1993
  97. % Version 3.0 [p8c] --- Hans-Hermann Bode, June 1993
  98. % Version 3.0 [p8d] --- Andreas Scherer, October 1993
  99.  
  100. % Copyright (C) 1987,1990,1993 Silvio Levy and Donald E. Knuth
  101. % Copyright (C) 1991,1992,1993 Hans-Hermann Bode
  102. % Copyright (C) 1991,1993 Carsten Steger
  103. % Copyright (C) 1993 Andreas Scherer
  104. @z
  105. ------------------------------------------------------------------------------
  106. @x l.20
  107. \def\title{Common code for CTANGLE and CWEAVE (Version 3.0)}
  108. @y
  109. \def\title{Common code for CTANGLE and CWEAVE (Version 3.0 [p8d])}
  110. @z
  111. ------------------------------------------------------------------------------
  112. @x l.25
  113.   \centerline{(Version 3.0)}
  114. @y
  115.   \centerline{(Version 3.0 [p8d])}
  116. @z
  117. ------------------------------------------------------------------------------
  118. @x l.29
  119. Copyright \copyright\ 1987, 1990, 1993 Silvio Levy and Donald E. Knuth
  120. @y
  121. Copyright \copyright\ 1987, 1990, 1993 Silvio Levy and Donald E. Knuth
  122. \smallskip\noindent
  123. Copyright \copyright\ 1991, 1992, 1993 Hans-Hermann Bode
  124. \smallskip\noindent
  125. Copyright \copyright\ 1991, 1993 Carsten Steger
  126. \smallskip\noindent
  127. Copyright \copyright\ 1993 Andreas Scherer
  128. @z
  129. ------------------------------------------------------------------------------
  130. Activate this, if only the changed modules should be printed.
  131. x l.43
  132. \let\maybe=\iftrue
  133. y
  134. \let\maybe=\iffalse
  135. z
  136. ------------------------------------------------------------------------------
  137. @x l.58
  138. @<Include files@>@/
  139. @y
  140. @<Include files@>@/
  141. @<Macro definitions@>@/
  142. @z
  143. ------------------------------------------------------------------------------
  144. @x l.89
  145. void
  146. common_init()
  147. @y
  148. void common_init(void)
  149. @z
  150. ------------------------------------------------------------------------------
  151. Correct a type.
  152. @x l.108
  153. character set can type things like \.{\char'32} and \.{char'4} instead
  154. @y
  155. character set can type things like \.{\char'32} and \.{\char'4} instead
  156. @z
  157. ------------------------------------------------------------------------------
  158. @x l.169
  159. int input_ln(fp) /* copies a line into |buffer| or returns 0 */
  160. FILE *fp; /* what file to read from */
  161. @y
  162. static int input_ln(FILE *fp) /* copies a line into |buffer| or returns 0 */
  163. /* |fp|: what file to read from */
  164. @z
  165. ------------------------------------------------------------------------------
  166. AmigaDOS allows path names with up to 255 characters.
  167. @x l.203
  168. @d max_file_name_length 60
  169. @y
  170. @d max_file_name_length 256
  171. @z
  172. ------------------------------------------------------------------------------
  173. Correct a typo.
  174. @x l.225
  175. @ When |changing=0|, the next line of |change_file| is kept in
  176. @y
  177. @ When |changing==0|, the next line of |change_file| is kept in
  178. @z
  179. ------------------------------------------------------------------------------
  180. @x l.248
  181. void
  182. prime_the_change_buffer()
  183. @y
  184. static void prime_the_change_buffer(void)
  185. @z
  186. ------------------------------------------------------------------------------
  187. @x l.317
  188. void
  189. check_change() /* switches to |change_file| if the buffers match */
  190. @y
  191. static void check_change(void) /* switches to |change_file| if the buffers match */
  192. @z
  193. ------------------------------------------------------------------------------
  194. @x l.375
  195. void
  196. reset_input()
  197. @y
  198. void reset_input(void)
  199. @z
  200. ------------------------------------------------------------------------------
  201. @x l.423
  202. int get_line() /* inputs the next line */
  203. @y
  204. int get_line(void) /* inputs the next line */
  205. @z
  206. ------------------------------------------------------------------------------
  207. @x l.452
  208. @ When an \.{@@i} line is found in the |cur_file|, we must temporarily
  209. stop reading it and start reading from the named include file.  The
  210. \.{@@i} line should give a complete file name with or without
  211. double quotes.
  212. If the environment variable \.{CWEBINPUTS} is set, or if the compiler flag
  213. of the same name was defined at compile time,
  214. \.{CWEB} will look for include files in the directory thus named, if
  215. it cannot find them in the current directory.
  216. (Colon-separated paths are not supported.)
  217. The remainder of the \.{@@i} line after the file name is ignored.
  218. @y
  219. @ When an \.{@@i} line is found in the |cur_file|, we must temporarily
  220. stop reading it and start readi