Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!ho95e!homxb!ihnp4!laidbak!guardian From: guardian@laidbak.UUCP (Harry Skelton) Newsgroups: news.admin Subject: Re: PD C as solution to binary groups Message-ID: <1101@laidbak.UUCP> Date: Mon, 10-Aug-87 15:12:44 EDT Article-I.D.: laidbak.1101 Posted: Mon Aug 10 15:12:44 1987 Date-Received: Tue, 11-Aug-87 05:43:44 EDT References: <6960@g.ms.uky.edu> <3725@ncoast.UUCP> <2527@whuts.UUCP> <2639@hoptoad.uucp> Reply-To: guardian@laidbak.UUCP (Harry Skelton(E)) Organization: LAI Chicago Lines: 35 Summary: Poor little boys/girls.... If a few changes were made to the Small-C compiler or a document for standard idiot 'C' programming was made available, then I think this could cure 85% of the problems. Some of the net has little or no brains when dealing with programming or 'C' porting. (This is not to offend anyone but is true). Some of the things I would outline is: Simple use of structures or multi-array useage. No externs or unions (if at all possible). straight use of variables - no pointer playing. NO TYPEDEFS - some machines will croak on this. (Hi SCO Xenix) Small moduals - better a few little programs doing something than one big one. LOTS OF COMMENTS - nuff said. Smart makefiles or config programs - to find out what the user does not know (see rn) No BSD or Sys V dependent stuff - must be able to compile 'clean' on any system. vars must have legable names - no pt.dk.i2.dv - put.disk.in2.drive <--- better no memory playing - no mallocs, allocs, callocs or whatever - if it cant be handled by the compiler then don't post it. use standard includes - stdio.h curses.h termcap.h ctype.h ect.... include complete documents.... The list goes on and on. If anyone would like to see such a document of what is good and what is bad, post your vote and I'll comprise a complete listing and let you post what works and what does not. This way we can find what is compatable between machines. oh...main must be on bottom - plexus, IBM xenix (orig versions) and others have problems with main at top. (TRUE!) Harry Skelton guardian@laidbak.UUCP My opinions are not those of my company!