source: git/src/datain.h @ 7f4a756

RELEASE/1.1RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-datawalls-data-hanging-as-warning
Last change on this file since 7f4a756 was fa42426, checked in by Olly Betts <olly@…>, 22 years ago

aven: cleaned up plotting of crosses, special points, and highlighted points;
measuring line now snaps to the nearest point to the mouse pointer, not just
*a* point near the mouse pointer.

printps/printhpgl: Fixed --skip-blanks which would incorrectly skip non-blank
pages on rare occasions.

cavern: implemented "*units clino percent".

cavern: added error if the *units factor is zero (e.g. "*units tape 0 feet").

cavern: removed the ill-thought-out and never implemented LENGTHOUTPUT
and ANGLEOUTPUT quantities.

(Unix version): uninstalled binaries now use the path they are run with to
find support files, which means SURVEXHOME is no longer required, and has
been removed.

Rearranged messages a little to remove a few cavern messages in the middle
of the aven ones.

Removed a few needless inclusions of header files, and unused #define-s.

compile_error_skip() added to do compile_error() then skipline().

git-svn-id: file:///home/survex-svn/survex/trunk@1926 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/* datain.h
2 * Header file for code that...
3 * Reads in survey files, dealing with special characters, keywords & data
4 * Copyright (C) 1994-2002 Olly Betts
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 */
20
21#ifdef HAVE_SETJMP_H
22# include <setjmp.h>
23#endif
24
25#include <stdio.h> /* for FILE */
26
27typedef struct parse {
28   FILE *fh;
29   const char *filename;
30   unsigned int line;
31   bool reported_where;
32   struct parse *parent;
33#ifdef HAVE_SETJMP_H
34   jmp_buf jbSkipLine;
35#endif
36} parse;
37
38extern int ch;
39extern parse file;
40extern bool f_export_ok;
41
42#define nextch() (ch = getc(file.fh))
43
44typedef struct {
45   long offset;
46   int ch;
47} filepos;
48
49void get_pos(filepos *fp);
50void set_pos(const filepos *fp);
51
52void skipblanks(void);
53
54/* reads complete data file */
55void data_file(const char *pth, const char *fnm);
56
57void skipline(void);
58
59/* style functions */
60int data_normal(void);
61int data_cartesian(void);
62int data_cylpolar(void);
63int data_nosurvey(void);
64int data_ignore(void);
65
66void compile_warning(int en, ...);
67void compile_error(int en, ...);
68void compile_error_skip(int en, ...);
69
70void compile_error_token(int en);
Note: See TracBrowser for help on using the repository browser.