diff options
author | Bruno Haible <bruno@clisp.org> | 2003-02-10 14:21:58 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2003-02-10 14:21:58 +0000 |
commit | 6202aaadb1a2904f456c2ee55623bf4a1a951ad7 (patch) | |
tree | 756e087bf915a628623eb1745ea6e1861beca3d9 /src/options.icc | |
parent | ef37a53d732206d047aad6ffffa9ea88b1dbb2c3 (diff) | |
download | gperf-6202aaadb1a2904f456c2ee55623bf4a1a951ad7.tar.gz |
Implement % declarations.
Diffstat (limited to 'src/options.icc')
-rw-r--r-- | src/options.icc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/options.icc b/src/options.icc index d4069f6..5b7e9b1 100644 --- a/src/options.icc +++ b/src/options.icc @@ -125,6 +125,13 @@ Options::operator[] (Option_Type option) const return _option_word & option; } +/* Sets a given boolean option. */ +INLINE void +Options::set (Option_Type option) +{ + _option_word |= option; +} + /* Returns the input file name. */ INLINE const char * Options::get_input_file_name () const @@ -190,9 +197,9 @@ Options::get_function_name () const /* Returns the keyword key name. */ INLINE const char * -Options::get_key_name () const +Options::get_slot_name () const { - return _key_name; + return _slot_name; } /* Returns the struct initializer suffix. */ |