These options are also available as declarations in the input file
(see section 4.1.1.2 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 ANSI-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.