2 * LIBC.C - Test C file for DICE to process into Rune prototypes
4 * Interfacing to C code is a two-pass process. The DICE DCC is
5 * used to generate function prototypes based on the includes,
6 * and main() is run to generate constants and other random stuff.
10 * Pull genprint.h in first if generating constants in order to catch
11 * missing includes/prototypes required for libsupport (libsupport/genprint.h
12 * is supposed to be self-contained when DDC_GEN is specified so any problems
13 * must be fixed there).
16 #include <libsupport/genprint.h>
20 * Headers to pull prototypes out of (automatic)
22 #include <sys/types.h>
33 * Generate constants and other interfacing necessities (manual).
38 main(int ac, char **av)
41 FmtConstIntD(SEEK_SET);
42 FmtConstIntD(SEEK_END);
43 FmtConstIntD(SEEK_CUR);