⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tdefunc.h

📁 一个开源著名的TDE编辑器源代码
💻 H
📖 第 1 页 / 共 2 页
字号:
/* * 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 bj_ctype.c *************/int  bj_tolower( int );int  bj_toupper( int );int  bj_isspc( int );int  bj_isnotspc( int );/************************************************************************//*************************  function prototypes in block.c *************/int  mark_block( TDE_WIN * );int  move_mark( TDE_WIN * );            /* jmh 050710 */int  unmark_block( TDE_WIN * );void restore_marked_block( TDE_WIN *, int );void shift_tabbed_block( file_infos * );void shift_block( file_infos *, long, int, int );int  prepare_block( TDE_WIN *, line_list_ptr, int );int  pad_dest_line( TDE_WIN *, file_infos *, line_list_ptr );int  block_operation( TDE_WIN * );void do_line_block( TDE_WIN *,  TDE_WIN *,  int,  file_infos *,  file_infos *,                    int,  line_list_ptr,  line_list_ptr,  line_list_ptr,                    line_list_ptr,  long,  long,  long,  int * );void do_stream_block( TDE_WIN *,  TDE_WIN *,  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( TDE_WIN *,  TDE_WIN *,  int,  file_infos *,  file_infos *,                   line_list_ptr, line_list_ptr,  long,  long,                   long,  long,  long,  int,  int,  text_ptr, int *,                   int,  int,  int,  int,  int,  int * );void load_box_buff( text_ptr, line_list_ptr, int, int, char, int, int );int  copy_buff_2file( TDE_WIN *, text_ptr, line_list_ptr, int, int, int );void block_fill( text_ptr, int, int );int  block_pattern( text_ptr , int, int, text_ptr, int );  /* jmh 030305 */void number_block_buff( text_ptr, int, long, int );void restore_cursors( file_infos * );int  delete_box_block( TDE_WIN *, line_list_ptr, int, int );void check_block( TDE_WIN ** );void find_begblock( file_infos * );void find_endblock( file_infos * );int  block_write( TDE_WIN * );int  block_print( TDE_WIN * );int  get_block_fill_char( TDE_WIN *, int *, text_ptr );int  get_block_numbers( long *, long *, int * );int  block_trim_trailing( TDE_WIN * );int  block_email_reply( TDE_WIN * );int  block_convert_case( TDE_WIN * );void upper_case( text_ptr, size_t );void lower_case( text_ptr, size_t );void invert_case( text_ptr, size_t );   /* added by jmh 990915 */void capitalise( text_ptr, size_t );    /* added by jmh 010624 */void rot13( text_ptr, size_t );void fix_uue( text_ptr, size_t );void strip_hi( text_ptr, size_t );int  get_block_border_style( TDE_WIN *, text_ptr, int * );void justify_line_block( TDE_WIN *, line_list_ptr, long, long, int * );int  block_indent( TDE_WIN * );int  block_to_clipboard( TDE_WIN * );   /* added by jmh 020826 */int  comment_block( TDE_WIN * );        /* added by jmh 030302 */int  uncomment_block( TDE_WIN * );      /* added by jmh 030302 *//************************************************************************//**********************  function prototypes in config.c   ***************/int  tdecfgfile( TDE_WIN * );int  readfile( char *, int );int  read_line( FILE * );               /* added by jmh 021031 */void parse_line( char *, int );char *parse_token( char *, char * );char *parse_literal( char *, char * );int  search( char *, const CONFIG_DEFS *, int );void clear_previous_macro( int );int  parse_macro( char *, int );MACRO *initialize_macro( long );void check_macro( MACRO * );int  cfg_record_keys( MACRO *, long, int, int );long cfg_search_tree( int, TREE * );void new_sort_order( text_ptr, text_ptr );int  add_twokey( long, int );void new_upper_lower( text_ptr );void new_bj_ctype( char * );int  parse_color( char **, char *, int, const char * );int  parse_key( char * );                       /* added by jmh 020819 */void parse_cmdline_macro( char *, int );        /* added by jmh 021024 */const char *new_user_menu( char *, char *, int );        /* jmh 031129 *//************************************************************************//**********************  function prototypes in console.c  ************/void console_init( struct vcfg * );     /* added by jmh 021023 */void console_suspend( void );           /* ditto */void console_resume( int );             /* ditto */void console_exit( void );              /* ditto */void video_config( struct vcfg * );long getkey( void );int  waitkey( int );int  capslock_active( void );           /* moved by jmh 980723 */int  numlock_active( void );            /* added by jmh 020903 */void flush_keyboard( void );void page( unsigned char );             /* new function added by jmh */void xygoto( int, int );void display_line( text_ptr, unsigned char *, int, int, int );void c_output( int, int, int, int );void c_repeat( int, int, int, int, int );void s_output( const char *, int, int, 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 * );void save_area( Char *, int, int, int, int );void restore_area( Char *, int, int, int, int );void shadow_area( int, int, int, int );         /* added by jmh 991020 */#if !defined( __UNIX__ )                        /* added by jmh 991022 */#define refresh( )#endif/************************************************************************//*************************  function prototypes in diff.c  **************/int  define_diff( TDE_WIN * );int  repeat_diff( TDE_WIN * );int  differ( int, int, int );int  skip_leading_space( text_ptr, int, int, int );line_list_ptr skip_eol( TDE_WIN *, int *, int *, int, int );void show_diff_window( TDE_WIN * );/************************************************************************//*************************  function prototypes in dirlist.c *************/int  dir_help( TDE_WIN * );int  dir_help_name( TDE_WIN *, char * );int  list_and_pick( char *, TDE_WIN * );void setup_directory_window( DIRECTORY *, LIST *, int );void recalculate_dir( DIRECTORY *, LIST *, int );void write_directory_list( LIST *, DIRECTORY * );int  select_file( LIST *, char *, DIRECTORY * );void shell_sort( LIST *, int );int  dir_cmp( char *, char * );/************************************************************************//*************************  function prototypes in ed.c *****************/int  insert_newline( TDE_WIN * );int  insert_overwrite( TDE_WIN * );int  join_line( TDE_WIN * );int  dup_line( TDE_WIN * );int  word_delete( TDE_WIN * );int  back_space( TDE_WIN * );int  transpose( TDE_WIN * );            /* new function by jmh */int  line_kill( TDE_WIN * );int  char_del_under( TDE_WIN * );int  eol_kill( TDE_WIN * );int  bol_kill( TDE_WIN * );             /* added by jmh 020911 */int  set_tabstop( TDE_WIN * );int  dynamic_tab_size( TDE_WIN * );     /* added by jmh 030304 */void show_line_col( TDE_WIN * );void show_asterisk( TDE_WIN * );int  toggle_overwrite( TDE_WIN * );int  toggle_smart_tabs( TDE_WIN * );int  toggle_indent( TDE_WIN * );int  set_margins( TDE_WIN * );int  toggle_ww( TDE_WIN * );int  toggle_crlf( TDE_WIN * );int  toggle_trailing( TDE_WIN * );int  toggle_z( TDE_WIN * );int  toggle_eol( TDE_WIN * );int  toggle_search_case( TDE_WIN * );int  toggle_sync( TDE_WIN * );int  toggle_ruler( TDE_WIN * );int  toggle_tabinflate( TDE_WIN * );int  toggle_cursor_cross( TDE_WIN * );  /* new function added by jmh 980724 */int  toggle_graphic_chars( TDE_WIN * ); /* new function added by jmh 980724 */int  change_cur_dir( TDE_WIN * );       /* new function added by jmh 981129 */int  toggle_read_only( TDE_WIN * );     /* new function added by jmh 990428 */int  toggle_draw( TDE_WIN * );          /* new function added by jmh 991018 */int  toggle_line_numbers( TDE_WIN * );  /* new function added by jmh 991108 */int  toggle_cwd( TDE_WIN * );           /* new function added by jmh 030226 */int  toggle_quickedit( TDE_WIN * );     /* new function added by jmh 060219 */void cursor_sync( TDE_WIN * );void editor( void );int  repeat( TDE_WIN * );               /* new function added by jmh */void display_dirty_windows( TDE_WIN * );void show_dirty_window( TDE_WIN * );int  paste( TDE_WIN * );                /* added by jmh 020826 */int  context_help( TDE_WIN * );         /* jmh 050710 *//************************************************************************//*************************  function prototypes in file.c  **************/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, line_list_ptr );void insert_node( file_infos *, line_list_ptr, line_list_ptr );int  show_file_2big( char *, int );int  backup_file( TDE_WIN * );int  edit_file( char *, int, int );int  edit_another_file( TDE_WIN * );int  reload_file( TDE_WIN * );          /* added by jmh 030318 */int  attempt_edit_display( char *, int );int  file_file( TDE_WIN * );int  file_all( TDE_WIN * );             /* new function by jmh */int  save_all( TDE_WIN * );             /* new function by jmh 040715 */int  save_file( TDE_WIN * );int  save_backup( TDE_WIN * );int  save_as_file( TDE_WIN * );void make_backup_fname( file_infos * );int  write_to_disk( TDE_WIN *, char * );int  search_and_seize( TDE_WIN * );int  edit_next_file( TDE_WIN * );int  file_exists( char * );             /* added by jmh 021020 */int  change_mode( char *, int );        /* moved from port.c by jmh 021020 */int  binary_file( char * );int  change_fattr( TDE_WIN * );char *str_fattr( char *, fattr_t );     /* added by jmh 021020 */int  save_workspace( TDE_WIN * );       /* new function by jmh 020722 */int  load_workspace( void );int  set_path( TDE_WIN * );             /* added by jmh 021021 *//************************************************************************//*************************  function prototypes in findrep.c ************/int  ask_replace( TDE_WIN *, int * );int  ask_wrap_replace( TDE_WIN *, int * );void do_replace( TDE_WIN *, int );int  find_string( TDE_WIN * );int  define_search( TDE_WIN * );        /* new function added by jmh 990923 */int  repeat_search( TDE_WIN * );        /* new function added by jmh 990923 */int  isearch( TDE_WIN * );              /* new function added by jmh 021028 */int  perform_search( TDE_WIN * );line_list_ptr forward_search( TDE_WIN *, long *, int * );line_list_ptr backward_search( TDE_WIN *, long *, int * );void build_boyer_array( void );void build_forward_skip( boyer_moore_type * );void build_backward_skip( boyer_moore_type * );int  calculate_forward_md2( text_ptr, int );int  calculate_backward_md2( text_ptr, int );line_list_ptr search_forward( line_list_ptr, long *, int * );line_list_ptr search_backward( line_list_ptr, long *, int * );void show_search_message( int );void bin_offset_adjust( TDE_WIN *, long );void find_adjust( TDE_WIN *, line_list_ptr, long, int );int  replace_string( TDE_WIN * );int  replace_and_display( TDE_WIN*, line_list_ptr, long, int, int*, int );int  scan_forward( TDE_WIN *, int *, char, char );int  scan_backward( TDE_WIN *, int *, char, char );int  match_pair( TDE_WIN * );/************************************************************************//*************************  function prototypes in hwind.c **************/void format_time( const char *, char *, struct tm * );     /* added by jmh 980521 */void show_modes( void );void show_file_count( void );void show_window_count( void );void show_avail_mem( void );void show_tab_modes( void );void show_indent_mode( void );void show_search_case( void );void show_sync_mode( void );void show_wordwrap_mode( void );void show_trailing( void );void show_control_z( void );void show_insert_mode( void );void show_graphic_chars( void );        /* added by jmh 980724 */void show_cur_dir( void );              /* added by jmh 981129 */void show_draw_mode( void );            /* added by jmh 991018 */void show_undo_mode( void );            /* added by jmh 991120 */void show_undo_move( void );            /* added by jmh 010520 */void show_recording( void );            /* added by jmh 981129 */void show_cwd( void );                  /* added by jmh 030226 */void my_scroll_down( TDE_WIN * );void eol_clear( int, int, int );void window_eol_clear( TDE_WIN *, int );void n_output( long, int, int, int, int );void combine_strings( char *, const char *, const char *, const char * );/* str = str1 + str2 - jmh 021031 */#define join_strings( str, str1, str2 ) combine_strings( str, str1, str2, NULL )char *reduce_string( char *, const char *, int, int ); /* added by jmh 021105 */void make_ruler( void );void show_ruler( TDE_WIN * );void show_ruler_char( TDE_WIN * );void show_ruler_pointer( TDE_WIN * );void show_all_rulers( void );void make_popup_ruler( TDE_WIN *, text_ptr, unsigned char *, int, int, int );int  popup_ruler( TDE_WIN * );int  show_help( void );void show_strings( const char * const *, int, int, int );void adjust_area( int *, int *, int *, int *, int * ); /* added by jmh 991023 *//************************************************************************//************************  function prototypes in macro.c  **************/int  record_on_off( TDE_WIN * );unsigned find_combination( TDE_WIN * );TREE *search_tree( long, TREE * );MACRO *find_pseudomacro( unsigned, TDE_WIN * );void add_branch( TREE *, TREE * );void record_key( long, int );void show_avail_strokes( int );int  save_strokes( TDE_WIN * );void write_macro( FILE *, MACRO *, long );void write_pseudomacro( FILE *, TREE * );void write_twokeymacro( FILE *, TREE * );char *key_name( long, char * );int  clear_macros( TDE_WIN * );void delete_pseudomacro( TREE * );void delete_twokeymacro( TREE * );int  play_back( TDE_WIN * );int  push_macro_stack( void );int  pop_macro_stack( void );int  macro_pause( TDE_WIN * );long getkey_macro( void );              /* new function added by jmh 980726 */int  set_break_point( TDE_WIN * );      /* new function added by jmh 980815 *//************************************************************************//*************************  function prototypes in main.c  **************/int  main( int, char *[] );void error( int, int, const char * );void terminate( void );int  initialize( void );void hw_initialize( void );int  get_help( TDE_WIN * );

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -