Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 exptools 1/6/84; site ihuxx.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!ihuxx!ignatz From: ignatz@ihuxx.UUCP (Dave Ihnat, Chicago, IL) Newsgroups: net.sources,net.unix,net.lang.c Subject: QUERY: Coding convention Message-ID: <793@ihuxx.UUCP> Date: Fri, 29-Jun-84 12:39:40 EDT Article-I.D.: ihuxx.793 Posted: Fri Jun 29 12:39:40 1984 Date-Received: Sun, 1-Jul-84 05:48:54 EDT Organization: AT&T Bell Labs, Naperville, IL Lines: 26 Yes, I know..multiple postings...but a pointer would require as much of the net resources as this simple query, and I want people who read all these groups. Specifically: When writing code that is to work for BSD and USG unix, the standard method in the past has been to use some flag in an '#ifdef'. Now this is fine, BUT: at different times, I've seen all of the following: BSD, BSD2, B4.2 for Berkeley, and V7, SYS3, USG, and USG3.0 for the product originating at Bell Laboratories (Now known as AT&T Bell Laboratories...for the lawyers reading this. Happy guys?) Can we reach some consensus for a convention that makes sense for ongoing versions, and isn't tied to something that may become obsolete (such as USG--stood for Unix Support Group)? Perhaps, if we come up with something coherent enough, maybe the Berkeley people and WeCo could actually agree to put an identifier in the 'C' compiler, much in the way that the machine type is identified in the current compiler. All suggestions and comments should be MAILED to me. (Flames will probably go to /dev/water.bucket--or you may get 'em back, with interest...) Assuming that I get any responses, NLT than two weeks after the last, I'll summarize the responses to the net. Thanks, Dave Ihnat ihuxx!ignatz