home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / lib / mntc6846.zoo / patch / diffc.c68 < prev    next >
Encoding:
Text File  |  1995-04-23  |  5.5 KB  |  271 lines

  1. *** a64l.c.orig    Tue Mar  1 16:54:40 1994
  2. --- a64l.c    Sat Mar 25 16:36:18 1995
  3. ***************
  4. *** 64,75 ****
  5.   #include <compiler.h>
  6.   #endif
  7.   
  8. ! /* Local function prototypes */
  9. ! static int a64i __PROTO((char c));  /* base-64 char to int, -1 on error */
  10. ! /* base-64 char to int, -1 on error */
  11.   static int a64i(c)
  12.     char c;
  13.   {
  14.     int retval = c;
  15.   
  16. --- 64,75 ----
  17.   #include <compiler.h>
  18.   #endif
  19.   
  20. ! #ifdef __STDC__
  21. ! static int a64i(char c)
  22. ! #else
  23.   static int a64i(c)
  24.     char c;
  25. + #endif
  26.   {
  27.     int retval = c;
  28.   
  29. *** cfsetisp.c.orig    Tue Mar  1 16:54:54 1994
  30. --- cfsetisp.c    Sat Mar 25 16:36:20 1995
  31. ***************
  32. *** 6,15 ****
  33. --- 6,19 ----
  34.   #include <types.h>
  35.   #include <termios.h>
  36.   
  37. + #ifdef __STDC__
  38. + int cfsetispeed(struct termios *stp, speed_t baudcode)
  39. + #else
  40.   int
  41.   cfsetispeed(stp, baudcode)
  42.     struct termios *stp;
  43.     speed_t baudcode;
  44. + #endif
  45.   {
  46.     stp->_c_ispeed = baudcode;
  47.     return 0;
  48. *** cfsetosp.c.orig    Tue Mar  1 16:54:54 1994
  49. --- cfsetosp.c    Sat Mar 25 16:36:22 1995
  50. ***************
  51. *** 6,15 ****
  52. --- 6,19 ----
  53.   #include <types.h>
  54.   #include <termios.h>
  55.   
  56. + #ifdef __STDC__
  57. + int cfsetospeed(struct termios *stp, speed_t baudcode)
  58. + #else
  59.   int
  60.   cfsetospeed(stp, baudcode)
  61.     struct termios *stp;
  62.     speed_t baudcode;
  63. + #endif
  64.   {
  65.     stp->_c_ospeed = baudcode;
  66.     return 0;
  67. *** clock.c.orig    Wed Sep 15 08:08:22 1993
  68. --- clock.c    Sat Mar 25 16:36:22 1995
  69. ***************
  70. *** 18,24 ****
  71.   static long
  72.   getnow()
  73.   {
  74. !     now = *((unsigned long *) 0x4baL);
  75.       return 0;
  76.   }
  77.   
  78. --- 18,24 ----
  79.   static long
  80.   getnow()
  81.   {
  82. !     now = *((clock_t *) 0x4baL);
  83.       return 0;
  84.   }
  85.   
  86. *** crt0.cpp.orig    Thu Oct  1 15:35:56 1992
  87. --- crt0.cpp    Sat Mar 25 16:36:24 1995
  88. ***************
  89. *** 84,89 ****
  90. --- 84,92 ----
  91.   __setstack:
  92.       movel    sp@+, a0    | save return address
  93.       movel    sp@, sp        | new stack pointer
  94. + #ifdef __C68__
  95. +     movel    sp, __spbase    | for c68 stack checking routines
  96. + #endif
  97.       subql    #4, sp        | fixup for tidy upon return
  98.       jmp    a0@        | back to caller
  99.   
  100. *** crtinit.c.orig    Wed Oct 27 04:09:36 1993
  101. --- crtinit.c    Sat Mar 25 16:36:26 1995
  102. ***************
  103. *** 122,127 ****
  104. --- 122,131 ----
  105.   extern _StkSize; /* set by linker */
  106.   #endif
  107.   
  108. + #ifdef __C68__
  109. + void *_spbase;    /* for c68's stack checking routines */
  110. + #endif
  111.   /* default sizeof stdio buffers */
  112.   size_t __DEFAULT_BUFSIZ__;    /* .comm             */
  113.   
  114. *** ctime.c.orig    Tue Oct 12 03:18:52 1993
  115. --- ctime.c    Sat Mar 25 16:36:28 1995
  116. ***************
  117. *** 35,46 ****
  118.   
  119.   #else
  120.   
  121. ! static char * two_dig __PROTO((char *buf, unsigned short num));
  122.   static char *
  123.   two_dig(buf, num)
  124.       char *buf;
  125.       unsigned short num;
  126.   {
  127.       unsigned int rem;
  128.   
  129. --- 35,48 ----
  130.   
  131.   #else
  132.   
  133. ! #ifdef _STDC__
  134. ! static char * two_dig(char *buf, unsigned short num);
  135. ! #else
  136.   static char *
  137.   two_dig(buf, num)
  138.       char *buf;
  139.       unsigned short num;
  140. + #endif
  141.   {
  142.       unsigned int rem;
  143.   
  144. *** flonum.h.orig    Sat Dec 12 12:25:36 1992
  145. --- flonum.h    Sat Mar 25 16:36:30 1995
  146. ***************
  147. *** 18,24 ****
  148.   
  149.   /* quasi-IEEE floating point number definitions */
  150.   
  151. ! #ifndef __TURBOC__
  152.   struct bitfloat {
  153.       unsigned long sign : 1;
  154.       unsigned long exp  : 8;
  155. --- 18,24 ----
  156.   
  157.   /* quasi-IEEE floating point number definitions */
  158.   
  159. ! #if !defined(__TURBOC__) && !defined(__C68__)
  160.   struct bitfloat {
  161.       unsigned long sign : 1;
  162.       unsigned long exp  : 8;
  163. *** initgroups.c.orig    Tue Mar 14 15:03:48 1995
  164. --- initgroups.c    Sat Mar 25 16:36:32 1995
  165. ***************
  166. *** 5,14 ****
  167. --- 5,18 ----
  168.   #include <errno.h>
  169.   #include <mintbind.h>
  170.   
  171. + #ifdef __STDC__
  172. + int initgroups (char *user, gid_t group)
  173. + #else
  174.   int
  175.   initgroups (user, group)
  176.       char *user;
  177.       gid_t group;
  178. + #endif
  179.   {
  180.     struct group *g;
  181.     gid_t groups[NGROUPS_MAX];
  182. *** mkdir.c.orig    Tue Mar 14 15:03:58 1995
  183. --- mkdir.c    Sat Mar 25 16:36:32 1995
  184. ***************
  185. *** 15,23 ****
  186. --- 15,27 ----
  187.   extern int errno;
  188.   extern int __mint;
  189.   
  190. + #ifdef __STDC__
  191. + int mkdir(const char *_path, mode_t mode)
  192. + #else
  193.   int mkdir(_path, mode)
  194.       const char *_path;
  195.       mode_t mode;
  196. + #endif
  197.   {
  198.       struct stat statbuf;
  199.       int rv;
  200. *** mkfifo.c.orig    Tue Mar 14 15:03:58 1995
  201. --- mkfifo.c    Sun Mar 26 20:53:08 1995
  202. ***************
  203. *** 6,16 ****
  204. --- 6,21 ----
  205.   #include <types.h>
  206.   #include <limits.h>
  207.   #include <stat.h>
  208. + #include "lib.h"
  209.   
  210. + #ifdef __STDC__
  211. + int mkfifo(const char *_path, mode_t mode)
  212. + #else
  213.   int
  214.   mkfifo(_path, mode)
  215.       const char *_path;
  216.       mode_t mode;
  217. + #endif
  218.   {
  219.       static unsigned long timelast;
  220.       char path[PATH_MAX], linkf[30] = "u:\\pipe\\n$", *s, c;
  221. *** open.c.orig    Tue Mar 14 15:04:02 1995
  222. --- open.c    Sun Mar 26 20:49:50 1995
  223. ***************
  224. *** 10,15 ****
  225. --- 10,17 ----
  226.   #include <errno.h>
  227.   #include <unistd.h>
  228.   #include <stdarg.h>
  229. + #include <string.h>
  230. + #include <stdlib.h>
  231.   #include <stat.h>
  232.   #include <device.h>
  233.   #include "lib.h"
  234. *** strerror.c.orig    Tue Mar 14 15:04:12 1995
  235. --- strerror.c    Sat Mar 25 16:36:36 1995
  236. ***************
  237. *** 164,171 ****
  238. --- 164,173 ----
  239.   strerror(errnum)
  240.   int errnum;
  241.   {
  242. + #ifndef __C68__    /* these are already declared; why redeclare them? */
  243.       extern int sys_nerr;
  244.       extern char *sys_errlist[];
  245. + #endif
  246.   
  247.       if (errnum >= 0 && errnum < sys_nerr)
  248.           return(sys_errlist[errnum]);
  249. *** wcmb.c.orig    Wed Nov  3 02:23:52 1993
  250. --- wcmb.c    Sat Mar 25 16:36:38 1995
  251. ***************
  252. *** 67,76 ****
  253. --- 67,80 ----
  254.       return maxlen - revcnt;
  255.   }
  256.   
  257. + #ifdef __STDC__
  258. + int wctomb(char *mbstr, wchar_t wchar)
  259. + #else
  260.   int
  261.   wctomb(mbstr, wchar)
  262.   char *mbstr;
  263.   wchar_t wchar;
  264. + #endif
  265.   {
  266.       /* Nope, still no statedependencies. */
  267.       if(mbstr == NULL) return 0;
  268.