🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #5080

uxdsp.c and nuxdsp.c in 4.0 PL 67 need fixing

#5080
From: Richard Lloyd
Date: Fri, 04 Feb 1994 17:31
91 lines
4150 bytes
OK, I gave up trying to get rid of those signed char warnings (looks like Mike's
done a search-and-replace to convert ALL char's to signed char's !) with
4.0 PL 67 and set out to compile it, warnings and all.

Mike's global replace seems to have hit the prototyping (is this needed
anyway ? Don't the system header files do this ?) in uxdsp.c and nuxdsp.c.
Basically, the char *'s have become signed char *'s, which conflicts with the
prototypes defined in the system header files (for HP-UX systems in ANSI mode
anyway). Here's the context diffs (which include a #else fix for search.c,
because ANSI cpp doesn't normally support #else if defined, but does support
#elif defined):

*** ./nuxdsp.c.cln	Mon Jan 31 10:08:23 1994
--- ./nuxdsp.c	Fri Feb  4 17:18:58 1994
***************
*** 47,55 ****
       extern void exit (int);
  
  /* <string.h> */
!      extern signed char *strcat (signed char *, const signed char *);
!      extern int strcmp (const signed char *, const signed char *);
!      extern signed char *strcpy (signed char *, const signed char *);
  
  /* <time.h> */
       extern long int time (long int *);
--- 47,55 ----
       extern void exit (int);
  
  /* <string.h> */
!      extern char *strcat (char *, const char *);
!      extern int strcmp (const char *, const char *);
!      extern char *strcpy (char *, const char *);
  
  /* <time.h> */
       extern long int time (long int *);
*** ./search.c.cln	Mon Jan 31 10:08:23 1994
--- ./search.c	Fri Feb  4 17:15:08 1994
***************
*** 1047,1053 ****
        else if (best > 0 && best > beta) return (best);
        else best = -12000;
      }
! #else if defined DEEPNULL
  
    /*
     * The deepnull algoritm is taken from the article by
--- 1047,1053 ----
        else if (best > 0 && best > beta) return (best);
        else best = -12000;
      }
! #elif defined DEEPNULL
  
    /*
     * The deepnull algoritm is taken from the article by
*** ./uxdsp.c.cln	Mon Jan 31 10:08:23 1994
--- ./uxdsp.c	Fri Feb  4 17:17:08 1994
***************
*** 46,54 ****
       extern void exit (int);
  
  /* <string.h> */
!      extern signed char *strcat (signed char *, const signed char *);
!      extern int strcmp (const signed char *, const signed char *);
!      extern signed char *strcpy (signed char *, const signed char *);
  
  /* <time.h> */
       extern long int time (long int *);
--- 46,54 ----
       extern void exit (int);
  
  /* <string.h> */
!      extern char *strcat (char *, const char *);
!      extern int strcmp (const char *, const char *);
!      extern char *strcpy (char *, const char *);
  
  /* <time.h> */
       extern long int time (long int *);


I hope this all helps - it gets 4.0 PL 67 compiled under HP-UX 9.01 on an
HP 9000/710 [with about 30 screens of warnings :-( ].

Archive Librarian,        Anonymous FTP: ftp.csc.liv.ac.uk (138.253.42.172)
Computer Science Dept.,   E-mail: ftp@csc.liv.ac.uk
Liverpool University,     Mail server: mail-server@csc.liv.ac.uk
Merseyside,               [For info, put "help" or "index" in message body]
England,                  Gopher server: gopher.csc.liv.ac.uk (138.253.42.174)
Great Britain.            Official Anonymous FTP mirror sites:
                          Germany: hpux.ask.uni-karlsruhe.de (129.13.200.57)
The archive has support   US:      ftp.cae.wisc.edu (144.92.4.15)
for HP-UX 8.07 and 9.01   France:  hpux.cict.fr (192.70.79.53)  *NEWEST SITE*
Technical Details
Message-ID: <CKpnBr.2r9@compsci.liverpool.ac.uk>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!pipex!uknet!liv!lucs!rkl

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d71d,406373eabaff24ee,start
X-Google-Attributes: gid10d71d,public
X-Google-ArrivalTime: 1994-02-05 08:23:56 PST
Newsgroups: gnu.chess
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!pipex!uknet!liv!lucs!rkl
From: rkl@csc.liv.ac.uk (Richard Lloyd)
Subject: uxdsp.c and nuxdsp.c in 4.0 PL 67 need fixing
Sender: news@compsci.liverpool.ac.uk (News Eater)
Message-ID: <CKpnBr.2r9@compsci.liverpool.ac.uk>
Nntp-Posting-User: rkl
Date: Fri, 4 Feb 1994 17:31:03 GMT
Lines: 91
Nntp-Posting-Host: bobr.csc.liv.ac.uk
Organization: Computer Science, Liverpool University