manpagez: man pages & more
info gperf
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.3 Options to specify the Language for the Output Code

These options are also available as declarations in the input file (see section Gperf Declarations).

-L generated-language-name
--language=generated-language-name

Instructs gperf to generate code in the language specified by the option's argument. Languages handled are currently:

KR-C

Old-style K&R C. This language is understood by old-style C compilers and ANSI C compilers, but ANSI C compilers may flag warnings (or even errors) because of lacking ‘const’.

C

Common C. This language is understood by ANSI C compilers, and also by old-style C compilers, provided that you #define const to empty for compilers which don't know about this keyword.

ANSI-C

ANSI C. This language is understood by ANSI C compilers and C++ compilers.

C++

C++. This language is understood by C++ compilers.

The default is C.

-a

This option is supported for compatibility with previous releases of gperf. It does not do anything.

-g

This option is supported for compatibility with previous releases of gperf. It does not do anything.


© manpagez.com 2000-2024
Individual documents may contain additional copyright information.