1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 13:09:22 +00:00

Move Keyword_List inline methods to a .icc file.

This commit is contained in:
Bruno Haible
2002-12-17 10:55:49 +00:00
parent 21cd7bfd24
commit 2f967d81fb
5 changed files with 81 additions and 5 deletions

View File

@@ -35,9 +35,9 @@ public:
Keyword_List (Keyword *car);
/* Access to first element of list. */
Keyword * first () { return _car; }
Keyword * first ();
/* Access to next element of list. */
Keyword_List *& rest () { return _cdr; }
Keyword_List *& rest ();
protected:
Keyword_List * _cdr;
@@ -52,9 +52,17 @@ public:
KeywordExt_List (KeywordExt *car);
/* Access to first element of list. */
KeywordExt * first () { return static_cast<KeywordExt*>(_car); }
KeywordExt * first ();
/* Access to next element of list. */
KeywordExt_List *& rest () { return static_cast<KeywordExt_List*>(_cdr); }
KeywordExt_List *& rest ();
};
#ifdef __OPTIMIZE__
#define INLINE inline
#include "keyword-list.icc"
#undef INLINE
#endif
#endif