🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #109

Re: Editor mined (Unix, VMS, MSDOS) - correction to mined1.c from part (1/4)

#109
From: Thomas Wolff
Date: Tue, 04 Aug 1992 17:57
22 lines
1167 bytes
The following correction to the file mined1.c removes a compiler warning 
at a place which may on some systems even result in incorrect behaviour:

Replace the line
char * (* fnamv) [];
with
char * * fnamv;			/* Copy of argv. Points to program params */

Replace the line
  else load_file ((* fnamv) [fnami]);
with
  else load_file (fnamv [fnami]);

Replace the line
  fnamv = argv;	/* Why does this produce a warning? C is such a stupid language! */
with (optional)
  fnamv = argv;	/* Why did this produce a warning? C is still a stupid language! */

For discussion see several follow-up articles and my replies to them.

Thomas Wolff
wolff@inf.fu-berlin.de
Technical Details
Message-ID: <YYQ5D2E@math.fu-berlin.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!zrz.tu-berlin.de!math.fu-berlin.de!wolff
References: <42I54HD@math.fu-berlin.de>

Show Full Headers
Complete Article Headers
Newsgroups: comp.editors
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!zrz.tu-berlin.de!math.fu-berlin.de!wolff
From: wolff@inf.fu-berlin.de (Thomas Wolff)
Subject: Re: Editor mined (Unix, VMS, MSDOS) - correction to mined1.c from part (1/4)
Message-ID: <YYQ5D2E@math.fu-berlin.de>
Sender: news@math.fu-berlin.de (Math Department)
Organization: Free University of Berlin, Germany
References: <42I54HD@math.fu-berlin.de>
Date: Tue, 4 Aug 1992 17:57:45 GMT
Lines: 23