📄 tdefunc.h
字号:
void show_credits( void );/************************************************************************//********************** function prototypes in memory.c ***************/int init_memory( void );void *my_malloc( size_t, int * );void *my_calloc( size_t );char *my_strdup( const char * );void my_free( void * );void my_free_group( int );void *my_realloc( void *, size_t, int * );void my_memcpy( void *, void *, size_t );void my_memmove( void *, void *, size_t );/************************************************************************//********************* function prototypes in movement.c **************/void first_line( TDE_WIN * ); /* jmh 030327 */int inc_line( TDE_WIN *, int );int dec_line( TDE_WIN *, int );int move_to_line( TDE_WIN *, long, int );void move_display( TDE_WIN *, TDE_WIN * );int prepare_move_up( TDE_WIN * );int prepare_move_down( TDE_WIN * );int home( TDE_WIN * );int goto_eol( TDE_WIN * );int goto_top( TDE_WIN * );int goto_bottom( TDE_WIN * );int page_up( TDE_WIN * );int page_down( TDE_WIN * );int scroll_up( TDE_WIN * );int scroll_down( TDE_WIN * );int pan_up( TDE_WIN * );int pan_down( TDE_WIN * );int move_up( TDE_WIN * );int move_down( TDE_WIN * );int beg_next_line( TDE_WIN * );int next_line( TDE_WIN * );int move_left( TDE_WIN * );int move_right( TDE_WIN * );int pan_left( TDE_WIN * );int pan_right( TDE_WIN * );int word_left( TDE_WIN * );int word_right( TDE_WIN * );int find_dirty_line( TDE_WIN * );int find_browse_line( TDE_WIN * ); /* new function by jmh 031116 */int center_window( TDE_WIN * );int topbot_line( TDE_WIN * ); /* new function by jmh 991025 */int screen_right( TDE_WIN * );int screen_left( TDE_WIN * );int goto_top_file( TDE_WIN * );int goto_end_file( TDE_WIN * );int goto_position( TDE_WIN * );int set_marker( TDE_WIN * );int goto_marker( TDE_WIN * );/************************************************************************//************************* function prototypes in port.c *************/long my_heapavail( void );#if defined( __DOS16__ )# define my_ltoa ltoa#else# if defined( __UNIX__ )char *my_ltoa( int, char *, int );# else# define my_ltoa itoa# endif#endifFTYPE *my_findfirst( char *, FFIND *, int );FTYPE *my_findnext( FFIND * );#if defined( __DJGPP__ )void my_findclose( FFIND * );#elif defined( __WIN32__ )# define my_findclose( dta ) FindClose( (dta)->find_info )#elif defined( __UNIX__ )# define my_findclose( dta ) closedir( (dta)->find_info )#else# define my_findclose( dta )#endifint get_fattr( char *, fattr_t * );int set_fattr( char *, fattr_t );int get_current_directory( char * );int set_current_directory( char * );void get_full_path( char *, char * ); /* new function added by jmh */int get_ftime( char *, ftime_t * ); /* time functions added jmh 030320 */int set_ftime( char *, ftime_t * );#if defined( __UNIX__ )#define ftime_to_tm( ft ) localtime( ft )#elsestruct tm *ftime_to_tm( const ftime_t * );#endif#if defined( __DOS16__ )void unixify( char * ); /* added by jmh 010604 */#endif#if defined( __DJGPP__ ) || defined( __WIN32__ )int set_clipboard( char *, int ); /* added by jmh 020826 */char *get_clipboard( void ); /* ditto */#endif/************************************************************************//************************* function prototypes in pull.c *************/int main_pull_down( TDE_WIN * );long lite_bar_menu( int * );long pull_me( MENU_STR *, int, int, int * );void get_bar_spacing( int *, int * );void draw_lite_head( int, int [] );void get_minor_counts( MENU_STR * );void init_menu( int ); /* new function added by jmh */int viewer( long ); /* added by jmh 020818 *//************************************************************************//************************* function prototypes in query.c **************/int getfunc( long );long translate_key( int, int, text_t ); /* added by jmh 980725 */int get_string( int, int, int, int, int, char *, HISTORY * );int get_name( const char *, int, char *, HISTORY * ); /* history jmh 990424 */int copy_word( TDE_WIN *, char *, int, int ); /* added by jmh 980731 */#if defined( __DJGPP__ ) || defined( __WIN32__ )int copy_clipboard( char *, int ); /* added by jmh 021021 */#endifint get_number( const char *, int, long *, HISTORY * ); /* by jmh 021106 */int get_response( const char *, int, int, int, int, int, ... );#define get_yn( prompt, line, flag ) \ get_response( prompt, line, flag, 2, L_YES, A_YES, L_NO, A_NO )#define get_ny( prompt, line, flag ) \ get_response( prompt, line, flag, 2, L_NO, A_NO, L_YES, A_YES )long prompt_key( const char *, int ); /* added by jmh 050922 */int get_sort_order( TDE_WIN * );void add_to_history( char *, HISTORY * ); /* added by jmh 990424 */int do_dialog( DIALOG *, DLG_PROC ); /* added by jmh 031115 */int check_box( int );void check_box_enabled( int, int );int set_dlg_text( DIALOG *, const char * );char *get_dlg_text( DIALOG * );int set_dlg_num( DIALOG *, long );long get_dlg_num( DIALOG * );/************************************************************************//************************* function prototypes in regx.c *************/int find_regx( TDE_WIN * );line_list_ptr regx_search_forward( line_list_ptr, long *, int * );line_list_ptr regx_search_backward( line_list_ptr, long *, int * );int nfa_match( void );int build_nfa( void );int expression( void );int term( void );int factor( void );int escape_char( int );void emit_cnode( int, int, int, int );void emit_nnode( int, int, int, int, int );int put_dq( int );int push_dq( int );int pop_dq( void );int dequeempty( void );void init_nfa( void );void regx_error( const char * );int separator( int );int Kleene_star( int );int letter( int );/**********************************************************************//************************* function prototypes in sort.c *************/int sort_box_block( TDE_WIN * );void quick_sort_block( long, long, line_list_ptr, line_list_ptr );void insertion_sort_block( long, long, line_list_ptr );void load_pivot( line_list_ptr );int compare_pivot( line_list_ptr );int my_memcmp( text_ptr, text_ptr, int );/************************************************************************//********************** function prototypes in syntax.c ***************/int init_syntax( TDE_WIN * );int scan_syntax( char *, char *, int );int syntax_read_line( FILE *, char ** );LANGUAGE *add_language( char *, LANGUAGE * );void syntax_parse_file( FILE *, LANGUAGE * );void add_keyword_list( LANGUAGE *, int, char *, char * );void add_keyword( LANGUAGE *, char *, int );text_ptr is_keyword( LANGUAGE *, char *, int );void syntax_init_colors( FILE * );void syntax_init_lines( file_infos * );void syntax_check( line_list_ptr, syntax_info * );long syntax_check_lines( line_list_ptr, LANGUAGE * );void syntax_check_block( long, long, line_list_ptr, LANGUAGE * );int syntax_attr( text_ptr, int, long, unsigned char *, LANGUAGE * );int syntax_toggle( TDE_WIN * );int syntax_select( TDE_WIN * );int my_strcmp( text_ptr, text_ptr ); /* added by jmh 980716 *//************************************************************************//********************** function prototypes in tab.c ******************/int tab_key( TDE_WIN * );int backtab( TDE_WIN * );int next_smart_tab( TDE_WIN * );int prev_smart_tab( TDE_WIN * );int entab( text_ptr, int, int, int );void detab_linebuff( int, int );void entab_linebuff( int, int );text_ptr detab_a_line( text_ptr, int *, int, int );text_ptr tabout( text_ptr, int *, int, int );int detab_adjust_rcol( text_ptr, int, int );int entab_adjust_rcol( text_ptr, int, int, int );int block_expand_tabs( TDE_WIN * );int block_compress_tabs( TDE_WIN * );/************************************************************************//************************* function prototypes in undo.c **************/int restore_line( TDE_WIN * );int retrieve_line( TDE_WIN * );void load_undo_buffer( file_infos *, text_ptr, int );UNDO *new_undo( file_infos * );void undo_move( TDE_WIN *, int );void undo_char( TDE_WIN *, char, int );void undo_line( TDE_WIN *, text_ptr, int, int );void undo_del( TDE_WIN *, int, int );void undo_space( TDE_WIN *, int, int );int undo( TDE_WIN * );int redo( TDE_WIN * );int toggle_undo_group( TDE_WIN * );int toggle_undo_move( TDE_WIN * );/************************************************************************//************************* function prototypes in utils.c **************/int execute( TDE_WIN * );int myiswhitespc( int );int myisnotwhitespc( int );void check_virtual_col( TDE_WIN *, int, int );int check_cline( TDE_WIN *, int ); /* jmh 030327 */line_list_ptr new_line( long, int * ); /* jmh 030227 */line_list_ptr new_line_text( text_ptr, int, long, int * ); /* ditto */void copy_line( line_list_ptr, TDE_WIN *, int );int un_copy_line( line_list_ptr, TDE_WIN *, int, int );/* jmh 980729: This function is currently unused. *//* int un_copy_tab_buffer( line_list_ptr, TDE_WIN * ); */void set_prompt( const char *, int );void show_eof( TDE_WIN * );void display_current_window( TDE_WIN * );int redraw_screen( TDE_WIN * );void redraw_current_window( TDE_WIN * );void show_changed_line( TDE_WIN * );void show_curl_line( TDE_WIN * );void update_line( TDE_WIN * );void dup_window_info( TDE_WIN *, TDE_WIN * );void adjust_windows_cursor( TDE_WIN *, long );int first_non_blank( text_ptr, int, int, int );int find_end( text_ptr, int, int, int );int is_line_blank( text_ptr, int, int );void show_window_header( TDE_WIN * );void show_window_number_letter( TDE_WIN * );void show_window_fname( TDE_WIN * );void show_crlf_mode( TDE_WIN * );void show_size( TDE_WIN * );int quit( TDE_WIN * );int quit_all( TDE_WIN * ); /* new function added by jmh */int date_time_stamp( TDE_WIN * );int stamp_format( TDE_WIN * ); /* new function added by jmh */int add_chars( text_ptr, TDE_WIN * );int shell( TDE_WIN * ); /* new function added by jmh */int user_screen( TDE_WIN * ); /* new function added by jmh */int show_status( TDE_WIN * ); /* new function added by jmh 990410 */int show_statistics( TDE_WIN * ); /* new function added by jmh 010605 */char *create_frame( int, int, int, int *, int, int ); /* jmh 031119 */int numlen( long ); /* added by jmh 991108 */char *relative_path( char *, TDE_WIN *, int ); /* added by jmh 031028 *//************************************************************************//************************* function prototypes in window.c *************/int next_window( TDE_WIN * );int prev_window( TDE_WIN * );int goto_window( TDE_WIN * ); /* new function added by jmh 990502 */void change_window( TDE_WIN *, TDE_WIN * ); /* added by jmh 990502 */int split_horizontal( TDE_WIN * );int make_horizontal( TDE_WIN * ); /* added by jmh 030323 */int split_vertical( TDE_WIN * );int make_vertical( TDE_WIN * ); /* added by jmh 030323 */void show_vertical_separator( TDE_WIN * );int balance_horizontal( TDE_WIN * ); /* added by jmh 050724 */int balance_vertical( TDE_WIN * ); /* added by jmh 050724 */int size_window( TDE_WIN * );int zoom_window( TDE_WIN * );int initialize_window( void );int get_next_letter( int );void setup_window( TDE_WIN * );int create_window( TDE_WIN **, int, int, int, int, file_infos * );int finish( TDE_WIN * );int find_window( TDE_WIN **, char *, int ); /* added by jmh 990502 */TDE_WIN *find_file_window( file_infos * ); /* added by jmh 031117 */int title_window( TDE_WIN * ); /* added by jmh 030331 *//************************************************************************//********************** function prototypes in wordwrap.c **************/int find_left_margin( line_list_ptr, int, int, int );void word_wrap( TDE_WIN * );int format_paragraph( TDE_WIN * );void combine_wrap_spill( TDE_WIN *, int, int, int, int, int );void justify_right_margin( TDE_WIN *, line_list_ptr, int, int, int );void remove_spaces( int );int find_word( text_ptr, int, int );int flush_left( TDE_WIN * );int flush_right( TDE_WIN * );int flush_center( TDE_WIN * );/************************************************************************/#if defined( __DOS16__ )/*********** function prototype for dos/kbdint.asm *******/void kbd_install( int );/*****************************************************//*********** function prototype for dos/criterr.asm **********/void install_ceh( void * );/*****************************************************/#endif/*********** function prototype for *\criterr.c *************/#if defined( __WIN32__ )BOOL ctrl_break_handler( DWORD );#endif#if !defined( __DOS16__ )void crit_err_handler( int );# if defined( __DJGPP__ )void crit_err_handler_end( void );# endif#elseint crit_err_handler( void );void show_error_screen( void );#endif/*****************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -