home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
editors
/
tde150.arj
/
TDEFUNC.H
< prev
next >
Wrap
Text File
|
1992-04-01
|
11KB
|
320 lines
/*
* New editor name: tde, the Thomson-Davis Editor.
* Author: Frank Davis
* Date: June 5, 1991
*
* This modification of Douglas Thomson's code is released into the
* public domain, Frank Davis. You may distribute it freely.
*
* This file contains all prototypes for every function in tde. It should
* be included in every source code module.
*/
/************************* function prototypes in block.c *************/
void mark_block( WINDOW * );
void unmark_block( WINDOW * );
void restore_marked_block( WINDOW *, int );
int prepare_block( WINDOW *, text_ptr, int, int );
void pad_dest_line( WINDOW *, file_infos *, text_ptr );
void move_copy_delete_overlay_block( WINDOW * );
void load_box_buff( char *, text_ptr, int, int );
int copy_buff_2file( WINDOW *, char *, text_ptr, int, int, int );
void block_fill( char *, int, int );
void number_block_buff( char *, int, long, int );
void restore_start_end( file_infos *, file_infos *, long, long, int );
void restore_cursors( file_infos *, file_infos * );
void delete_box_block( WINDOW *, text_ptr, int, int, int );
void check_block( void );
void find_begblock( file_infos * );
void find_endblock( file_infos * );
void block_write( WINDOW * );
void block_print( WINDOW * );
int get_block_fill_char( WINDOW *, int * );
int get_block_numbers( WINDOW *, long *, long *, int * );
void block_expand_tabs( WINDOW * );
void block_trim_trailing( WINDOW * );
void block_convert_case( WINDOW * );
/************************************************************************/
/************************* function prototypes in dirlist.c *************/
void dir_help( WINDOW * );
int validate_path( char *, char * );
int list_and_pick( char *, char *, WINDOW * );
void setup_directory_window( DIRECTORY *, int );
void recalculate_dir( DIRECTORY *, FTYPE *, int );
void write_directory_list( FTYPE *, DIRECTORY );
int select_file( FTYPE *, char *, DIRECTORY * );
void shell_sort( FTYPE *, int );
int get_current_directory( char far *, int );
int set_current_directory( char far * );
void hlight_line( int, int, int, int );
/************************************************************************/
/************************* function prototypes in ed.c *****************/
void tab_key( WINDOW * );
void backtab( WINDOW * );
void insert_newline( WINDOW * );
void insert_overwrite( WINDOW * );
void join_line( WINDOW * );
void dup_line( WINDOW * );
void word_delete( WINDOW * );
void back_space( WINDOW * );
void line_kill( WINDOW * );
void char_del_under( WINDOW * );
void eol_kill( WINDOW * );
void undo_line( WINDOW * );
void undo( WINDOW * );
void beg_next_line( WINDOW *window );
void next_line( WINDOW *window );
void home( WINDOW * );
void goto_right( WINDOW * );
void goto_top( WINDOW * );
void goto_bottom( WINDOW * );
void set_tabstop( WINDOW * );
void show_line_col( WINDOW * );
void show_asterisk( WINDOW * );
void toggle_overwrite( WINDOW * );
void toggle_indent( WINDOW * );
void set_left_margin( WINDOW * );
void set_right_margin( WINDOW * );
void set_paragraph_margin( WINDOW * );
void toggle_ww( WINDOW * );
void toggle_af( WINDOW * );
void toggle_crlf( WINDOW * );
void toggle_trailing( WINDOW * );
void toggle_z( WINDOW * );
void toggle_eol( WINDOW * );
void toggle_search_case( WINDOW * );
void toggle_sync( WINDOW * );
void toggle_ruler( WINDOW * );
void sync( WINDOW * );
void editor( void );
void display_dirty_windows( WINDOW * );
void play_back( WINDOW * );
/************************************************************************/
/************************* function prototypes in findrep.c ************/
int get_replacement_flags( int );
int ask_replace( WINDOW *, int * );
int ask_wrap_replace( WINDOW *, int * );
void do_replace( WINDOW *, text_ptr, int );
void find_string( WINDOW * );
void build_boyer_array( void );
text_ptr forward_boyer_moore_search( WINDOW * );
text_ptr search_forward( text_ptr, long );
text_ptr backward_boyer_moore_search( WINDOW * );
text_ptr search_backward( text_ptr, long );
void show_search_message( int, int );
void find_adjust( WINDOW *, text_ptr );
void replace_string( WINDOW * );
int replace_and_display( WINDOW *, text_ptr, int *, int *, int );
void goto_top_file( WINDOW * );
void goto_end_file( WINDOW * );
text_ptr scan_forward( text_ptr, char, char );
text_ptr scan_backward( text_ptr, char, char );
void match_pair( WINDOW * );
void goto_line( WINDOW * );
/************************************************************************/
/************************* function prototypes in main.c **************/
void main( int, char *[] );
void error( int, int, char * );
#if defined( __MSC__ )
int interrupt far harmless( void );
#else
static int harmless( void );
#endif
void terminate( void );
void hw_initialize( void );
void video_config( struct vcfg *cfg );
void set_cursor_size( int );
void hw_move( text_ptr, text_ptr, long );
int hw_fattrib( char * );
int change_mode( char *, int );
int write_file( char *, char *, text_ptr, text_ptr, int );
int hw_save( char *, text_ptr, text_ptr, int );
int hw_append( char *, text_ptr, text_ptr, int );
int hw_load( char *, text_ptr, text_ptr, text_ptr *, int );
void get_help( WINDOW * );
void save_screen( void );
void restore_screen( void );
void show_credits( void );
int getkey( void );
int getfunc( int );
void record_on_off( WINDOW * );
void record_keys( int );
void show_avail_strokes( void );
void save_strokes( WINDOW * );
void load_strokes( WINDOW * );
void clear_macros( WINDOW * );
void connect_macros( void );
int findfirst( DTA far *, char far *, int );
int findnext( DTA far * );
/************************************************************************/
/************************* function prototypes in hwind.c **************/
void xygoto( int, int );
void save_screen_line( int, int, char * );
void restore_screen_line( int, int, char * );
void cls( void );
void initialize( void );
void show_end_mem( void );
void show_end_text( WINDOW * );
void show_modes( void );
void show_file_count( int );
void show_window_count( int );
void show_avail_mem( void );
void show_indent_mode( void );
void show_search_case( void );
void show_sync_mode( void );
void show_wordwrap_mode( void );
void show_crlf_mode( void );
void show_trailing( void );
void show_control_z( void );
void show_insert_mode( void );
void my_scroll_down( WINDOW * );
void combine_strings( char *, char *, char *, char * );
void make_ruler( WINDOW * );
void show_ruler( WINDOW * );
void show_ruler_char( WINDOW * );
void show_ruler_pointer( WINDOW * );
void show_all_rulers( void );
/************************************************************************/
/************************* function prototypes in utils.c **************/
int myisalnum( int );
void check_virtual_col( WINDOW *, int, int );
void copy_line( text_ptr, int );
void un_copy_line( text_ptr, WINDOW *, int );
void load_undo_buffer( text_ptr );
int load_file( char * );
void set_prompt( char *, int );
int get_name( char *, int, char *, int );
int get_yn( void );
int get_lr( void );
int get_oa( void );
void show_eof( WINDOW * );
void display_current_window( WINDOW * );
void redraw_screen( WINDOW * );
void redraw_current_window( WINDOW * );
void show_changed_line( WINDOW * );
void show_curl_line( WINDOW * );
void dup_window_info( WINDOW *, WINDOW * );
void addorsub_all_cursors( WINDOW *, long );
void adjust_windows_cursor( WINDOW *, int );
void adjust_start_end( file_infos *, long );
int first_non_blank( char far * );
int is_line_blank( char far * );
void page_up( WINDOW * );
void page_down( WINDOW * );
void scroll_down( WINDOW * );
void scroll_up( WINDOW * );
void fixed_scroll_up( WINDOW * );
void fixed_scroll_down( WINDOW * );
void file_file( WINDOW * );
int save_file( WINDOW * );
int save_backup( WINDOW * );
int write_to_disk( WINDOW *, char * );
int save_as_file( WINDOW * );
void show_window_header( WINDOW * );
void show_window_number_letter( WINDOW * );
void show_window_fname( WINDOW * );
void show_size_name( WINDOW * );
void show_size( WINDOW * );
void quit( WINDOW * );
void move_up( WINDOW * );
void move_down( WINDOW * );
void move_left( WINDOW * );
void move_right( WINDOW * );
void scroll_left( WINDOW * );
void scroll_right( WINDOW * );
void word_left( WINDOW * );
void word_right( WINDOW * );
void center_window( WINDOW * );
void horizontal_screen_right( WINDOW * );
void horizontal_screen_left( WINDOW * );
void set_marker( WINDOW * );
void goto_marker( WINDOW * );
void change_fattr( WINDOW * );
/************************************************************************/
/************************* function prototypes in window.c *************/
int initialize_window( void );
void choose_window( char *, WINDOW * );
void next_window( WINDOW * );
void prev_window( WINDOW * );
void split_horizontal( WINDOW * );
void split_vertical( WINDOW * );
void show_vertical_separator( WINDOW * );
void size_window( WINDOW * );
void zoom_window( WINDOW * );
void next_hidden_window( WINDOW * );
void setup_window( WINDOW * );
void finish( WINDOW * );
int create_window( WINDOW **, int, int, int, int, file_infos * );
int edit_file( char * );
void edit_another_file( WINDOW * );
int edit_next_file( WINDOW * );
int attempt_edit_display( char *, int );
void make_backup_fname( file_infos * );
/************************************************************************/
/********************** function prototypes in wordwrap.c **************/
void word_wrap( WINDOW * );
void format_paragraph( WINDOW *window );
void combine_wrap_spill( WINDOW *, int, int, int );
int find_word( text_ptr, int );
void left_justify( WINDOW * );
void right_justify( WINDOW * );
void center_justify( WINDOW * );
/************************************************************************/
/************************* function prototypes in tdeasm.c *************/
text_ptr cpf( text_ptr );
text_ptr cpb( text_ptr );
unsigned long ptoul( void far * );
text_ptr nptos( text_ptr );
text_ptr addltop( long, text_ptr );
int find_CONTROL_Z( text_ptr );
int linelen( text_ptr );
text_ptr find_next( text_ptr );
text_ptr find_prev( text_ptr );
void update_line( WINDOW * );
void c_output( int, int, int, int );
void s_output( char far *, int, int, int );
void eol_clear( int, int, int );
void window_eol_clear( WINDOW *, int );
void upper_asm( text_ptr, unsigned );
void lower_asm( text_ptr, unsigned );
void strip_asm( text_ptr, unsigned );
int get_fattr( char far *, int * );
int set_fattr( char far *, int );
/*****************************************************/
/*********** function prototype for simul101.asm *************/
void far simulate_enh_kbd( int );
/*****************************************************/
/*********** function prototype for criterr.asm *************/
void far install_ceh( void far * );
/*****************************************************/
/*********** function prototype for criterr.c *************/
int far crit_err_handler( void );
void show_error_screen( int, int );
void save_area( void far * );
void restore_area( void far * );
/*****************************************************/