[gnu.utils.bug] diff bug on Alliant

treece@IUVAX.CS.INDIANA.EDU (Jeff Treece) (09/02/89)

Hello,
I have just installed diff-1.7 on an Alliant FX/4.  There was one problem
with the compilation that the following changes fix.  The problem was
that an identifier is named "vector," which happens to be defined in one
of the <machine/h> files.  I hope this report is of use.
Keep up the good work!
--------------------------------------------------------------------
*** diff.c	Fri Sep  1 16:05:18 1989
--- diff.c~	Wed Apr 26 15:38:27 1989
***************
*** 43,50 ****
     the length of that vector.  */
  
  static char *
! option_list (vectore, count)
!      char **vectore;
       int count;
  {
    int i;
--- 43,50 ----
     the length of that vector.  */
  
  static char *
! option_list (vector, count)
!      char **vector;
       int count;
  {
    int i;
***************
*** 52,58 ****
    char *result;
  
    for (i = 0; i < count; i++)
!     length += strlen (vectore[i]) + 1;
  
    result = (char *) xmalloc (length + 1);
    result[0] = 0;
--- 52,58 ----
    char *result;
  
    for (i = 0; i < count; i++)
!     length += strlen (vector[i]) + 1;
  
    result = (char *) xmalloc (length + 1);
    result[0] = 0;
***************
*** 60,66 ****
    for (i = 0; i < count; i++)
      {
        strcat (result, " ");
!       strcat (result, vectore[i]);
      }
  
    return result;
--- 60,66 ----
    for (i = 0; i < count; i++)
      {
        strcat (result, " ");
!       strcat (result, vector[i]);
      }
  
    return result;
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Jeff Treece
Sabbagh Associates
treece@sabbagh.com ... iuvax.cs.indiana.edu!sabbagh!treece
(812) 339-8273