ic(1int)
NAME
ic − compiler for language support database
SYNTAX
ic [ −D name=def ] [ −U name ] [ I dir ] [ −v ] [ −o output ] [ source ]
DESCRIPTION
The command ic generates the binary international database from the database language source file. It either accepts its input from the file source or from the standard input, if a source is not specified.
The name of the output file is the name of the CODESET in the source file or the name given with the −o option.
OPTIONS
−DDefines name to the C preprocessor, as if #define name had been typed at the head of a source file. If no definition is given, name is defined as 1.
−URemoves any initial preprocessor definition of name.
−ISearches for #include files in the named directory.
−oNames the ic output file output. The default is obtained from the CODESET name in the source file.
−vGives statistics on the number of simple and double letters, the number of tables in the source and the size of the generated binary file.
EXAMPLE
In the following example the ic command compiles the file GER_CH.8859 in the current directory leaving the resulting file in the current directory:
ic −v GER_CH.8859
The following information is output to stderr:
INTLINFO database GER_CH.8859:
257 code table entries (256 simple/1 multi-byte).
1 property table(s).
1 collation table(s).
1 string table(s).
3 conversion tables: toascii, tolower, toupper.
5051 bytes total length.
ERRORS
There are four types of error message from the ic compiler:
warning The compiler has detected some kind of problem which has a high probability of being an error but could be what the user wanted and has no adverse effect on the correctness of the binary file.
error nn The compiler has detected an error severe enough to inhibit the generation of a correct binary file.
fatal error The compiler has detected an error which makes it impossible to proceed with the compilation. This error most often occurs during compilation of the code table.
fatal bug This occurs when there are internal errors in the compiler. For example, this is generally produced when an incompatible source file is given as an input to ic.
DIAGNOSTICS
The international compiler returns zero exit status for successful compilation; nonzero is returned if errors were encountered that made it impossible to generate a binary file.
FILES
/tmp/icXXXXXX Temporary files
/lib/cpp C preprocessor