No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / groff / src / preproc / html / pushback.h
blob83a9fe409424edbd8ec3c9cd816faaefd9b55da4
1 /* $NetBSD$ */
3 // -*- C -*-
4 /* Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
5 Written by Gaius Mulley (gaius@glam.ac.uk).
7 This file is part of groff.
9 groff is free software; you can redistribute it and/or modify it under
10 the terms of the GNU General Public License as published by the Free
11 Software Foundation; either version 2, or (at your option) any later
12 version.
14 groff is distributed in the hope that it will be useful, but WITHOUT ANY
15 WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 for more details.
19 You should have received a copy of the GNU General Public License along
20 with groff; see the file COPYING. If not, write to the Free Software
21 Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA. */
24 #define eof (char)-1
28 * defines the class and methods implemented within pushback.cpp
31 class pushBackBuffer
33 private:
34 char *charStack;
35 int stackPtr; /* index to push back stack */
36 int debug;
37 int verbose;
38 int eofFound;
39 char *fileName;
40 int lineNo;
41 int stdIn;
43 public:
44 pushBackBuffer (char *);
45 ~ pushBackBuffer ();
46 char getPB (void);
47 char putPB (char ch);
48 void skipUntilToken (void);
49 void skipToNewline (void);
50 double readNumber (void);
51 int readInt (void);
52 char *readString (void);
53 int isString (const char *string);