source: git/src/commands.h @ dc50d0d

walls-datawalls-data-hanging-as-warning
Last change on this file since dc50d0d was 5d59477, checked in by Olly Betts <olly@…>, 16 months ago

Pick suitable level separator and store in .3d file

This is a step towards addressing the situations raised in
https://github.com/ojwb/survex/pull/4 and
https://github.com/ojwb/survex/pull/5

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/* commands.h
2 * Header file for code for directives
3 * Copyright (C) 1994-2024 Olly Betts
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18 */
19
20int get_length_units(int quantity);
21int get_angle_units(int quantity);
22
23extern const real factor_tab[];
24extern const int units_to_msgno[];
25
26#define get_units_factor(U) (factor_tab[(U)])
27#define get_units_string(U) (msg(units_to_msgno[(U)]))
28
29void handle_command(void);
30void default_all(settings *s);
31
32void default_units(settings *s);
33void default_calib(settings *s);
34
35void pop_settings(void);
36void invalidate_pj_cached(void);
37void report_declination(settings *p);
38void set_declination_location(real x, real y, real z, const char *proj_str);
39
40void copy_on_write_meta(settings *s);
41
42extern char *buffer;
43void get_token(void);
44void get_token_no_blanks(void);
45
46typedef struct { const char *sz; int tok; } sztok;
47int match_tok(const sztok *tab, int tab_size);
48
49#define TABSIZE(T) ((sizeof(T) / sizeof(sztok)) - 1)
50
51void scan_compass_station_name(prefix *stn);
52void update_output_separator(void);
Note: See TracBrowser for help on using the repository browser.