home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / program / 562 / perl4_10.zoo / diffs < prev    next >
Encoding:
Text File  |  1991-10-09  |  16.7 KB  |  724 lines

  1. *** /home/bammi/etc/src/perl/arg.h    Tue Jun 11 17:38:33 1991
  2. --- arg.h    Sun Oct  6 18:13:16 1991
  3. ***************
  4. *** 282,288 ****
  5. --- 282,292 ----
  6.   #define O_REWINDDIR 263
  7.   #define O_CLOSEDIR 264
  8.   #define O_SYSCALL 265
  9. + #ifdef atarist
  10. + #define PERL_O_PIPE 266
  11. + #else
  12.   #define O_PIPE 266
  13. + #endif
  14.   #define MAXO 267
  15.   
  16.   #ifndef DOINIT
  17. *** /home/bammi/etc/src/perl/doio.c    Wed Jun 19 11:18:14 1991
  18. --- doio.c    Sun Oct  6 17:18:54 1991
  19. ***************
  20. *** 358,364 ****
  21.               }
  22.   #endif
  23.   #ifdef HAS_RENAME
  24. ! #ifndef MSDOS
  25.               if (rename(oldname,str->str_ptr) < 0) {
  26.               warn("Can't rename %s to %s: %s, skipping file",
  27.                 oldname, str->str_ptr, strerror(errno) );
  28. --- 358,364 ----
  29.               }
  30.   #endif
  31.   #ifdef HAS_RENAME
  32. ! #ifndef MSDOS_OR_ATARI
  33.               if (rename(oldname,str->str_ptr) < 0) {
  34.               warn("Can't rename %s to %s: %s, skipping file",
  35.                 oldname, str->str_ptr, strerror(errno) );
  36. ***************
  37. *** 385,391 ****
  38.   #endif
  39.           }
  40.           else {
  41. ! #ifndef MSDOS
  42.               if (UNLINK(oldname) < 0) {
  43.               warn("Can't rename %s to %s: %s, skipping file",
  44.                 oldname, str->str_ptr, strerror(errno) );
  45. --- 385,391 ----
  46.   #endif
  47.           }
  48.           else {
  49. ! #ifndef MSDOS_OR_ATARI
  50.               if (UNLINK(oldname) < 0) {
  51.               warn("Can't rename %s to %s: %s, skipping file",
  52.                 oldname, str->str_ptr, strerror(errno) );
  53. ***************
  54. *** 671,677 ****
  55.       }
  56.       else {
  57.       retval = (int)str_gnum(argstr);
  58. ! #ifdef MSDOS
  59.       s = (char*)(long)retval;        /* ouch */
  60.   #else
  61.       s = (char*)retval;        /* ouch */
  62. --- 671,677 ----
  63.       }
  64.       else {
  65.       retval = (int)str_gnum(argstr);
  66. ! #ifdef MSDOS_OR_ATARI
  67.       s = (char*)(long)retval;        /* ouch */
  68.   #else
  69.       s = (char*)retval;        /* ouch */
  70. ***************
  71. *** 682,688 ****
  72.       if (optype == O_IOCTL)
  73.       retval = ioctl(fileno(stio->ifp), func, s);
  74.       else
  75. ! #ifdef MSDOS
  76.       fatal("fcntl is not implemented");
  77.   #else
  78.   #ifdef HAS_FCNTL
  79. --- 682,688 ----
  80.       if (optype == O_IOCTL)
  81.       retval = ioctl(fileno(stio->ifp), func, s);
  82.       else
  83. ! #ifdef MSDOS_OR_ATARI
  84.       fatal("fcntl is not implemented");
  85.   #else
  86.   #ifdef HAS_FCNTL
  87. ***************
  88. *** 2418,2424 ****
  89.   int effective;
  90.   register struct stat *statbufp;
  91.   {
  92. ! #ifdef MSDOS
  93.       /* [Comments and code from Len Reed]
  94.        * MS-DOS "user" is similar to UNIX's "superuser," but can't write
  95.        * to write-protected files.  The execute permission bit is set
  96. --- 2418,2424 ----
  97.   int effective;
  98.   register struct stat *statbufp;
  99.   {
  100. ! #ifdef MSDOS_OR_ATARI
  101.       /* [Comments and code from Len Reed]
  102.        * MS-DOS "user" is similar to UNIX's "superuser," but can't write
  103.        * to write-protected files.  The execute permission bit is set
  104. ***************
  105. *** 2437,2442 ****
  106. --- 2437,2445 ----
  107.        *        Sun's PC-NFS.]
  108.        */
  109.   
  110. +      /* Atari stat() does pretty much the same thing. we set x_bit_set_in_stat
  111. +       * too so it will actually look into the files for magic numbers
  112. +       */
  113.        return (bit & statbufp->st_mode) ? TRUE : FALSE;
  114.   
  115.   #else /* ! MSDOS */
  116. *** /home/bammi/etc/src/perl/eval.c    Tue Jun 11 17:39:15 1991
  117. --- eval.c    Sun Oct  6 18:14:39 1991
  118. ***************
  119. *** 379,385 ****
  120.           old_rschar = rschar;
  121.           old_rslen = rslen;
  122.           rslen = 1;
  123. ! #ifdef MSDOS
  124.           rschar = 0;
  125.   #else
  126.   #ifdef CSH
  127. --- 379,385 ----
  128.           old_rschar = rschar;
  129.           old_rslen = rslen;
  130.           rslen = 1;
  131. ! #ifdef MSDOS_OR_ATARI
  132.           rschar = 0;
  133.   #else
  134.   #ifdef CSH
  135. ***************
  136. *** 422,428 ****
  137.               (void) interp(str,stab_val(last_in_stab),sp);
  138.               st = stack->ary_array;
  139.               tmpstr = Str_new(55,0);
  140. ! #ifdef MSDOS
  141.               str_set(tmpstr, "perlglob ");
  142.               str_scat(tmpstr,str);
  143.               str_cat(tmpstr," |");
  144. --- 422,428 ----
  145.               (void) interp(str,stab_val(last_in_stab),sp);
  146.               st = stack->ary_array;
  147.               tmpstr = Str_new(55,0);
  148. ! #ifdef MSDOS_OR_ATARI
  149.               str_set(tmpstr, "perlglob ");
  150.               str_scat(tmpstr,str);
  151.               str_cat(tmpstr," |");
  152. ***************
  153. *** 2829,2836 ****
  154.           stab = stabent(str_get(st[1]),TRUE);
  155.       if (!stab || !(stio = stab_io(stab)) || !(fp = stio->ifp))
  156.           goto say_undef;
  157. ! #ifdef MSDOS
  158.       str_set(str, (setmode(fileno(fp), O_BINARY) != -1) ? Yes : No);
  159.   #else
  160.       str_set(str, Yes);
  161.   #endif
  162. --- 2829,2846 ----
  163.           stab = stabent(str_get(st[1]),TRUE);
  164.       if (!stab || !(stio = stab_io(stab)) || !(fp = stio->ifp))
  165.           goto say_undef;
  166. ! #ifdef MSDOS_OR_ATARI
  167. ! #ifdef atarist
  168. !     if(fflush(fp))
  169. !        str_set(str, No);
  170. !     else
  171. !     {
  172. !         fp->_flag |= _IOBIN;
  173. !         str_set(str, Yes);
  174. !     }
  175. ! #else
  176.       str_set(str, (setmode(fileno(fp), O_BINARY) != -1) ? Yes : No);
  177. + #endif
  178.   #else
  179.       str_set(str, Yes);
  180.   #endif
  181. ***************
  182. *** 2905,2911 ****
  183. --- 2915,2925 ----
  184.       case O_SYSCALL:
  185.       value = (double)do_syscall(arglast);
  186.       goto donumset;
  187. + #ifdef atarist
  188. +     case PERL_O_PIPE:
  189. + #else
  190.       case O_PIPE:
  191. + #endif
  192.   #ifdef HAS_PIPE
  193.       if ((arg[1].arg_type & A_MASK) == A_WORD)
  194.           stab = arg[1].arg_ptr.arg_stab;
  195. *** /home/bammi/etc/src/perl/handy.h    Tue Jun 11 17:39:22 1991
  196. --- handy.h    Sun Oct  6 14:25:51 1991
  197. ***************
  198. *** 52,58 ****
  199. --- 52,62 ----
  200.   #define strnNE(s1,s2,l) (strncmp(s1,s2,l))
  201.   #define strnEQ(s1,s2,l) (!strncmp(s1,s2,l))
  202.   
  203. + #ifdef STANDARD_C
  204. + #define MEM_SIZE size_t
  205. + #else
  206.   #define MEM_SIZE unsigned int
  207. + #endif
  208.   
  209.   /* Line numbers are unsigned, 16 bits. */
  210.   typedef unsigned short line_t;
  211. *** /home/bammi/etc/src/perl/perl.c    Wed Jun 19 11:18:28 1991
  212. --- perl.c    Sun Oct  6 19:16:13 1991
  213. ***************
  214. *** 218,224 ****
  215.       argv[0] = e_tmpname;
  216.       }
  217.   
  218. ! #ifdef MSDOS
  219.   #define PERLLIB_SEP ';'
  220.   #else
  221.   #define PERLLIB_SEP ':'
  222. --- 218,224 ----
  223.       argv[0] = e_tmpname;
  224.       }
  225.   
  226. ! #ifdef MSDOS_OR_ATARI
  227.   #define PERLLIB_SEP ';'
  228.   #else
  229.   #define PERLLIB_SEP ':'
  230. ***************
  231. *** 275,293 ****
  232.   
  233.       bufend = s + strlen(s);
  234.       while (*s) {
  235. ! #ifndef MSDOS
  236.           s = cpytill(tokenbuf,s,bufend,':',&len);
  237.   #else
  238.           for (len = 0; *s && *s != ';'; tokenbuf[len++] = *s++);
  239.           tokenbuf[len] = '\0';
  240.   #endif
  241.           if (*s)
  242.           s++;
  243. ! #ifndef MSDOS
  244.           if (len && tokenbuf[len-1] != '/')
  245.   #else
  246.           if (len && tokenbuf[len-1] != '\\')
  247.   #endif
  248.           (void)strcat(tokenbuf+len,"/");
  249.           (void)strcat(tokenbuf+len,argv[0]);
  250.   #ifdef DEBUGGING
  251. --- 275,302 ----
  252.   
  253.       bufend = s + strlen(s);
  254.       while (*s) {
  255. ! #ifndef MSDOS_OR_ATARI
  256.           s = cpytill(tokenbuf,s,bufend,':',&len);
  257.   #else
  258. + #ifdef atarist
  259. +         for (len = 0; *s && *s != ',' && *s != ';'; tokenbuf[len++] = *s++);
  260. +         tokenbuf[len] = '\0';
  261. + #else
  262.           for (len = 0; *s && *s != ';'; tokenbuf[len++] = *s++);
  263.           tokenbuf[len] = '\0';
  264.   #endif
  265. + #endif
  266.           if (*s)
  267.           s++;
  268. ! #ifndef MSDOS_OR_ATARI
  269.           if (len && tokenbuf[len-1] != '/')
  270.   #else
  271. + #ifdef atarist
  272. +         if (len && ((tokenbuf[len-1] != '\\') || (tokenbuf[len-1] != '/')))
  273. + #else
  274.           if (len && tokenbuf[len-1] != '\\')
  275.   #endif
  276. + #endif
  277.           (void)strcat(tokenbuf+len,"/");
  278.           (void)strcat(tokenbuf+len,argv[0]);
  279.   #ifdef DEBUGGING
  280. ***************
  281. *** 332,338 ****
  282.    -e '/^#[     ]*endif/b' \
  283.    -e 's/^#.*//' \
  284.    %s | %s -C %s %s",
  285. ! #ifdef MSDOS
  286.         "",
  287.   #else
  288.         "/bin/",
  289. --- 341,347 ----
  290.    -e '/^#[     ]*endif/b' \
  291.    -e 's/^#.*//' \
  292.    %s | %s -C %s %s",
  293. ! #ifdef MSDOS_OR_ATARI
  294.         "",
  295.   #else
  296.         "/bin/",
  297. ***************
  298. *** 1201,1206 ****
  299. --- 1210,1218 ----
  300.           stdout);
  301.   #endif
  302.   #endif
  303. + #ifdef atarist
  304. +         fputs("atariST series port, ++jrb  bammi@cadence.com\n", stdout);
  305. + #endif
  306.       fputs("\n\
  307.   Perl may be copied only under the terms of either the Artistic License or the\n\
  308.   GNU General Public License, which may be found in the Perl 4.0 source kit.\n",stdout);
  309. ***************
  310. *** 1242,1248 ****
  311.       fprintf(stderr, "unexec of %s into %s failed!\n", perlpath, dumpname);
  312.       exit(status);
  313.   #else
  314. ! #ifdef MSDOS
  315.       abort();    /* nothing else to do */
  316.   #else /* ! MSDOS */
  317.   #   ifndef SIGABRT
  318. --- 1254,1260 ----
  319.       fprintf(stderr, "unexec of %s into %s failed!\n", perlpath, dumpname);
  320.       exit(status);
  321.   #else
  322. ! #ifdef MSDOS_OR_ATARI
  323.       abort();    /* nothing else to do */
  324.   #else /* ! MSDOS */
  325.   #   ifndef SIGABRT
  326. *** /home/bammi/etc/src/perl/perl.h    Wed Jun 19 11:18:29 1991
  327. --- perl.h    Sun Oct  6 17:55:59 1991
  328. ***************
  329. *** 25,31 ****
  330.   #define VOIDWANT 1
  331.   #include "config.h"
  332.   
  333. ! #ifdef MSDOS
  334.   /* This stuff now in the MS-DOS config.h file. */
  335.   #else /* !MSDOS */
  336.   
  337. --- 25,36 ----
  338.   #define VOIDWANT 1
  339.   #include "config.h"
  340.   
  341. ! /* define this once if either system, instead of cluttering up the src */
  342. ! #if defined(MSDOS) || defined(atarist)
  343. ! #define MSDOS_OR_ATARI 1
  344. ! #endif
  345. ! #ifdef MSDOS_OR_ATARI
  346.   /* This stuff now in the MS-DOS config.h file. */
  347.   #else /* !MSDOS */
  348.   
  349. ***************
  350. *** 377,383 ****
  351. --- 382,392 ----
  352.   #undef f_next
  353.   #endif
  354.   
  355. + #if STANDARD_C
  356. + typedef size_t STRLEN;
  357. + #else
  358.   typedef unsigned int STRLEN;
  359. + #endif
  360.   
  361.   typedef struct arg ARG;
  362.   typedef struct cmd CMD;
  363. ***************
  364. *** 473,479 ****
  365.   
  366.   #define GROWSTR(pp,lp,len) if (*(lp) < (len)) growstr(pp,lp,len)
  367.   
  368. ! #ifndef MSDOS
  369.   #define STR_GROW(str,len) if ((str)->str_len < (len)) str_grow(str,len)
  370.   #define Str_Grow str_grow
  371.   #else
  372. --- 482,488 ----
  373.   
  374.   #define GROWSTR(pp,lp,len) if (*(lp) < (len)) growstr(pp,lp,len)
  375.   
  376. ! #ifndef MSDOS_OR_ATARI
  377.   #define STR_GROW(str,len) if ((str)->str_len < (len)) str_grow(str,len)
  378.   #define Str_Grow str_grow
  379.   #else
  380. ***************
  381. *** 481,487 ****
  382.   #define STR_GROW(str,len) if ((str)->str_len < (unsigned long)len) \
  383.           str_grow(str,(unsigned long)len)
  384.   #define Str_Grow(str,len) str_grow(str,(unsigned long)(len))
  385. ! #endif /* MSDOS */
  386.   
  387.   #ifndef BYTEORDER
  388.   #define BYTEORDER 0x1234
  389. --- 490,496 ----
  390.   #define STR_GROW(str,len) if ((str)->str_len < (unsigned long)len) \
  391.           str_grow(str,(unsigned long)len)
  392.   #define Str_Grow(str,len) str_grow(str,(unsigned long)(len))
  393. ! #endif /* MSDOS_OR_ATARI */
  394.   
  395.   #ifndef BYTEORDER
  396.   #define BYTEORDER 0x1234
  397. ***************
  398. *** 727,733 ****
  399.   EXT bool tainted INIT(FALSE);        /* using variables controlled by $< */
  400.   #endif
  401.   
  402. ! #ifndef MSDOS
  403.   #define TMPPATH "/tmp/perl-eXXXXXX"
  404.   #else
  405.   #define TMPPATH "plXXXXXX"
  406. --- 736,742 ----
  407.   EXT bool tainted INIT(FALSE);        /* using variables controlled by $< */
  408.   #endif
  409.   
  410. ! #ifndef MSDOS_OR_ATARI
  411.   #define TMPPATH "/tmp/perl-eXXXXXX"
  412.   #else
  413.   #define TMPPATH "plXXXXXX"
  414. *** /home/bammi/etc/src/perl/regcomp.c    Tue Jun 11 17:40:21 1991
  415. --- regcomp.c    Sun Oct  6 18:17:18 1991
  416. ***************
  417. *** 77,83 ****
  418. --- 77,87 ----
  419.   #define    ISMULT1(c)    ((c) == '*' || (c) == '+' || (c) == '?')
  420.   #define    ISMULT2(s)    ((*s) == '*' || (*s) == '+' || (*s) == '?' || \
  421.       ((*s) == '{' && regcurly(s)))
  422. + #ifdef atarist
  423. + #define    PERL_META    "^$.[()|?+*\\"
  424. + #else
  425.   #define    META    "^$.[()|?+*\\"
  426. + #endif
  427.   
  428.   #ifdef SPSTART
  429.   #undef SPSTART        /* dratted cpp namespace... */
  430. *** /home/bammi/etc/src/perl/str.c    Wed Jun 19 11:18:43 1991
  431. --- str.c    Sun Oct  6 14:53:02 1991
  432. ***************
  433. *** 76,82 ****
  434.   char *
  435.   str_grow(str,newlen)
  436.   register STR *str;
  437. ! #ifndef MSDOS
  438.   register int newlen;
  439.   #else
  440.   unsigned long newlen;
  441. --- 76,82 ----
  442.   char *
  443.   str_grow(str,newlen)
  444.   register STR *str;
  445. ! #ifndef MSDOS_OR_ATARI
  446.   register int newlen;
  447.   #else
  448.   unsigned long newlen;
  449. *** /home/bammi/etc/src/perl/toke.c    Wed Jun 19 11:18:45 1991
  450. --- toke.c    Sun Oct  6 18:16:45 1991
  451. ***************
  452. *** 52,58 ****
  453. --- 52,62 ----
  454.   #endif
  455.   #define CLINE (cmdline = (curcmd->c_line < cmdline ? curcmd->c_line : cmdline))
  456.   
  457. + #ifdef atarist
  458. + #define PERL_META(c) ((c) | 128)
  459. + #else
  460.   #define META(c) ((c) | 128)
  461. + #endif
  462.   
  463.   #define RETURN(retval) return (bufptr = s,(int)retval)
  464.   #define OPERATOR(retval) return (expectterm = TRUE,bufptr = s,(int)retval)
  465. ***************
  466. *** 91,99 ****
  467. --- 95,109 ----
  468.   /* This does similarly for list operators, merely by pretending that the
  469.    * paren came before the listop rather than after.
  470.    */
  471. + #ifdef atarist
  472. + #define LOP(f) return(CLINE, *s == '(' || (s = skipspace(s), *s == '(') ? \
  473. +     (*s = PERL_META('('), bufptr = oldbufptr, '(') : \
  474. +     (yylval.ival=f,expectterm = TRUE,bufptr = s,(int)LISTOP))
  475. + #else
  476.   #define LOP(f) return(CLINE, *s == '(' || (s = skipspace(s), *s == '(') ? \
  477.       (*s = META('('), bufptr = oldbufptr, '(') : \
  478.       (yylval.ival=f,expectterm = TRUE,bufptr = s,(int)LISTOP))
  479. + #endif
  480.   /* grandfather return to old style */
  481.   #define OLDLOP(f) return(yylval.ival=f,expectterm = TRUE,bufptr = s,(int)LISTOP)
  482.   
  483. ***************
  484. *** 139,145 ****
  485. --- 149,159 ----
  486.       if (*s != '(')
  487.       s = skipspace(s);
  488.       if (*s == '(') {
  489. + #ifdef atarist
  490. +     *s = PERL_META('(');
  491. + #else
  492.       *s = META('(');
  493. + #endif
  494.       bufptr = oldbufptr;
  495.       return '(';
  496.       }
  497. ***************
  498. *** 977,983 ****
  499. --- 991,1001 ----
  500.       if (strEQ(d,"package"))
  501.           OPERATOR(PACKAGE);
  502.       if (strEQ(d,"pipe"))
  503. + #ifdef atarist
  504. +         FOP22(PERL_O_PIPE);
  505. + #else
  506.           FOP22(O_PIPE);
  507. + #endif
  508.       break;
  509.       case 'q': case 'Q':
  510.       SNARFWORD;
  511. *** /home/bammi/etc/src/perl/util.c    Tue Jun 11 17:41:13 1991
  512. --- util.c    Sun Oct  6 17:37:39 1991
  513. ***************
  514. *** 1192,1198 ****
  515.   #endif /* BYTEORDER != 0x4321 */
  516.   #endif /* HAS_HTONS */
  517.   
  518. ! #ifndef MSDOS
  519.   FILE *
  520.   mypopen(cmd,mode)
  521.   char    *cmd;
  522. --- 1192,1198 ----
  523.   #endif /* BYTEORDER != 0x4321 */
  524.   #endif /* HAS_HTONS */
  525.   
  526. ! #ifndef MSDOS_OR_ATARI
  527.   FILE *
  528.   mypopen(cmd,mode)
  529.   char    *cmd;
  530. ***************
  531. *** 1264,1271 ****
  532.       forkprocess = pid;
  533.       return fdopen(p[this], mode);
  534.   }
  535. ! #endif /* !MSDOS */
  536.   
  537.   #ifdef NOTDEF
  538.   dumpfds(s)
  539.   char *s;
  540. --- 1264,1283 ----
  541.       forkprocess = pid;
  542.       return fdopen(p[this], mode);
  543.   }
  544. ! #else
  545. ! #ifdef atarist
  546. ! FILE *popen();
  547. ! FILE *
  548. ! mypopen(cmd,mode)
  549. ! char    *cmd;
  550. ! char    *mode;
  551. ! {
  552. !     return popen(cmd, mode);
  553. ! }
  554. ! #endif
  555.   
  556. + #endif /* !MSDOS_OR_ATARI */
  557.   #ifdef NOTDEF
  558.   dumpfds(s)
  559.   char *s;
  560. ***************
  561. *** 1306,1312 ****
  562.   }
  563.   #endif
  564.   
  565. ! #ifndef MSDOS
  566.   int
  567.   mypclose(ptr)
  568.   FILE *ptr;
  569. --- 1318,1324 ----
  570.   }
  571.   #endif
  572.   
  573. ! #ifndef MSDOS_OR_ATARI
  574.   int
  575.   mypclose(ptr)
  576.   FILE *ptr;
  577. ***************
  578. *** 1402,1408 ****
  579.   #endif
  580.       return;
  581.   }
  582. ! #endif /* !MSDOS */
  583.   
  584.   #ifndef HAS_MEMCMP
  585.   memcmp(s1,s2,len)
  586. --- 1414,1430 ----
  587.   #endif
  588.       return;
  589.   }
  590. ! #else
  591. ! #ifdef atarist
  592. ! int pclose();
  593. ! int
  594. ! mypclose(ptr)
  595. ! FILE *ptr;
  596. ! {
  597. !     return pclose(ptr);
  598. ! }
  599. ! #endif
  600. ! #endif /* !MSDOS_OR_ATARI */
  601.   
  602.   #ifndef HAS_MEMCMP
  603.   memcmp(s1,s2,len)
  604. *** malloc.c.orig    Tue Oct  8 13:53:30 1991
  605. --- malloc.c    Tue Oct  8 14:03:17 1991
  606. ***************
  607. *** 112,122 ****
  608.   
  609.   MALLOCPTRTYPE *
  610.   malloc(nbytes)
  611. !     register unsigned nbytes;
  612.   {
  613.         register union overhead *p;
  614.         register int bucket = 0;
  615. !       register unsigned shiftr;
  616.   
  617.       /*
  618.        * Convert amount of memory requested into
  619. --- 112,122 ----
  620.   
  621.   MALLOCPTRTYPE *
  622.   malloc(nbytes)
  623. !     register unsigned long nbytes;
  624.   {
  625.         register union overhead *p;
  626.         register int bucket = 0;
  627. !       register unsigned long shiftr;
  628.   
  629.       /*
  630.        * Convert amount of memory requested into
  631. ***************
  632. *** 176,182 ****
  633.         register union overhead *op;
  634.         register int rnu;       /* 2^rnu bytes will be requested */
  635.         register int nblks;     /* become nblks blocks of the desired size */
  636. !     register int siz;
  637.   
  638.         if (nextf[bucket])
  639.             return;
  640. --- 176,182 ----
  641.         register union overhead *op;
  642.         register int rnu;       /* 2^rnu bytes will be requested */
  643.         register int nblks;     /* become nblks blocks of the desired size */
  644. !     register long siz;
  645.   
  646.         if (nextf[bucket])
  647.             return;
  648. ***************
  649. *** 185,194 ****
  650.        * on a page boundary.  Should
  651.        * make getpageize call?
  652.        */
  653. !       op = (union overhead *)sbrk(0);
  654.   #ifndef I286
  655. !       if ((int)op & 0x3ff)
  656. !           (void)sbrk(1024 - ((int)op & 0x3ff));
  657.   #else
  658.       /* The sbrk(0) call on the I286 always returns the next segment */
  659.   #endif
  660. --- 185,194 ----
  661.        * on a page boundary.  Should
  662.        * make getpageize call?
  663.        */
  664. !       op = (union overhead *)sbrk(0L);
  665.   #ifndef I286
  666. !       if ((unsigned int)op & 0x3ff)
  667. !           (void)sbrk((long)(1024L - ((int)op & 0x3ff)));
  668.   #else
  669.       /* The sbrk(0) call on the I286 always returns the next segment */
  670.   #endif
  671. ***************
  672. *** 204,210 ****
  673.         nblks = 1 << (rnu - (bucket + 3));  /* how many blocks to get */
  674.         if (rnu < bucket)
  675.           rnu = bucket;
  676. !     op = (union overhead *)sbrk(1 << rnu);
  677.       /* no more room! */
  678.         if ((int)op == -1)
  679.             return;
  680. --- 204,210 ----
  681.         nblks = 1 << (rnu - (bucket + 3));  /* how many blocks to get */
  682.         if (rnu < bucket)
  683.           rnu = bucket;
  684. !     op = (union overhead *)sbrk(1L << rnu);
  685.       /* no more room! */
  686.         if ((int)op == -1)
  687.             return;
  688. ***************
  689. *** 236,242 ****
  690.   free(mp)
  691.       MALLOCPTRTYPE *mp;
  692.   {   
  693. !       register int size;
  694.       register union overhead *op;
  695.       char *cp = (char*)mp;
  696.   
  697. --- 236,242 ----
  698.   free(mp)
  699.       MALLOCPTRTYPE *mp;
  700.   {   
  701. !       register long size;
  702.       register union overhead *op;
  703.       char *cp = (char*)mp;
  704.   
  705. ***************
  706. *** 283,289 ****
  707.   MALLOCPTRTYPE *
  708.   realloc(mp, nbytes)
  709.       MALLOCPTRTYPE *mp; 
  710. !     unsigned nbytes;
  711.   {   
  712.         register u_int onb;
  713.       union overhead *op;
  714. --- 283,289 ----
  715.   MALLOCPTRTYPE *
  716.   realloc(mp, nbytes)
  717.       MALLOCPTRTYPE *mp; 
  718. !     unsigned long nbytes;
  719.   {   
  720.         register u_int onb;
  721.       union overhead *op;
  722.