1 /* Inline Functions for read-line.{h,cc}.
3 Copyright (C) 1989-1998 Free Software Foundation, Inc.
4 written by Douglas C. Schmidt (schmidt@ics.uci.edu)
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 1, 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 GNU GPERF; see the file COPYING. If not, write to the Free
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111, USA. */
26 /* Returns the ``next'' line, ignoring comments beginning with '#'. */
28 Read_Line::get_line (void)
30 T (Trace t ("Read_Line::get_line");)
33 while ((c = getc (fp)) == '#')
35 while (c = getc (fp), c != EOF && c != '\n')
46 return readln_aux (0);