www.delorie.com/gnu/docs/gperf/gperf_16.html   search  
 
Buy GNU books!


Perfect Hash Function Generator

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.2 Options to specify the Language for the Output Code

`-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.


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003