Xref: utzoo comp.unix.xenix:4782 comp.lang.c:15976 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!nrl-cmf!ukma!cwjcc!tut.cis.ohio-state.edu!rutgers!att!alberta!calgary!xenlink!ajfcal!tony From: tony@ajfcal.UUCP (Tony Field) Newsgroups: comp.unix.xenix,comp.lang.c Subject: Undocumented option in Xenix C Keywords: unsigned char, function prototypes Message-ID: <41@ajfcal.UUCP> Date: 1 Feb 89 09:07:17 GMT Organization: Co-Design Systems, Calgary, Alberta, Canada Lines: 25 SCO does not bother to document many useful cc options. The Xenix C (development system 2.2) option set is "largely" Microsoft C version 4/5 compatible. Amongst the more useful of the undocumented are: -J All char's are to be treated as "unsigned char" (This is handy when porting much public domain stuff, like TeX). -Zg Generate function prototypes. The generated prototypes are Msdos Microsoft C version 4 compatible (not STD C or MSC V5 compatible). To generate the prototypes, I use the following shell script: echo "/* ----- $1 ------- */" >>proto.h cc -Zg -DXENIX $1 >>proto.h which allows me to concatenate prototypes from a series of routines into a single header file. tony... -- +------------------------------------ | Tony Field ..alberta!calgary!ajfcal!tony | Co-Design Information Systems Ltd. | Calgary, Alberta, Canada voice: (403) 266-3239