8bf8109ba4d531c9ebe885ae6e42479f98e8d746
[pspp-builds.git] / src / language / data-io / placement-parser.h
1 /* PSPP - computes sample statistics.
2    Copyright (C) 2006 Free Software Foundation, Inc.
3
4    This program is free software; you can redistribute it and/or
5    modify it under the terms of the GNU General Public License as
6    published by the Free Software Foundation; either version 2 of the
7    License, or (at your option) any later version.
8
9    This program is distributed in the hope that it will be useful, but
10    WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12    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, write to the Free Software
16    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17    02110-1301, USA. */
18
19 #ifndef LANGUAGE_DATA_IO_PLACEMENT_PARSER_H
20 #define LANGUAGE_DATA_IO_PLACEMENT_PARSER_H 1
21
22 #include <stdbool.h>
23 #include <stddef.h>
24
25 struct fmt_spec;
26 struct pool;
27 struct lexer;
28
29 bool parse_record_placement (struct lexer *, int *record, int *column);
30 bool parse_var_placements (struct lexer *, struct pool *, size_t var_cnt, bool for_input,
31                            struct fmt_spec **, size_t *format_cnt);
32 bool execute_placement_format (const struct fmt_spec *,
33                                int *record, int *column);
34 bool parse_column_range (struct lexer *, int *first_column, int *last_column,
35                          bool *range_specified);
36
37 #endif /* language/data-io/placement-parser.h */