File: basic.h

package info (click to toggle)
oleo 1.6-16
  • links: PTS
  • area: main
  • in suites: potato
  • size: 2,640 kB
  • ctags: 3,139
  • sloc: ansic: 39,221; yacc: 1,737; sh: 362; makefile: 88
file content (202 lines) | stat: -rw-r--r-- 6,905 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
#ifndef BASICH
#define BASICH

/*	Copyright (C) 1993 Free Software Foundation, Inc.

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, 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 software; see the file COPYING.  If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
/*  t. lord	Sat Jan 23 05:11:14 1993	*/



enum motion_magic
{
  magic_up = 0,
  magic_down = 1,
  magic_right = 2,
  magic_left = 3,
  magic_up_right = 4,
  magic_up_left = 5,
  magic_down_right = 6,
  magic_down_left = 7,
  magic_no_motion = 8
};

extern const int colmagic[9];
extern  const int rowmagic[9];
extern char * motion_name[9];
extern enum motion_magic complementary_motion[9];
extern enum motion_magic opposite_motion[9];

#if PROTOTYPES
extern void noop (void);
extern void insert_row (int repeat);
extern void insert_col (int repeat);
extern void delete_row (int repeat);
extern void delete_col (int repeat);
extern void open_window (char *text);
extern void hsplit_window (void);
extern void vsplit_window (void);
extern void close_window (char *text);
extern void delete_window (void);
extern void delete_other_windows (void);
extern void nicely_goto_window (int n);
extern void goto_minibuffer (void);
extern void goto_window (char *text);
extern void other_window (void);
extern int set_window_option (int set_opt, char *text);
extern void show_window_options (void);
extern void recenter_window (void);
extern void suspend_oleo (void);
extern void recalculate (int all);
extern void kill_oleo (void);
extern void kill_all_cmd (void);
extern void redraw_screen (void);
extern void shift_cell_cursor (int dir, int repeat);
extern void scroll_cell_cursor (int dir, int repeat);
extern void goto_region (struct rng *r);
extern void goto_cell (struct rng * rng);
extern void exchange_point_and_mark (int clrmk);
extern void upper_left (void);
extern void lower_left (void);
extern void upper_right (void);
extern void lower_right (void);
extern void mark_cell_cmd (int popmk);
extern void unmark_cmd (void);
extern void do_mouse_goto (void);
extern void do_mouse_mark (void);
extern void do_mouse_mark_and_goto (void);
extern void do_mouse_cmd (void (*fn) ());
extern void mouse_mark_cmd (void);
extern void mouse_goto_cmd (void);
extern void mouse_mark_and_goto_cmd (void);
extern void kill_cell_cmd (void);
extern void sort_region_cmd (char *ptr);
extern void imove (struct rng * rng, int ch);
extern void inc_direction (int count, int page_rule, int hack_magic);
extern void beginning_of_row (int count);
extern void end_of_row (int count);
extern void beginning_of_col (int count);
extern void end_of_col (int count);
extern void scan_cell_cursor (int magic, int count);
extern void edit_cell (char * new_formula);
extern void set_region_formula (struct rng * rng, char * str);
extern void goto_edit_cell (int c);
extern void read_cmds_cmd (FILE *fp);
extern void read_file_and_run_hooks (FILE * fp, int ismerge, char * name);
extern void toggle_load_hooks (int turn_on);
extern void write_cmd (FILE *fp, char * name);
extern void read_cmd (FILE *fp, char * name);
extern void read_merge_cmd (FILE *fp);
extern void write_reg_cmd (FILE *fp, struct rng *rng);
extern void set_region_height (struct rng * rng, char * height);
extern void set_region_width (struct rng * rng, char * width);
extern void set_region_protection (struct rng * rng, int prot);
extern void set_region_alignment (struct rng * rng, int align);
extern void set_region_format (struct rng * rng, int fmt);
extern void set_def_height (char * height);
extern void set_def_width (char * width);
extern void set_def_protection (int prot);
extern void set_def_alignment (int align);
extern void set_def_format (int fmt);
extern void set_def_font (void);
extern void define_usr_fmt (int fmt, char * pos_h, char * neg_h, char * pos_t,
		char * neg_t, char * zero, char * comma, char * decimal,
		char * precision, char * scale);
extern void set_auto_direction (enum motion_magic magic);
extern void auto_move (void);
extern void auto_next_set (void);
extern void recompile_spreadsheet (void);
#else
extern void noop ();
extern void insert_row ();
extern void insert_col ();
extern void delete_row ();
extern void delete_col ();
extern void open_window ();
extern void hsplit_window ();
extern void vsplit_window ();
extern void close_window ();
extern void delete_window ();
extern void delete_other_windows ();
extern void nicely_goto_window ();
extern void goto_minibuffer ();
extern void goto_window ();
extern void other_window ();
extern int set_window_option ();
extern void show_window_options ();
extern void recenter_window ();
extern void suspend_oleo ();
extern void recalculate ();
extern void kill_oleo ();
extern void kill_all_cmd ();
extern void redraw_screen ();
extern void shift_cell_cursor ();
extern void scroll_cell_cursor ();
extern void goto_region ();
extern void goto_cell ();
extern void exchange_point_and_mark ();
extern void upper_left ();
extern void lower_left ();
extern void upper_right ();
extern void lower_right ();
extern void mark_cell_cmd ();
extern void unmark_cmd ();
extern void do_mouse_goto ();
extern void do_mouse_mark ();
extern void do_mouse_mark_and_goto ();
extern void do_mouse_cmd ();
extern void mouse_mark_cmd ();
extern void mouse_goto_cmd ();
extern void mouse_mark_and_goto_cmd ();
extern void kill_cell_cmd ();
extern void sort_region_cmd ();
extern void imove ();
extern void inc_direction ();
extern void beginning_of_row ();
extern void end_of_row ();
extern void beginning_of_col ();
extern void end_of_col ();
extern void scan_cell_cursor ();
extern void edit_cell ();
extern void set_region_formula ();
extern void goto_edit_cell ();
extern void read_cmds_cmd ();
extern void read_file_and_run_hooks ();
extern void toggle_load_hooks ();
extern void write_cmd ();
extern void read_cmd ();
extern void read_merge_cmd ();
extern void write_reg_cmd ();
extern void set_region_height ();
extern void set_region_width ();
extern void set_region_protection ();
extern void set_region_alignment ();
extern void set_region_format ();
extern void set_def_height ();
extern void set_def_width ();
extern void set_def_protection ();
extern void set_def_alignment ();
extern void set_def_format ();
extern void set_def_font ();
extern void define_usr_fmt ();
extern void set_auto_direction ();
extern void auto_move ();
extern void auto_next_set ();
extern void recompile_spreadsheet ();
#endif

#endif  /* BASICH */