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
Wrap
Text File
|
1994-02-24
|
6KB
|
211 lines
diff -rc bc-1.02-fsf/Install bc-1.02-amiga/Install
*** bc-1.02-fsf/Install Sun Nov 24 16:18:41 1991
--- bc-1.02-amiga/Install Wed Feb 23 10:51:13 1994
***************
*** 59,73 ****
For MINIX and ANSI compilers (gcc et al) do NOT use -DVARARGS.
NO_LIMITS
! Use this for systems without the /usr/include/limits.h file.
(BSD4.3 is one.) You should check the values of INT_MAX and
LONG_MAX in the file const.h if you use -DNO_LIMITS.
NO_UNISTD
! Use this for systems without /usr/include/unistd.h.
-DNO_STDLIB
! Use this for systems without /usr/include/stdlib.h.
STRINGS_H
Include the file <strings.h> instead of <string.h>.
--- 59,73 ----
For MINIX and ANSI compilers (gcc et al) do NOT use -DVARARGS.
NO_LIMITS
! Use this for systems without the /gnu/include/limits.h file.
(BSD4.3 is one.) You should check the values of INT_MAX and
LONG_MAX in the file const.h if you use -DNO_LIMITS.
NO_UNISTD
! Use this for systems without /gnu/include/unistd.h.
-DNO_STDLIB
! Use this for systems without /gnu/include/stdlib.h.
STRINGS_H
Include the file <strings.h> instead of <string.h>.
diff -rc bc-1.02-fsf/Makefile bc-1.02-amiga/Makefile
*** bc-1.02-fsf/Makefile Wed Mar 4 18:21:47 1992
--- bc-1.02-amiga/Makefile Wed Feb 23 10:51:23 1994
***************
*** 6,19 ****
#
# LIBDIR and BINDIR are where bc and libmath.b will be put.
#
! PREFIX = /usr/local
LIBDIR = $(PREFIX)/lib
BINDIR = $(PREFIX)/bin
MANDIR = $(PREFIX)/man/man1
#
# INCLUDE is the directory from where header files are included.
#
! INCLUDE = /usr/include
#
# This is the name of the library file, if needed. This definition should
# not be deleted.
--- 6,19 ----
#
# LIBDIR and BINDIR are where bc and libmath.b will be put.
#
! PREFIX = /gnu
LIBDIR = $(PREFIX)/lib
BINDIR = $(PREFIX)/bin
MANDIR = $(PREFIX)/man/man1
#
# INCLUDE is the directory from where header files are included.
#
! INCLUDE = /gnu/include
#
# This is the name of the library file, if needed. This definition should
# not be deleted.
***************
*** 23,33 ****
# Programs definitions for use by make.
#
SHELL = /bin/sh
! YACC = yacc
! #YACC = bison -y
LEX = flex -I8
#LEX = lex
! CC = cc
UUENCODE = uue
MAKE = make
#
--- 23,33 ----
# Programs definitions for use by make.
#
SHELL = /bin/sh
! #YACC = yacc
! YACC = bison -y
LEX = flex -I8
#LEX = lex
! CC = gcc
UUENCODE = uue
MAKE = make
#
***************
*** 37,43 ****
# README file for more details.
#
O=o
! CFLAGS = -O -D_POSIX_SOURCE
LDFLAGS =
#
# For the PC version of MINIX (K&R compiler), use the following lines.
--- 37,43 ----
# README file for more details.
#
O=o
! CFLAGS = -O2 -D_POSIX_SOURCE
LDFLAGS =
#
# For the PC version of MINIX (K&R compiler), use the following lines.
***************
*** 79,85 ****
math.h: libmath.b
$(MAKE) fbc
./fbc -c libmath.b </dev/null >math.h
! ./fix_math.h
rm -f ./fbc
fbc: $(OFILES) bc.$O
--- 79,85 ----
math.h: libmath.b
$(MAKE) fbc
./fbc -c libmath.b </dev/null >math.h
! $(SHELL) ./fix_math.h
rm -f ./fbc
fbc: $(OFILES) bc.$O
diff -rc bc-1.02-fsf/bc.1 bc-1.02-amiga/bc.1
*** bc-1.02-fsf/bc.1 Wed Mar 4 18:21:47 1992
--- bc-1.02-amiga/bc.1 Wed Feb 23 10:51:31 1994
***************
*** 711,717 ****
In most installations, \fBbc\fR is completely self-contained.
Where executable size is of importance or the C compiler does
not deal with very long strings, \fBbc\fR will read
! the standard math library from the file /usr/local/lib/libmath.b.
(The actual location may vary. It may be /lib/libmath.b.)
.SH DIAGNOSTICS
If any file on the command line can not be opened, \fBbc\fR will report
--- 711,717 ----
In most installations, \fBbc\fR is completely self-contained.
Where executable size is of importance or the C compiler does
not deal with very long strings, \fBbc\fR will read
! the standard math library from the file /gnu/lib/libmath.b.
(The actual location may vary. It may be /lib/libmath.b.)
.SH DIAGNOSTICS
If any file on the command line can not be opened, \fBbc\fR will report
diff -rc bc-1.02-fsf/configure bc-1.02-amiga/configure
*** bc-1.02-fsf/configure Sun Nov 24 16:32:55 1991
--- bc-1.02-amiga/configure Wed Feb 23 10:52:08 1994
***************
*** 6,12 ****
#
# Set some standard things.
#
! INCLUDE=${1-/usr/include}
LIBFILE=${2-libmath.b}
CC=${3-cc}
#
--- 6,12 ----
#
# Set some standard things.
#
! INCLUDE=${1-/gnu/include}
LIBFILE=${2-libmath.b}
CC=${3-cc}
#
diff -rc bc-1.02-fsf/const.h bc-1.02-amiga/const.h
*** bc-1.02-fsf/const.h Wed Mar 4 18:21:49 1992
--- bc-1.02-amiga/const.h Thu Feb 24 20:18:26 1994
***************
*** 38,51 ****
/* Define constants in some reasonable size. The next 4 constants are
POSIX constants. */
#define BC_BASE_MAX INT_MAX
#define BC_SCALE_MAX INT_MAX
#define BC_STRING_MAX INT_MAX
!
/* Definitions for arrays. */
#define BC_DIM_MAX 65535 /* this should be NODE_SIZE^NODE_DEPTH-1 */
#define NODE_SIZE 16 /* Must be a power of 2. */
#define NODE_MASK 0xf /* Must be NODE_SIZE-1. */
--- 38,58 ----
/* Define constants in some reasonable size. The next 4 constants are
POSIX constants. */
+ #ifndef BC_BASE_MAX
#define BC_BASE_MAX INT_MAX
+ #endif
+ #ifndef BC_SCALE_MAX
#define BC_SCALE_MAX INT_MAX
+ #endif
+ #ifndef BC_STRING_MAX
#define BC_STRING_MAX INT_MAX
! #endif
/* Definitions for arrays. */
+ #ifndef BC_DIM_MAX
#define BC_DIM_MAX 65535 /* this should be NODE_SIZE^NODE_DEPTH-1 */
+ #endif
#define NODE_SIZE 16 /* Must be a power of 2. */
#define NODE_MASK 0xf /* Must be NODE_SIZE-1. */