home *** CD-ROM | disk | FTP | other *** search
- Only in f2c/src: amath.h
- Only in f2c/src: f2c
- Only in f2c/src: f2c.with
- diff -a -d +context f2c_org/src/formatdata.c f2c/src/formatdata.c
- *** f2c_org/src/formatdata.c Mon Dec 10 15:21:42 1990
- --- f2c/src/formatdata.c Sat Feb 02 12:28:57 1991
- ***************
- *** 860,865 ****
- --- 860,869 ----
- extern int htype;
- char *z;
-
- + #ifdef AMIGA
- + dL = 0;
- + #endif
- +
- /* add sentinel */
- if (iscomm) {
- L = extsymtab[memno].maxleng;
- Only in f2c/src: gram.c
- Only in f2c/src: makefile.gram
- diff -a -d +context f2c_org/src/malloc.c f2c/src/malloc.c
- *** f2c_org/src/malloc.c Mon Dec 10 15:21:50 1990
- --- f2c/src/malloc.c Sat Feb 02 12:35:36 1991
- ***************
- *** 45,51 ****
- register unsigned size;
- {
- register struct mem *p, *q, *r, *s;
- ! unsigned register k, m;
- extern char *sbrk();
- char *top, *top1;
-
- --- 45,51 ----
- register unsigned size;
- {
- register struct mem *p, *q, *r, *s;
- ! register unsigned k, m;
- extern char *sbrk();
- char *top, *top1;
-
- diff -a -d +context f2c_org/src/misc.c f2c/src/misc.c
- *** f2c_org/src/misc.c Mon Dec 10 15:21:52 1990
- --- f2c/src/misc.c Sat Feb 02 12:31:23 1991
- ***************
- *** 29,37 ****
- {
- if (stg == STGCOMMON && name) {
- if ((mask & M(STGEQUIV)))
- ! return name->vcommequiv;
- if ((mask & M(STGCOMMON)))
- ! return !name->vcommequiv;
- }
- return ONEOF(stg, mask);
- }
- --- 29,37 ----
- {
- if (stg == STGCOMMON && name) {
- if ((mask & M(STGEQUIV)))
- ! return (name->vcommequiv);
- if ((mask & M(STGCOMMON)))
- ! return !(name->vcommequiv);
- }
- return ONEOF(stg, mask);
- }
- Only in f2c/src: mklinks
- diff -a -d +context f2c_org/src/sysdep.c f2c/src/sysdep.c
- *** f2c_org/src/sysdep.c Mon Dec 10 15:22:02 1990
- --- f2c/src/sysdep.c Fri May 08 15:28:18 1992
- ***************
- *** 40,48 ****
- --- 40,52 ----
- #ifdef MSDOS
- #define TMPDIR ""
- #else
- + #ifdef AMIGA
- + #define TMPDIR "T:"
- + #else
- #define TMPDIR "/tmp"
- #endif
- #endif
- + #endif
-
- char *tmpdir = TMPDIR;
-
- ***************
- *** 99,104 ****
- --- 103,132 ----
- sprintf(p1_bakfile, "%sf2c_p1fb", t);
- sprintf(sortfname, "%sf2c_sort", t);
- #else
- + #ifdef AMIGA
- + char buf[64], *s, *t;
- + if (!*tmpdir || *tmpdir == '.' && !tmpdir[1])
- + t = "";
- + else {
- + /* substitute \ for / to avoid confusion with a
- + * switch indicator in the system("sort ...")
- + * call in formatdata.c
- + */
- + for(s = tmpdir, t = buf; *s; s++, t++)
- + if ((*t = *s) == '/')
- + *t = '\\';
- + if (t[-1] != '\\')
- + *t++ = '\\';
- + *t = 0;
- + t = buf;
- + }
- + sprintf(c_functions, "%sf2c_func", t);
- + sprintf(initfname, "%sf2c_rd", t);
- + sprintf(blkdfname, "%sf2c_blkd", t);
- + sprintf(p1_file, "%sf2c_p1f", t);
- + sprintf(p1_bakfile, "%sf2c_p1fb", t);
- + sprintf(sortfname, "%sf2c_sort", t);
- + #else
- int pid = getpid();
- sprintf(c_functions, "%s/f2c%d_func", tmpdir, pid);
- sprintf(initfname, "%s/f2c%d_rd", tmpdir, pid);
- ***************
- *** 107,112 ****
- --- 135,141 ----
- sprintf(p1_bakfile, "%s/f2c%d_p1fb", tmpdir, pid);
- sprintf(sortfname, "%s/f2c%d_sort", tmpdir, pid);
- #endif
- + #endif
- sprintf(initbname, "%s.b", initfname);
- }
- if (debugflag)
- ***************
- *** 145,151 ****
- --- 174,182 ----
- #ifdef SIGHUP
- signal(SIGHUP, SIG_IGN);
- #endif
- + #ifndef AMIGA
- signal(SIGTERM, SIG_IGN);
- + #endif
- Un_link_all(1);
- exit(126);
- }
- ***************
- *** 178,184 ****
- --- 209,217 ----
- #ifdef SIGHUP
- sig1catch(SIGHUP);
- #endif
- + #ifndef AMIGA
- sig1catch(SIGTERM);
- + #endif
- signal(SIGFPE, flovflo); /* catch overflows */
- }
-
- ***************
- *** 188,193 ****
- --- 221,229 ----
- #ifdef MSDOS
- Fatal("Only one Fortran input file allowed under MS-DOS");
- #else
- + #ifdef AMIGA
- + Fatal("Only one Fortran input file allowed under AmigaDOS");
- + #else
- int pid, status, w;
- extern int retcode;
-
- ***************
- *** 200,205 ****
- --- 236,242 ----
- Fatal("bad wait code");
- retcode |= status >> 8;
- #endif
- + #endif
- return 0;
- }
-
- ***************
- *** 359,365 ****
- {
- extern char *Alloc();
-
- ! struct Memb {
- struct Memb *next;
- int n;
- char buf[32000];
- --- 396,402 ----
- {
- extern char *Alloc();
-
- ! static struct Memb {
- struct Memb *next;
- int n;
- char buf[32000];
- Only in f2c/src: tokdefs.h
- diff -a -d +context f2c_org/src/usignal.h f2c/src/usignal.h
- *** f2c_org/src/usignal.h Mon Dec 10 15:22:02 1990
- --- f2c/src/usignal.h Fri May 08 14:35:49 1992
- ***************
- *** 1,7 ****
- --- 1,9 ----
- #include <signal.h>
- + #ifndef AMIGA
- #ifndef SIGHUP
- #define SIGHUP 1 /* hangup */
- #endif
- #ifndef SIGQUIT
- #define SIGQUIT 3 /* quit */
- + #endif
- #endif
-