Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!watmum!smvorkoetter From: smvorkoetter@watmum.UUCP Newsgroups: comp.lang.c Subject: Re: Query: DeSmet C syntax -- converting to standard C Message-ID: <1011@watmum.UUCP> Date: Thu, 11-Jun-87 13:49:05 EDT Article-I.D.: watmum.1011 Posted: Thu Jun 11 13:49:05 1987 Date-Received: Sat, 13-Jun-87 06:48:04 EDT References: <7690@brl-adm.ARPA| <814@instable.UUCP| <6540@linus.UUCP| <3362@ecsvax.UUCP| <1174@ihlpm.ATT.COM| Reply-To: smvorkoetter@watmum.UUCP (Stefan M. Vorkoetter) Organization: U. of Waterloo, Ontario Lines: 31 Keywords: DeSmet C In article <1174@ihlpm.ATT.COM| leder@ihlpm.ATT.COM (Leder) writes: |In article <3362@ecsvax.UUCP|, phco@ecsvax.UUCP (John Miller) writes: || In article <6540@linus.UUCP| gwr@linus.UUCP (Gordon W. Ross) writes: || |I have a program which was written in DeSmet C but need to compile it || |with a standard C compiler. DeSmet C seems to have a Dollar sign in || |place of every left curly bracket, .... || || This article seems very similar to one that appeared a few months ago, || when someone was trying to convert a mangled DeSmet C file. || | |I agree with this much except .... | || DeSmet C syntax ** IS ** standard C syntax. ^^^^^^ | |there are some subtle differences in the dialect of DeSmet C and what |is normally referred to as "standard C". The specific example that |usually plagues me is that the buffered i/o routines, fopen, etc. use |an integer for FILE instead of a FILE * to designate the file number. |Actually, you can use FILE * because it is guaranteed to be large enough |to hold the pointer and is in fact the same size (16 bits) in the original |version of the compiler. This is either because Mark DeSmet followed the |method used by Leor Zolman (author of BDS C) or maybe read the same |document that Leor says prompted him to use integers instead of pointers |for buffered file handles. The above has nothing to do with SYNTAX. The syntax of DeSmet C is probably quite standard.