delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/17/20:30:30

From: flux AT stack DOT nl (Mark van der Aalst)
Newsgroups: comp.os.msdos.djgpp,comp.lang.c
Subject: Re: Scripting language library
Followup-To: comp.os.msdos.djgpp,comp.lang.c
Date: 16 Dec 1997 20:04:18 +0100
Organization: MCGV Stack, Eindhoven University of Technology, the Netherlands.
Lines: 27
Message-ID: <676jbi$811@toad.stack.nl>
References: <348e5375 DOT 789931 AT news DOT xs4all DOT nl> <348fa837 DOT 370414 AT news DOT xs4all DOT nl> <66qj8b$o5g AT bgtnsc03 DOT worldnet DOT att DOT net> <34910cce DOT 1337533 AT news DOT xs4all DOT nl> <66sask$2q$1 AT home DOT edu DOT stockholm DOT se> <3494eaf4 DOT 492512 AT news DOT xs4all DOT nl>
NNTP-Posting-Host: toad.stack.nl
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hans Bezemer (hansoft AT geocities DOT com) wrote:
> On 12 Dec 1997 21:38:28 GMT, ulric AT evelin DOT edu DOT stockholm DOT se (Ulric Eriksson)
> wrote:

> >In horror I grepped the .c files to see if this was actually used
> >anywhere. You bet. The first file (4th.c) I looked into contained:

I hate to add to slacking of this guy, because I appreciate the
fact that he is contributing to free software by making his '4th'
package available, but, indeed it's hardly ANSI-C, I looked through
one file and encountered tons of horrible stuff ;

1. A stricmp() function - is in reserved namespace.
2. #include <alloc.h> - doesn't exist in ANSI-C
3. Casting malloc(), calloc(), etc - bad practice.
4. #include <4th.h> - leads to undefined behaviour
 
And this was just one file, not even mentioning the void main() and
using 'equ' macro's et al (which *can* be used but should be defined by
the appropriate iso header).

Ack, hardly ANSI ...

Cheers, flux.
 


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019