/* Implementation of helping functions for lexers that use a nested, underlying lexer. */ /* Copyright (C) 1997 Andrew McCallum Written by: Andrew Kachites McCallum This file is part of the Bag-Of-Words Library, `libbow'. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation, version 2. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA */ #include #define SELF ((ifile_lexer_indirect*)self) /* Open the underlying lexer. */ ifile_lex * ifile_lexer_indirect_open_text_fp (ifile_lexer *self, FILE *fp) { return SELF->underlying_lexer->open_text_fp (self, fp); } /* Close the underlying lexer. */ void ifile_lexer_indirect_close (ifile_lexer *self, ifile_lex *lex) { SELF->underlying_lexer->close (self, lex); }