home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gnum4.zip / patches.emx < prev    next >
Text File  |  1998-02-22  |  5KB  |  206 lines

  1. Only in new: config.h
  2. Only in new: patches.emx
  3. Only in new/lib: Makefile.emx
  4. Only in new/lib: gnuregex.def
  5. Only in new/src: Makefile.emx
  6. Only in new/src: m4.def
  7. diff -cbr orig/checks/check-them.cmd new/checks/check-them.cmd
  8. *** orig/checks/check-them.cmd    Wed Jul 06 01:13:42 1994
  9. --- new/checks/check-them.cmd    Mon Nov 14 21:13:02 1994
  10. ***************
  11. *** 1,13 ****
  12.   #!/bin/sh
  13.   # Check GNU m4 against examples from the manual source.
  14.   # Copyright (C) 1992 Free Software Foundation, Inc.
  15.   
  16. ! out=/tmp/m4-out.$$
  17. ! err=/tmp/m4-err.$$
  18. ! xout=/tmp/m4-xout.$$
  19. ! xerr=/tmp/m4-xerr.$$
  20.   
  21. ! trap "rm -f $out $err $xout $xerr; exit 1" 1 2 15
  22.   
  23.   m4 --version
  24.   
  25. --- 1,15 ----
  26. + extproc sh
  27.   #!/bin/sh
  28.   # Check GNU m4 against examples from the manual source.
  29.   # Copyright (C) 1992 Free Software Foundation, Inc.
  30.   
  31. ! out=m4$$.out
  32. ! err=m4$$.err
  33. ! xout=m4$$x.out
  34. ! xerr=m4$$x.err
  35.   
  36. ! trap "rm -f $out $err $xout $xerr; exit 1" 2 15
  37.   
  38.   m4 --version
  39.   
  40. diff -cbr orig/checks/get-them.cmd new/checks/get-them.cmd
  41. *** orig/checks/get-them.cmd    Thu Nov 25 05:15:58 1993
  42. --- new/checks/get-them.cmd    Mon Nov 14 21:13:02 1994
  43. ***************
  44. *** 1,12 ****
  45.   #!/bin/sh
  46.   # Extract all examples from the manual source.
  47.   # Copyright (C) 1992 Free Software Foundation, Inc.
  48.   
  49.   # This script is for use with GNU awk.
  50.   
  51. ! FILE=${1-/dev/null}
  52.   
  53. ! $AWK '
  54.   
  55.   BEGIN {
  56.     node = "";
  57. --- 1,14 ----
  58. + extproc gawk -f
  59.   #!/bin/sh
  60.   # Extract all examples from the manual source.
  61.   # Copyright (C) 1992 Free Software Foundation, Inc.
  62.   
  63.   # This script is for use with GNU awk.
  64.   
  65. ! # FILE=${1-/dev/null}
  66.   
  67. ! # $AWK '
  68.   
  69.   BEGIN {
  70.     node = "";
  71. ***************
  72. *** 65,68 ****
  73.   END {
  74.     printf("\n");
  75.   }
  76. ! ' $FILE
  77. --- 67,71 ----
  78.   END {
  79.     printf("\n");
  80.   }
  81. ! # ' $FILE
  82. diff -cbr orig/src/builtin.c new/src/builtin.c
  83. *** orig/src/builtin.c    Wed Aug 31 18:45:12 1994
  84. --- new/src/builtin.c    Mon Nov 14 21:13:02 1994
  85. ***************
  86. *** 783,789 ****
  87. --- 783,793 ----
  88.   static void
  89.   m4_sysval (struct obstack *obs, int argc, token_data **argv)
  90.   {
  91. + #ifdef __EMX__
  92. +   shipout_int (obs, sysval);
  93. + #else
  94.     shipout_int (obs, (sysval >> 8) & 0xff);
  95. + #endif
  96.   }
  97.   
  98.   /*-------------------------------------------------------------------------.
  99. ***************
  100. *** 1073,1085 ****
  101. --- 1077,1115 ----
  102.   | Use the first argument as at template for a temporary file name.  |
  103.   `------------------------------------------------------------------*/
  104.   
  105. + #ifdef __EMX__
  106. + static void
  107. + emx_mktemp(char *file)
  108. + {
  109. +   char fname[32], *tmp;
  110. +   if ((tmp = getenv("TMP")) != NULL)
  111. +   {
  112. +     strcpy(fname, file);
  113. +     strcpy(file, tmp);
  114. +     if (file[strlen(file) - 1] != '\\')
  115. +       strcat(file, "\\");
  116. +     strcat(file, fname);
  117. +   }
  118. +   mktemp(file);
  119. + }
  120. + #endif
  121.   static void
  122.   m4_maketemp (struct obstack *obs, int argc, token_data **argv)
  123.   {
  124. + #ifdef __EMX__
  125. +   char name[256];
  126. +   if (bad_argc (argv[0], argc, 2, 2))
  127. +     return;
  128. +   strcpy (name, ARG(1));
  129. +   emx_mktemp (name);
  130. +   obstack_grow (obs, name, strlen(name));
  131. + #else
  132.     if (bad_argc (argv[0], argc, 2, 2))
  133.       return;
  134.     mktemp (ARG (1));
  135.     obstack_grow (obs, ARG (1), strlen (ARG (1)));
  136. + #endif
  137.   }
  138.   
  139.   /*----------------------------------------.
  140. diff -cbr orig/src/m4.c new/src/m4.c
  141. *** orig/src/m4.c    Wed Nov 02 05:14:28 1994
  142. --- new/src/m4.c    Mon Nov 14 21:20:14 1994
  143. ***************
  144. *** 135,140 ****
  145. --- 135,141 ----
  146.       fprintf (stderr, "Try `%s --help' for more information.\n", program_name);
  147.     else
  148.       {
  149. +       printf ("\nGNU " PRODUCT ", version " VERSION "\n\n");
  150.         printf ("Usage: %s [OPTION]... [FILE]...\n", program_name);
  151.         fputs ("\
  152.   Mandatory or optional arguments to long options are mandatory or optional\n\
  153. ***************
  154. *** 257,262 ****
  155. --- 258,275 ----
  156.     macro_definition *defines;
  157.     FILE *fp;
  158.   
  159. + #ifdef __EMX__
  160. +   _response(&argc, &argv);
  161. +   _wildcard(&argc, &argv);
  162. +   setvbuf(stdout, NULL, _IOFBF, BUFSIZ);
  163. +   strlwr ((char *) argv[0]);
  164. +   program_name = strrchr (argv[0], '.');
  165. +   if (program_name != NULL && strcmp(program_name, ".exe") == 0)
  166. +     * (char *) program_name = 0;
  167. +   program_name = strrchr (argv[0], '\\');
  168. +   if (program_name == NULL)
  169. + #endif
  170.     program_name = argv[0];
  171.   
  172.     include_init ();
  173. ***************
  174. *** 453,458 ****
  175. --- 466,473 ----
  176.   
  177.     if (optind == argc)
  178.       {
  179. +       if (isatty (fileno (stdin)))
  180. +     usage (0);
  181.         push_file (stdin, "stdin");
  182.         expand_input ();
  183.       }
  184. diff -cbr orig/lib/obstack.c new/lib/obstack.c
  185. *** orig/lib/obstack.c    Mon Oct 31 14:02:04 1994
  186. --- new/lib/obstack.c    Sun Feb 22 20:03:14 1998
  187. ***************
  188. *** 15,20 ****
  189. --- 15,24 ----
  190.   along with this program; if not, write to the Free Software
  191.   Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  192.   
  193. + #ifdef HAVE_CONFIG_H
  194. + #include <config.h>
  195. + #endif
  196.   #include "obstack.h"
  197.   
  198.   /* This is just to get __GNU_LIBRARY__ defined.  */
  199.  
  200.