dtrg 9c722420dd Replaced calls to the custom strindex() and strrindex() functions with the 18 anni fa
..
.distr 2be29ee963 Removed # in commands 32 anni fa
Notice b62d0feed1 Added 33 anni fa
README b62d0feed1 Added 33 anni fa
cds.c b62d0feed1 Added 33 anni fa
data.c b62d0feed1 Added 33 anni fa
defines.h b62d0feed1 Added 33 anni fa
defs.h b62d0feed1 Added 33 anni fa
equiv.c b62d0feed1 Added 33 anni fa
error.c b62d0feed1 Added 33 anni fa
exec.c b62d0feed1 Added 33 anni fa
expr.c b62d0feed1 Added 33 anni fa
f2c.1 b62d0feed1 Added 33 anni fa
f2c.1t b62d0feed1 Added 33 anni fa
f2c.6 b62d0feed1 Added 33 anni fa
f2c.h b62d0feed1 Added 33 anni fa
format.c b62d0feed1 Added 33 anni fa
format.h b62d0feed1 Added 33 anni fa
formatdata.c b62d0feed1 Added 33 anni fa
ftypes.h b62d0feed1 Added 33 anni fa
gram.dcl b62d0feed1 Added 33 anni fa
gram.exec b62d0feed1 Added 33 anni fa
gram.expr b62d0feed1 Added 33 anni fa
gram.head b62d0feed1 Added 33 anni fa
gram.io b62d0feed1 Added 33 anni fa
init.c b62d0feed1 Added 33 anni fa
intr.c b62d0feed1 Added 33 anni fa
io.c b62d0feed1 Added 33 anni fa
iob.h b62d0feed1 Added 33 anni fa
lex.c b62d0feed1 Added 33 anni fa
machdefs.h b62d0feed1 Added 33 anni fa
main.c b62d0feed1 Added 33 anni fa
makefile b62d0feed1 Added 33 anni fa
malloc.c b62d0feed1 Added 33 anni fa
mem.c b62d0feed1 Added 33 anni fa
memset.c b62d0feed1 Added 33 anni fa
misc.c b62d0feed1 Added 33 anni fa
mk_tokdefs d9515cda2c Added mk_tokdefs 32 anni fa
names.c b62d0feed1 Added 33 anni fa
names.h b62d0feed1 Added 33 anni fa
niceprintf.c b62d0feed1 Added 33 anni fa
niceprintf.h b62d0feed1 Added 33 anni fa
output.c b62d0feed1 Added 33 anni fa
output.h b62d0feed1 Added 33 anni fa
p1defs.h b62d0feed1 Added 33 anni fa
p1output.c b62d0feed1 Added 33 anni fa
parse.h b62d0feed1 Added 33 anni fa
parse_args.c b62d0feed1 Added 33 anni fa
pccdefs.h b62d0feed1 Added 33 anni fa
pread.c 604a0b2074 '\v' is not a K&R character 33 anni fa
proc.c b62d0feed1 Added 33 anni fa
proto.make f26dd7bb01 Header --> Id 30 anni fa
put.c b62d0feed1 Added 33 anni fa
putpcc.c b62d0feed1 Added 33 anni fa
string.h 9c722420dd Replaced calls to the custom strindex() and strrindex() functions with the 18 anni fa
sysdep.c 929116affc qsort arg was wrong for ANSI C 33 anni fa
sysdep.h b62d0feed1 Added 33 anni fa
tokens b62d0feed1 Added 33 anni fa
usignal.h b62d0feed1 Added 33 anni fa
vax.c b62d0feed1 Added 33 anni fa
version.c b62d0feed1 Added 33 anni fa
xsum.c b62d0feed1 Added 33 anni fa
xsum0.out b62d0feed1 Added 33 anni fa

README

Type "make" to check the validity of the f2c source and compile f2c.

If (in accordance with what follows) you need to modify the makefile
or any of the source files, first issue a "make xsum.out" to check
the validity of the f2c source, then make your changes, then type
"make f2c".

The file usignal.h is for the benefit of strictly ANSI include files
on a UNIX system -- the ANSI signal.h does not define SIGHUP or SIGQUIT.
You may need to modify usignal.h if you are not running f2c on a UNIX
system.

Should you get the message "xsum0.out xsum1.out differ", see what lines
are different (`diff xsum0.out xsum1.out`) and ask netlib to send you
the files in question "from f2c/src". For example, if exec.c and
expr.c have incorrect check sums, you would send netlib the message
send exec.c expr.c from f2c/src

On some systems, the malloc and free in malloc.c let f2c run faster
than do the standard malloc and free. Other systems cannot tolerate
redefinition of malloc and free. If yours is such a system, you may
either modify the makefile appropriately, or simply execute
cc -c -DCRAY malloc.c
before typing "make". Still other systems have a -lmalloc that
provides performance competitive with that from malloc.c; you may
wish to compare the two on your system.

On some BSD systems, you may need to create a file named "string.h"
whose single line is
#include
you may need to add " -Dstrchr=index" to the "CFLAGS =" assignment
in the makefile, and you may need to add " memset.o" to the "OBJECTS ="
assignment in the makefile -- see the comments in memset.c .

For non-UNIX systems, you may need to change some things in sysdep.c,
such as the choice of intermediate file names.

On some systems, you may need to modify parts of sysdep.h (which is
included by defs.h). In particular, for Sun 4.1 systems and perhaps
some others, you need to comment out the typedef of size_t.

Alas, some systems #define __STDC__ but do not provide a true standard
(ANSI or ISO) C environment, e.g. do not provide stdlib.h . If yours
is such a system, then (a) you should complain loudly to your vendor
about __STDC__ being erroneously defined, and (b) you should insert
#undef __STDC__
at the beginning of sysdep.h . You may need to make other adjustments.

For some non-ANSI versions of stdio, you must change the values given
to binread and binwrite in sysdep.c from "rb" and "wb" to "r" and "w".
You may need to make this change if you run f2c and get an error
message of the form
Compiler error ... cannot open intermediate file ...

On many systems, it is best to combine libF77 and libI77 into a single
library, say libf2c, as suggested in "index from f2c". If you do this,
then you should adjust the definition of link_msg in sysdep.c
appropriately (e.g., replacing "-lF77 -lI77" by "-lf2c").

Some older C compilers object to
typedef void (*foo)();
or to
typedef void zap;
zap (*foo)();
If yours is such a compiler, change the definition of VOID in
f2c.h from void to int.

Please send bug reports to dmg@research.att.com . The index file
("send index from f2c") will report recent changes in the recent-change
log at its end; all changes will be shown in the "fixes" file
("send fixes from f2c"). To keep current source, you will need to
request xsum0.out and version.c, in addition to the changed source
files.