[comp.lang.c] Undocumented option in Xenix C

tony@ajfcal.UUCP (Tony Field) (02/01/89)

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