home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_progs / prog_c / f2c.lha / f2c_ami.zoo / f2csrc.diffs < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-08  |  4.5 KB  |  208 lines

  1. Only in f2c/src: amath.h
  2. Only in f2c/src: f2c
  3. Only in f2c/src: f2c.with
  4. diff -a -d +context f2c_org/src/formatdata.c f2c/src/formatdata.c
  5. *** f2c_org/src/formatdata.c    Mon Dec 10 15:21:42 1990
  6. --- f2c/src/formatdata.c    Sat Feb 02 12:28:57 1991
  7. ***************
  8. *** 860,865 ****
  9. --- 860,869 ----
  10.       extern int htype;
  11.       char *z;
  12.   
  13. + #ifdef AMIGA
  14. +   dL = 0;
  15. + #endif
  16.       /* add sentinel */
  17.       if (iscomm) {
  18.           L = extsymtab[memno].maxleng;
  19. Only in f2c/src: gram.c
  20. Only in f2c/src: makefile.gram
  21. diff -a -d +context f2c_org/src/malloc.c f2c/src/malloc.c
  22. *** f2c_org/src/malloc.c    Mon Dec 10 15:21:50 1990
  23. --- f2c/src/malloc.c    Sat Feb 02 12:35:36 1991
  24. ***************
  25. *** 45,51 ****
  26.   register unsigned size;
  27.   {
  28.       register struct mem *p, *q, *r, *s;
  29. !     unsigned register k, m;
  30.       extern char *sbrk();
  31.       char *top, *top1;
  32.   
  33. --- 45,51 ----
  34.   register unsigned size;
  35.   {
  36.       register struct mem *p, *q, *r, *s;
  37. !     register unsigned k, m;
  38.       extern char *sbrk();
  39.       char *top, *top1;
  40.   
  41. diff -a -d +context f2c_org/src/misc.c f2c/src/misc.c
  42. *** f2c_org/src/misc.c    Mon Dec 10 15:21:52 1990
  43. --- f2c/src/misc.c    Sat Feb 02 12:31:23 1991
  44. ***************
  45. *** 29,37 ****
  46.   {
  47.       if (stg == STGCOMMON && name) {
  48.           if ((mask & M(STGEQUIV)))
  49. !             return name->vcommequiv;
  50.           if ((mask & M(STGCOMMON)))
  51. !             return !name->vcommequiv;
  52.           }
  53.       return ONEOF(stg, mask);
  54.       }
  55. --- 29,37 ----
  56.   {
  57.       if (stg == STGCOMMON && name) {
  58.           if ((mask & M(STGEQUIV)))
  59. !             return (name->vcommequiv);
  60.           if ((mask & M(STGCOMMON)))
  61. !             return !(name->vcommequiv);
  62.           }
  63.       return ONEOF(stg, mask);
  64.       }
  65. Only in f2c/src: mklinks
  66. diff -a -d +context f2c_org/src/sysdep.c f2c/src/sysdep.c
  67. *** f2c_org/src/sysdep.c    Mon Dec 10 15:22:02 1990
  68. --- f2c/src/sysdep.c    Fri May 08 15:28:18 1992
  69. ***************
  70. *** 40,48 ****
  71. --- 40,52 ----
  72.   #ifdef MSDOS
  73.   #define TMPDIR ""
  74.   #else
  75. + #ifdef AMIGA
  76. + #define TMPDIR "T:"
  77. + #else
  78.   #define TMPDIR "/tmp"
  79.   #endif
  80.   #endif
  81. + #endif
  82.   
  83.   char *tmpdir = TMPDIR;
  84.   
  85. ***************
  86. *** 99,104 ****
  87. --- 103,132 ----
  88.       sprintf(p1_bakfile, "%sf2c_p1fb", t);
  89.       sprintf(sortfname, "%sf2c_sort", t);
  90.   #else
  91. + #ifdef AMIGA
  92. +     char buf[64], *s, *t;
  93. +     if (!*tmpdir || *tmpdir == '.' && !tmpdir[1])
  94. +         t = "";
  95. +     else {
  96. +         /* substitute \ for / to avoid confusion with a
  97. +          * switch indicator in the system("sort ...")
  98. +          * call in formatdata.c
  99. +          */
  100. +         for(s = tmpdir, t = buf; *s; s++, t++)
  101. +             if ((*t = *s) == '/')
  102. +                 *t = '\\';
  103. +         if (t[-1] != '\\')
  104. +             *t++ = '\\';
  105. +         *t = 0;
  106. +         t = buf;
  107. +         }
  108. +     sprintf(c_functions, "%sf2c_func", t);
  109. +     sprintf(initfname, "%sf2c_rd", t);
  110. +     sprintf(blkdfname, "%sf2c_blkd", t);
  111. +     sprintf(p1_file, "%sf2c_p1f", t);
  112. +     sprintf(p1_bakfile, "%sf2c_p1fb", t);
  113. +     sprintf(sortfname, "%sf2c_sort", t);
  114. + #else
  115.       int pid = getpid();
  116.       sprintf(c_functions, "%s/f2c%d_func", tmpdir, pid);
  117.       sprintf(initfname, "%s/f2c%d_rd", tmpdir, pid);
  118. ***************
  119. *** 107,112 ****
  120. --- 135,141 ----
  121.       sprintf(p1_bakfile, "%s/f2c%d_p1fb", tmpdir, pid);
  122.       sprintf(sortfname, "%s/f2c%d_sort", tmpdir, pid);
  123.   #endif
  124. + #endif
  125.       sprintf(initbname, "%s.b", initfname);
  126.       }
  127.       if (debugflag)
  128. ***************
  129. *** 145,151 ****
  130. --- 174,182 ----
  131.   #ifdef SIGHUP
  132.       signal(SIGHUP, SIG_IGN);
  133.   #endif
  134. + #ifndef AMIGA
  135.       signal(SIGTERM, SIG_IGN);
  136. + #endif
  137.       Un_link_all(1);
  138.       exit(126);
  139.       }
  140. ***************
  141. *** 178,184 ****
  142. --- 209,217 ----
  143.   #ifdef SIGHUP
  144.       sig1catch(SIGHUP);
  145.   #endif
  146. + #ifndef AMIGA
  147.       sig1catch(SIGTERM);
  148. + #endif
  149.       signal(SIGFPE, flovflo);  /* catch overflows */
  150.       }
  151.   
  152. ***************
  153. *** 188,193 ****
  154. --- 221,229 ----
  155.   #ifdef MSDOS
  156.       Fatal("Only one Fortran input file allowed under MS-DOS");
  157.   #else
  158. + #ifdef AMIGA
  159. +     Fatal("Only one Fortran input file allowed under AmigaDOS");
  160. + #else
  161.       int pid, status, w;
  162.       extern int retcode;
  163.   
  164. ***************
  165. *** 200,205 ****
  166. --- 236,242 ----
  167.               Fatal("bad wait code");
  168.       retcode |= status >> 8;
  169.   #endif
  170. + #endif
  171.       return 0;
  172.       }
  173.   
  174. ***************
  175. *** 359,365 ****
  176.   {
  177.       extern char *Alloc();
  178.   
  179. !     struct Memb {
  180.           struct Memb *next;
  181.           int n;
  182.           char buf[32000];
  183. --- 396,402 ----
  184.   {
  185.       extern char *Alloc();
  186.   
  187. !     static struct Memb {
  188.           struct Memb *next;
  189.           int n;
  190.           char buf[32000];
  191. Only in f2c/src: tokdefs.h
  192. diff -a -d +context f2c_org/src/usignal.h f2c/src/usignal.h
  193. *** f2c_org/src/usignal.h    Mon Dec 10 15:22:02 1990
  194. --- f2c/src/usignal.h    Fri May 08 14:35:49 1992
  195. ***************
  196. *** 1,7 ****
  197. --- 1,9 ----
  198.   #include <signal.h>
  199. + #ifndef AMIGA
  200.   #ifndef SIGHUP
  201.   #define    SIGHUP    1    /* hangup */
  202.   #endif
  203.   #ifndef SIGQUIT
  204.   #define    SIGQUIT    3    /* quit */
  205. + #endif
  206.   #endif
  207.