BSD 2.11 - man page for shortc (bsd section 1)
|Linux & Unix Commands - Search Man Pages
shortc - generate short preprocessor definitions for long C identifiers
shortc [ -symlen ] [ -p ] [ -s ] file ...
Shortc searches for instances of long identifiers in the specified files. In its normal
mode of operation shortc generates a list of preprocessor definitions that are unique in
their first seven characters.
The shortc output is then included into each file (or a common header file) which is pro-
cessed using a flexnames version of cpp.
If no files are given shortc reads from the standard input.
The symlen argument may be used to change the default long identifier length from seven
The -s option generates a sed script instead of preprocessor definitions. The -p option
causes shortc to parse preprocessor lines. These options are most useful together when
flexnames support is not available from cpp.
When using cpp, preprocessor symbols must be weeded out by hand. Otherwise they will
cause (innocuous) redefinition messages.
The -p option will incorrectly parse include file names which must be removed by hand from
3rd Berkeley Distribution September 5, 1988 SHORTC(1)
All times are GMT -4. The time now is 10:22 AM.