home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Best Objectech Shareware Selections
/
UNTITLED.iso
/
boss
/
word
/
text
/
024
/
tdefunc.h
< prev
next >
Wrap
Text File
|
1993-06-04
|
17KB
|
439 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.
*
* I'm so stupid, I can't keep up with which functions are used in which
* files. Let's gather all prototypes into one file, so I don't have
* to remember too much.
*/
/************************* function prototypes in block.c *************/
int mark_block( WINDOW * );
int unmark_block( WINDOW * );
void restore_marked_block( WINDOW *, int );
int prepare_block( WINDOW *, line_list_ptr, int );
int pad_dest_line( WINDOW *, file_infos *, line_list_ptr );
int move_copy_delete_overlay_block( WINDOW * );
void do_line_block( WINDOW *, WINDOW *, int, file_infos *, file_infos *,
line_list_ptr, line_list_ptr, line_list_ptr,
line_list_ptr, long, long, int * );
void do_stream_block( WINDOW *, WINDOW *, int, file_infos *,
file_infos *, line_list_ptr, line_list_ptr,
line_list_ptr, line_list_ptr,
long, long, long, int, int, int, int * );
void do_box_block( WINDOW *, WINDOW *, int, file_infos *, file_infos *,
line_list_ptr, line_list_ptr, long, long, long,
long, long, int, int, int,
int, int, int, int, int * );
void load_box_buff( char *, line_list_ptr, int, int, char );
int copy_buff_2file( WINDOW *, char *, line_list_ptr, int, int, int );
void block_fill( char *, int, int );
void number_block_buff( char *, int, long, int );
void restore_cursors( file_infos * );
int delete_box_block( WINDOW *, line_list_ptr, int, int );
void check_block( void );
void find_begblock( file_infos * );
void find_endblock( file_infos * );
int block_write( WINDOW * );
int block_print( WINDOW * );
int get_block_fill_char( WINDOW *, int * );
int get_block_numbers( WINDOW *, long *, long *, int * );
int block_trim_trailing( WINDOW * );
int block_email_reply( WINDOW * );
int block_convert_case( WINDOW * );
void upper_case( text_ptr, size_t );
void lower_case( text_ptr, size_t );
void rot13( text_ptr, size_t );
void fix_uue( text_ptr, size_t );
void strip_hi( text_ptr, size_t );
/************************************************************************/
/********************** function prototypes in console.c **************/
void video_config( struct vcfg *cfg );
int getkey( void );
int waitkey( int );
int getfunc( int );
int two_key( WINDOW * );
void flush_keyboard( void );
void xygoto( int, int );
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 hlight_line( int, int, int, int );
void cls( void );
void set_cursor_size( int );
void set_overscan_color( int );
void save_screen_line( int, int, char * );
void restore_screen_line( int, int, char * );
/************************************************************************/
/************************* function prototypes in diff.c **************/
int define_diff( WINDOW * );
int repeat_diff( WINDOW * );
int differ( int, int, int );
int skip_leading_space( text_ptr, int );
line_list_ptr skip_eol( line_list_ptr, int *, int *, long *, long * );
void show_diff_window( WINDOW * );
int verify_number( char *, int * );
int verify_letter( char *, int *, WINDOW ** );
/************************************************************************/
/************************* function prototypes in dirlist.c *************/
int dir_help( WINDOW * );
void far *my_calloc( unsigned, unsigned );
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 );
/************************************************************************/
/************************* function prototypes in ed.c *****************/
int insert_newline( WINDOW * );
int insert_overwrite( WINDOW * );
int join_line( WINDOW * );
int dup_line( WINDOW * );
int word_delete( WINDOW * );
int back_space( WINDOW * );
int line_kill( WINDOW * );
int char_del_under( WINDOW * );
int eol_kill( WINDOW * );
int undo_line( WINDOW * );
int undo( WINDOW * );
int beg_next_line( WINDOW *window );
int next_line( WINDOW *window );
int home( WINDOW * );
int goto_eol( WINDOW * );
int goto_top( WINDOW * );
int goto_bottom( WINDOW * );
int set_tabstop( WINDOW * );
void show_line_col( WINDOW * );
void show_asterisk( WINDOW * );
int toggle_overwrite( WINDOW * );
int toggle_smart_tabs( WINDOW * );
int toggle_indent( WINDOW * );
int set_left_margin( WINDOW * );
int set_right_margin( WINDOW * );
int set_paragraph_margin( WINDOW * );
int toggle_ww( WINDOW * );
int toggle_crlf( WINDOW * );
int toggle_trailing( WINDOW * );
int toggle_z( WINDOW * );
int toggle_eol( WINDOW * );
int toggle_search_case( WINDOW * );
int toggle_sync( WINDOW * );
int toggle_ruler( WINDOW * );
int toggle_tabinflate( WINDOW * );
void sync( WINDOW * );
void editor( void );
void display_dirty_windows( WINDOW * );
void show_dirty_window( WINDOW * );
/************************************************************************/
/************************* function prototypes in file.c **************/
int hw_fattrib( char * );
int change_mode( char *, int );
int write_file( char *, int, file_infos *, long, long, int );
int hw_save( char *, file_infos *, long, long, int );
int hw_append( char *, file_infos *, long, long, int );
int load_file( char *, file_infos *, int *, int );
void insert_node( file_infos *, line_list_ptr, line_list_ptr );
int show_file_2big( char *, int, line_list_ptr, text_ptr );
int backup_file( WINDOW * );
int edit_file( char *, int, int );
int edit_another_file( WINDOW * );
int edit_next_file( WINDOW * );
int search_and_seize( WINDOW * );
int attempt_edit_display( char *, int, int, int );
void make_backup_fname( file_infos * );
int file_file( WINDOW * );
int save_file( WINDOW * );
int save_backup( WINDOW * );
int write_to_disk( WINDOW *, char * );
int save_as_file( WINDOW * );
int change_fattr( WINDOW * );
int get_fattr( char far *, int * );
int set_fattr( char far *, int );
int get_current_directory( char far *, int );
int set_current_directory( char far * );
/************************************************************************/
/************************* 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 *, int );
int find_string( WINDOW * );
void build_boyer_array( void );
void build_forward_skip( boyer_moore_type * );
void build_backward_skip( boyer_moore_type * );
int calculate_forward_md2( char *, int );
int calculate_backward_md2( char *, int );
line_list_ptr forward_boyer_moore_search( WINDOW *, long *, int * );
line_list_ptr search_forward( line_list_ptr, long *, unsigned * );
line_list_ptr backward_boyer_moore_search( WINDOW *, long *, int * );
line_list_ptr search_backward( line_list_ptr, long *, unsigned * );
void show_search_message( int, int );
void bin_offset_adjust( WINDOW *, long );
void find_adjust( WINDOW *, line_list_ptr, long, int );
int replace_string( WINDOW * );
int replace_and_display( WINDOW *, line_list_ptr, long, int, int *, int *, int );
line_list_ptr scan_forward( long *, int *, line_list_ptr, char, char, int * );
line_list_ptr scan_backward( long *, int *, line_list_ptr, char, char, int * );
int match_pair( WINDOW