integer types, sys calls, and stdio
Stanley Friesen
friesen at psivax.UUCP
Sat Feb 2 03:54:03 AEST 1985
Whitesmith has come up with a series of defined types
which can be used to increase portibility if they are used regularly.
They are defined in an include file "std.h" which can be adjusted
to each machines oddities. The types, and intended meanings are:
LONG a 32 bit signed integer(quantity)
ULONG a 32 bit unsigned quantity
LBITS a 32 bit set(i.e to be used as a set of individual bits)
COUNT a 16 bit signed quantity
UCOUNT a 16 bit unsigned quantity
BITS 16 individual bits
TEXT a byte for holding actual characters
TINY an 8 bit signed quantity
UTINY an 8 bit unsigned quantity
TBITS 8 individual bits
METACH an extended byte to hold augmented characters
ARGINT an indefinate integer type for parameters
VOID generic function type
BYTES unsigned quatity sufficient to hold a 'sizeof' result
FILE a quanttiy to hold file numbers
FIO a structure for buffered I/O calls
The only problem with this is the incompatibility with stdio
caused by the last items, especially since the FIO type is
not conformable with the stdio FILE type. I have there for
modified the std.h that I use to make FIO the equivalent of
stdio FILE, thus allowing me to use that package.
--
Sarima (Stanley Friesen)
{trwrb|allegra|cbosgd|hplabs|ihnp4|aero!uscvax!akgua}!sdcrdcf!psivax!friesen
or
quad1!psivax!friesen
More information about the Comp.lang.c
mailing list