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 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284
|
/*
* THE - The Hessling Editor. A text editor similar to VM/CMS xedit.
* Copyright (C) 1991-2001 Mark Hessling
*
* 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 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.
* 675 Mass Ave,
* Cambridge, MA 02139 USA.
*
*
* If you make modifications to this software that you feel increases
* it usefulness for the rest of the community, please email the
* changes, enhancements, bug fixes as well as any and all ideas to me.
* This software is going to be maintained and enhanced as deemed
* necessary by the community.
*
* Mark Hessling, M.Hessling@qut.edu.au http://www.lightlink.com/hessling/
*/
/*
$Id: vars.h,v 1.19 2002/08/13 09:11:47 mark Exp $
*/
/* Please, include the.h first. */
/* commset1.c */
extern the_header_mapping thm[];
/* commset2.c */
extern bool rexx_output;
/* commutil.c */
extern CHARTYPE _THE_FAR last_command_for_reexecute[MAX_COMMAND_LENGTH],
_THE_FAR last_command_for_repeat[MAX_COMMAND_LENGTH],
*temp_cmd;
extern DEFINE *first_define,
*last_define,
*first_mouse_define,
*last_mouse_define,
*first_synonym,
*last_synonym;
extern bool clear_command;
extern LINE *key_first_line,
*key_last_line;
extern LINETYPE key_number_lines;
extern AREAS valid_areas[ATTR_MAX];
/* default.c */
extern bool BEEPx,
CAPREXXOUTx,
BIRTHDAYx,
CLEARSCREENx,
CLOCKx,
HEXDISPLAYx,
INSERTMODEx,
LINEND_STATUSx,
REPROFILEx,
TYPEAHEADx,
scroll_cursor_stay,
MOUSEx,
SLKx,
SBx,
UNTAAx,
READONLYx,
PAGEWRAPx,
FILETABSx,
CTLCHARx;
extern CHARTYPE CMDARROWSTABCMDx,
EOLx,
INTERFACEx,
LINEND_VALUEx,
NONDISPx,
PREFIXx,
TABI_ONx,
TABI_Nx,
EQUIVCHARx,
EQUIVCHARstr[2];
extern LINETYPE CAPREXXMAXx;
extern ROWTYPE STATUSLINEx;
extern int DEFSORTx,
DIRORDERx,
CLEARERRORKEYx,
TARGETSAVEx,
REGEXPx,
popup_escape_key;
extern PARSER_DETAILS *first_parser,
*last_parser;
extern PARSER_MAPPING *first_parser_mapping,
*last_parser_mapping;
extern CHARTYPE ctlchar_escape;
extern COLOUR_ATTR ctlchar_attr[MAX_CTLCHARS];
extern CHARTYPE ctlchar_char[MAX_CTLCHARS];
extern struct regexp_syntax regexp_syntaxes[];
/* edit.c */
extern bool prefix_changed;
/* error.c */
extern CHARTYPE *last_message;
extern int last_message_length;
/* mygetopt.c */
extern char *optarg;
extern int opterr,
optind;
/* prefix.c */
extern LINE *first_prefix_synonym;
extern LINETYPE prefix_current_line;
extern bool in_prefix_macro;
/* query.c */
extern VALUE item_values[MAX_VARIABLES_RETURNED];
/* mouse.c */
#if defined(NCURSES_MOUSE_VERSION)
extern MEVENT ncurses_mouse_event;
#endif
/* rexx.c */
extern LINE *rexxout_first_line,
*rexxout_last_line,
*rexxout_curr;
extern LINETYPE rexxout_number_lines;
extern QUERY_ITEM _THE_FAR query_item[];
extern QUERY_ITEM _THE_FAR function_item[];
/* the.c */
extern SCREEN_DETAILS screen[MAX_SCREENS];
extern short screen_rows[MAX_SCREENS];
extern WINDOW *statarea,
*error_window,
*divider,
*filetabs;
extern VIEW_DETAILS *vd_current,
*vd_first,
*vd_last,
*vd_mark,
*filetabs_start_view;
extern LINETYPE number_of_files;
extern CHARTYPE number_of_views,
display_screens,
current_screen;
extern SCREEN_DETAILS screen[MAX_SCREENS];
extern bool rexx_support,
batch_only,
horizontal,
first_screen_display;
extern short save_coord_x[VIEW_WINDOWS],
save_coord_y[VIEW_WINDOWS];
extern LINE *next_line,
*curr_line,
*first_file_name,
*current_file_name,
*editv,
*first_option,
*last_option;
extern bool error_on_screen,
colour_support,
initial,
been_interactive;
extern CHARTYPE *rec;
extern LENGTHTYPE rec_len;
extern CHARTYPE *trec;
extern LENGTHTYPE trec_len;
extern LENGTHTYPE max_trec_len;
extern CHARTYPE *brec;
extern LENGTHTYPE brec_len;
extern CHARTYPE *cmd_rec;
extern unsigned short cmd_rec_len;
extern CHARTYPE *pre_rec;
extern unsigned short pre_rec_len;
extern CHARTYPE *profile_command_line,
*target_buffer;
extern unsigned short target_buffer_len;
extern bool focus_changed,
current_changed,
in_profile,
in_nomsg,
in_reprofile;
extern int profile_file_executions;
extern bool execute_profile,
in_macro,
in_repeat,
in_readv,
file_read,
curses_started,
readonly,
be_quiet;
extern CHARTYPE *the_version,
*the_release,
*the_copyright,
term_name[20],
*tempfilename;
#if defined(UNIX)
extern CHARTYPE user_home_dir[MAX_FILE_NAME+1];
#endif
#if !defined(MULTIPLE_PSEUDO_FILES)
extern CHARTYPE *rexxoutname,
*keyfilename,
_THE_FAR rexx_pathname[MAX_FILE_NAME+1],
rexx_filename[10],
*dirfilename;
#endif
extern CHARTYPE _THE_FAR xterm_program[MAX_FILE_NAME+1],
macro_suffix[12];
#if !defined(MULTIPLE_PSEUDO_FILES)
extern CHARTYPE _THE_FAR dir_pathname[MAX_FILE_NAME+1],
dir_filename[10],
_THE_FAR key_pathname[MAX_FILE_NAME+1],
key_filename[15];
#endif
extern CHARTYPE _THE_FAR curr_path[MAX_FILE_NAME+1],
_THE_FAR sp_path[MAX_FILE_NAME+1],
_THE_FAR sp_fname[MAX_FILE_NAME+1],
_THE_FAR dir_path[MAX_FILE_NAME+1],
_THE_FAR dir_files[MAX_FILE_NAME+1],
_THE_FAR rexx_macro_name[MAX_FILE_NAME+1],
_THE_FAR rexx_macro_parameters[MAX_FILE_NAME+1],
_THE_FAR the_home_dir[MAX_FILE_NAME+1],
_THE_FAR the_help_file[MAX_FILE_NAME+1],
_THE_FAR the_macro_path[MAX_FILE_NAME+1],
_THE_FAR the_macro_path_buf[MAX_FILE_NAME+1],
**the_macro_dir;
extern int max_macro_dirs,
total_macro_dirs;
extern CHARTYPE *prf_arg,
*local_prf,
*specified_prf,
tabkey_insert,
tabkey_overwrite;
extern unsigned short file_start;
extern CHARTYPE _THE_FAR spooler_name[MAX_FILE_NAME+1];
extern struct stat stat_buf;
extern LENGTHTYPE display_length;
extern short lastrc,
compatible_look,
compatible_feel,
compatible_keys,
prefix_width,
prefix_gap;
extern chtype etmode_table[256];
extern bool etmode_flag[256];
extern short terminal_lines,
terminal_cols;
extern LINETYPE original_screen_line,
original_screen_column,
original_file_line,
original_file_column,
startup_line;
extern LENGTHTYPE startup_column;
#ifdef XCURSES
extern char *XCursesProgramName;
#endif
extern CHARTYPE *linebuf;
extern chtype *linebufch;
extern int lastkeys[8],
current_key;
#ifdef WIN32
extern bool StartedPrinter;
#endif
#if defined(SIGWINCH) && defined(USE_NCURSES)
extern bool ncurses_screen_resized;
#endif
extern int max_slk_labels;
extern bool single_instance_server;
#ifdef THE_SINGLE_INSTANCE_ENABLED
extern int fifo_fd;
extern CHARTYPE fifo_name[MAX_FILE_NAME+1];
#endif
extern LASTOP lastop[LASTOP_MAX];
|