1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
/* Implementation of helping functions for lexers that use a nested,
underlying lexer. */
/* Copyright (C) 1997 Andrew McCallum
Written by: Andrew Kachites McCallum <mccallum@cs.cmu.edu>
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 <ifile.h>
#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);
}
|