🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.bugs
Article #605

Re: Problem with TRN 1.0.2 patch (mthreads.h)

#605
From: Tony Mountifield
Date: Thu, 24 Jan 1991 13:59
26 lines
1635 bytes
In article <14946@smoke.brl.mil> gwyn@smoke.brl.mil (Doug Gwyn) writes:
> In article <91022.140110DOUG@ysub.ysu.edu> DOUG@ysub.ysu.edu (Doug Sewell) writes:
> >When 'make' hits the line 'cc -c -O -I. mthreads.c', it gets:
> >>"./mthreads.h", line 61: syntax error
> >Line 61 of mthreads.h is:
> >>void dont_read_data(int);
[............]
> My guess is that your compiler does not support prototypes, and thus
> the appropriate declaration in mthreads.h should have been
> 	void dont_read_data();
> Without looking at the code I have no idea why prototypes were being
> used.

I had the same problem, and it is due to an oversight in the declaration.
It shoudl have read:

	void dont_read_data ANSI((int))

ANSI is a macro which either includes or omits the prototypes (compare
the other declarations around the same area).
-- 
Tony Mountifield.                | Microware Systems (UK) Ltd.
MAIL:  tony@mwuk.uucp            | Leylands Farm, Nobs Crook,
INET:  tony%mwuk.uucp@ukc.ac.uk  | Colden Common, WINCHESTER, SO21 1TH.
UUCP:  ...!mcsun!ukc!mwuk!tony   | Tel: 0703 601990   Fax: 0703 601991
**** OS-9, OS-9000 Real Time Systems **** MS-DOS - just say "No!" ****
Technical Details
Message-ID: <261@mwuk.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!bu.edu!snorkelwacker.mit.edu!usc!wuarchive!uunet!mcsun!ukc!pyrltd!mwuk!tony
References: <91022.140110DOUG@ysub.ysu.edu> <14946@smoke.brl.mil>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!bu.edu!snorkelwacker.mit.edu!usc!wuarchive!uunet!mcsun!ukc!pyrltd!mwuk!tony
From: tony@mwuk.UUCP (Tony Mountifield)
Newsgroups: comp.sources.bugs
Subject: Re: Problem with TRN 1.0.2 patch (mthreads.h)
Message-ID: <261@mwuk.UUCP>
Date: 24 Jan 91 13:59:56 GMT
References: <91022.140110DOUG@ysub.ysu.edu> <14946@smoke.brl.mil>
Organization: Microware Systems (UK) Ltd., Winchester, UK.
Lines: 26