🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #400

diff bug on Alliant

#400
From: Jeff Treece
Date: Fri, 01 Sep 1989 21:17
67 lines
2110 bytes
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
Technical Details
Message-ID: <8909012340.AA10176@life.ai.mit.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!IUVAX.CS.INDIANA.EDU!sabbagh!treece

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!IUVAX.CS.INDIANA.EDU!sabbagh!treece
From: sabbagh!treece@IUVAX.CS.INDIANA.EDU (Jeff Treece)
Newsgroups: gnu.utils.bug
Subject: diff bug on Alliant
Message-ID: <8909012340.AA10176@life.ai.mit.edu>
Date: 1 Sep 89 21:17:13 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 67