1 /* Inline Functions for keyword-list.{h,cc}.
3 Copyright (C) 2002-2003 Free Software Foundation, Inc.
4 Written by Bruno Haible <bruno@clisp.org>.
6 This file is part of GNU GPERF.
8 GNU GPERF is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
13 GNU GPERF is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; see the file COPYING.
20 If not, write to the Free Software Foundation, Inc.,
21 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
23 /* -------------------------- Keyword_List class --------------------------- */
25 /* Access to first element of list. */
27 Keyword_List::first () const
32 /* Access to next element of list. */
33 INLINE Keyword_List *&
39 /* ------------------------- KeywordExt_List class ------------------------- */
41 /* Access to first element of list. */
43 KeywordExt_List::first () const
45 return static_cast<KeywordExt*>(_car);
48 /* Access to next element of list. */
49 INLINE KeywordExt_List *&
50 KeywordExt_List::rest ()
52 return *reinterpret_cast<KeywordExt_List**>(&_cdr);