/* readval.h * Routines to read a prefix or number from the current input file * Copyright (C) 1991-2003,2005,2010,2012,2013 Olly Betts * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ extern int root_depr_count; enum { /* Can the prefix be omitted? */ PFX_OPT = 1, /* Read a survey? */ PFX_SURVEY = 2, /* Make implicit checks */ PFX_SUSPECT_TYPO = 4, /* Can the deprecated "root" be used? */ PFX_ALLOW_ROOT = 8, /* Warn if the read prefix contains a separator? */ PFX_WARN_SEPARATOR = 16, /* Anonymous stations OK? */ PFX_ANON = 32, /* Read a station? */ PFX_STATION = 0 }; prefix *read_prefix(unsigned flags); real read_numeric(bool f_optional, int *p_n_readings); real read_numeric_or_omit(int *p_n_readings); unsigned int read_uint(void); void read_string(char **pstr, int *plen); void read_date(int *py, int *pm, int *pd);