C Preprocessor
The C language preprocessor is run on all input files before they are compiled, making all preprocessor directives within a .x file legal. Four symbols can be defined, depending upon which output file is generated.
The symbols and their uses are:
Item | Description |
---|---|
RPC_HDR | Represents header file output. |
RPC_XDR | Represents XDR routine output. |
RPC_SVC | Represents server skeleton output. |
RPC_CLNT | Represents client stub output. |
The rpcgen compiler also does some preprocessing. Any line that begins with a % (percent sign) is passed directly into the output file without an interpretation of the line. Use of the percent feature is not generally recommended, since there is no guarantee that the compiler will put the output where it is intended.