home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / bc-1.02-src.lha / src / diffs / bc-1.02.diffs
Text File  |  1994-02-24  |  6KB  |  211 lines

  1. diff -rc bc-1.02-fsf/Install bc-1.02-amiga/Install
  2. *** bc-1.02-fsf/Install    Sun Nov 24 16:18:41 1991
  3. --- bc-1.02-amiga/Install    Wed Feb 23 10:51:13 1994
  4. ***************
  5. *** 59,73 ****
  6.           For MINIX and ANSI compilers (gcc et al) do NOT use -DVARARGS.
  7.   
  8.       NO_LIMITS
  9. !         Use this for systems without the /usr/include/limits.h file.
  10.           (BSD4.3 is one.) You should check the values of INT_MAX and 
  11.           LONG_MAX in the file const.h if you use -DNO_LIMITS.
  12.   
  13.       NO_UNISTD
  14. !         Use this for systems without /usr/include/unistd.h.
  15.   
  16.       -DNO_STDLIB
  17. !         Use this for systems without /usr/include/stdlib.h.
  18.   
  19.       STRINGS_H
  20.       Include the file <strings.h> instead of <string.h>.
  21. --- 59,73 ----
  22.           For MINIX and ANSI compilers (gcc et al) do NOT use -DVARARGS.
  23.   
  24.       NO_LIMITS
  25. !         Use this for systems without the /gnu/include/limits.h file.
  26.           (BSD4.3 is one.) You should check the values of INT_MAX and 
  27.           LONG_MAX in the file const.h if you use -DNO_LIMITS.
  28.   
  29.       NO_UNISTD
  30. !         Use this for systems without /gnu/include/unistd.h.
  31.   
  32.       -DNO_STDLIB
  33. !         Use this for systems without /gnu/include/stdlib.h.
  34.   
  35.       STRINGS_H
  36.       Include the file <strings.h> instead of <string.h>.
  37. diff -rc bc-1.02-fsf/Makefile bc-1.02-amiga/Makefile
  38. *** bc-1.02-fsf/Makefile    Wed Mar  4 18:21:47 1992
  39. --- bc-1.02-amiga/Makefile    Wed Feb 23 10:51:23 1994
  40. ***************
  41. *** 6,19 ****
  42.   #
  43.   #  LIBDIR and BINDIR are where bc and libmath.b will be put.
  44.   #
  45. ! PREFIX = /usr/local
  46.   LIBDIR = $(PREFIX)/lib
  47.   BINDIR = $(PREFIX)/bin
  48.   MANDIR = $(PREFIX)/man/man1
  49.   #
  50.   #  INCLUDE is the directory from where header files are included.
  51.   #
  52. ! INCLUDE = /usr/include
  53.   #
  54.   # This is the name of the library file, if needed.  This definition should
  55.   # not be deleted.
  56. --- 6,19 ----
  57.   #
  58.   #  LIBDIR and BINDIR are where bc and libmath.b will be put.
  59.   #
  60. ! PREFIX = /gnu
  61.   LIBDIR = $(PREFIX)/lib
  62.   BINDIR = $(PREFIX)/bin
  63.   MANDIR = $(PREFIX)/man/man1
  64.   #
  65.   #  INCLUDE is the directory from where header files are included.
  66.   #
  67. ! INCLUDE = /gnu/include
  68.   #
  69.   # This is the name of the library file, if needed.  This definition should
  70.   # not be deleted.
  71. ***************
  72. *** 23,33 ****
  73.   # Programs definitions for use by make.
  74.   #
  75.   SHELL = /bin/sh
  76. ! YACC = yacc
  77. ! #YACC = bison -y
  78.   LEX = flex -I8
  79.   #LEX = lex
  80. ! CC = cc
  81.   UUENCODE = uue
  82.   MAKE = make
  83.   #
  84. --- 23,33 ----
  85.   # Programs definitions for use by make.
  86.   #
  87.   SHELL = /bin/sh
  88. ! #YACC = yacc
  89. ! YACC = bison -y
  90.   LEX = flex -I8
  91.   #LEX = lex
  92. ! CC = gcc
  93.   UUENCODE = uue
  94.   MAKE = make
  95.   #
  96. ***************
  97. *** 37,43 ****
  98.   #  README file for more details.
  99.   #
  100.   O=o
  101. ! CFLAGS = -O -D_POSIX_SOURCE
  102.   LDFLAGS = 
  103.   #
  104.   # For the PC version of MINIX (K&R compiler), use the following lines.
  105. --- 37,43 ----
  106.   #  README file for more details.
  107.   #
  108.   O=o
  109. ! CFLAGS = -O2 -D_POSIX_SOURCE
  110.   LDFLAGS = 
  111.   #
  112.   # For the PC version of MINIX (K&R compiler), use the following lines.
  113. ***************
  114. *** 79,85 ****
  115.   math.h: libmath.b
  116.       $(MAKE) fbc
  117.       ./fbc -c libmath.b </dev/null >math.h
  118. !     ./fix_math.h
  119.       rm -f ./fbc
  120.   
  121.   fbc: $(OFILES) bc.$O
  122. --- 79,85 ----
  123.   math.h: libmath.b
  124.       $(MAKE) fbc
  125.       ./fbc -c libmath.b </dev/null >math.h
  126. !     $(SHELL) ./fix_math.h
  127.       rm -f ./fbc
  128.   
  129.   fbc: $(OFILES) bc.$O
  130. diff -rc bc-1.02-fsf/bc.1 bc-1.02-amiga/bc.1
  131. *** bc-1.02-fsf/bc.1    Wed Mar  4 18:21:47 1992
  132. --- bc-1.02-amiga/bc.1    Wed Feb 23 10:51:31 1994
  133. ***************
  134. *** 711,717 ****
  135.   In most installations, \fBbc\fR is completely self-contained.
  136.   Where executable size is of importance or the C compiler does
  137.   not deal with very long strings, \fBbc\fR will read
  138. ! the standard math library from the file /usr/local/lib/libmath.b.
  139.   (The actual location may vary.  It may be /lib/libmath.b.)
  140.   .SH DIAGNOSTICS
  141.   If any file on the command line can not be opened, \fBbc\fR will report
  142. --- 711,717 ----
  143.   In most installations, \fBbc\fR is completely self-contained.
  144.   Where executable size is of importance or the C compiler does
  145.   not deal with very long strings, \fBbc\fR will read
  146. ! the standard math library from the file /gnu/lib/libmath.b.
  147.   (The actual location may vary.  It may be /lib/libmath.b.)
  148.   .SH DIAGNOSTICS
  149.   If any file on the command line can not be opened, \fBbc\fR will report
  150. diff -rc bc-1.02-fsf/configure bc-1.02-amiga/configure
  151. *** bc-1.02-fsf/configure    Sun Nov 24 16:32:55 1991
  152. --- bc-1.02-amiga/configure    Wed Feb 23 10:52:08 1994
  153. ***************
  154. *** 6,12 ****
  155.   #
  156.   # Set some standard things.
  157.   #
  158. ! INCLUDE=${1-/usr/include}
  159.   LIBFILE=${2-libmath.b}
  160.   CC=${3-cc}
  161.   #
  162. --- 6,12 ----
  163.   #
  164.   # Set some standard things.
  165.   #
  166. ! INCLUDE=${1-/gnu/include}
  167.   LIBFILE=${2-libmath.b}
  168.   CC=${3-cc}
  169.   #
  170. diff -rc bc-1.02-fsf/const.h bc-1.02-amiga/const.h
  171. *** bc-1.02-fsf/const.h    Wed Mar  4 18:21:49 1992
  172. --- bc-1.02-amiga/const.h    Thu Feb 24 20:18:26 1994
  173. ***************
  174. *** 38,51 ****
  175.   /* Define constants in some reasonable size.  The next 4 constants are
  176.      POSIX constants. */
  177.   
  178.   #define BC_BASE_MAX   INT_MAX
  179.   #define BC_SCALE_MAX  INT_MAX
  180.   #define BC_STRING_MAX INT_MAX
  181.   
  182.   /* Definitions for arrays. */
  183.   
  184.   #define BC_DIM_MAX    65535       /* this should be NODE_SIZE^NODE_DEPTH-1 */
  185.   
  186.   #define   NODE_SIZE        16     /* Must be a power of 2. */
  187.   #define   NODE_MASK       0xf     /* Must be NODE_SIZE-1. */
  188. --- 38,58 ----
  189.   /* Define constants in some reasonable size.  The next 4 constants are
  190.      POSIX constants. */
  191.   
  192. + #ifndef BC_BASE_MAX
  193.   #define BC_BASE_MAX   INT_MAX
  194. + #endif
  195. + #ifndef BC_SCALE_MAX
  196.   #define BC_SCALE_MAX  INT_MAX
  197. + #endif
  198. + #ifndef BC_STRING_MAX
  199.   #define BC_STRING_MAX INT_MAX
  200. ! #endif
  201.   
  202.   /* Definitions for arrays. */
  203.   
  204. + #ifndef BC_DIM_MAX
  205.   #define BC_DIM_MAX    65535       /* this should be NODE_SIZE^NODE_DEPTH-1 */
  206. + #endif
  207.   
  208.   #define   NODE_SIZE        16     /* Must be a power of 2. */
  209.   #define   NODE_MASK       0xf     /* Must be NODE_SIZE-1. */
  210.