scan: New library for high-level PSPP syntax lexical analysis.
[pspp-builds.git] / src / libpspp / msg-locator.h
1 /* PSPP - a program for statistical analysis.
2    Copyright (C) 1997-9, 2000, 2006 Free Software Foundation, Inc.
3
4    This program is free software: you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation, either version 3 of the License, or
7    (at your option) any later version.
8
9    This program is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU General Public License for more details.
13
14    You should have received a copy of the GNU General Public License
15    along with this program.  If not, see <http://www.gnu.org/licenses/>. */
16
17 struct msg_locator ;
18
19 void msg_locator_done (void);
20
21 /* File locator stack functions. */
22
23 /* Pushes F onto the stack of file locations. */
24 void msg_push_msg_locator (const struct msg_locator *loc);
25
26 /* Pops F off the stack of file locations.
27    Argument F is only used for verification that that is actually the
28    item on top of the stack. */
29 void msg_pop_msg_locator (const struct msg_locator *loc);
30
31 struct source_stream ;
32 /* Puts the current file and line number into LOC, or NULL and -1 if
33    none. */
34 void get_msg_location (const struct source_stream *ss, struct msg_locator *loc);