home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / EDITOR / TDE120.ZIP / TDEFUNC.H < prev    next >
Encoding:
Text File  |  1991-10-05  |  7.8 KB  |  214 lines

  1. /*
  2.  * New editor name:  tde, the Thomson-Davis Editor.
  3.  * Author:           Frank Davis
  4.  * Date:             June 5, 1991
  5.  *
  6.  * This modification of Douglas Thomson's code is released into the
  7.  * public domain, Frank Davis.  You may distribute it freely.
  8.  *
  9.  * This file contains all the prototypes for every function in tde.
  10.  */
  11.  
  12. /*************************  function prototypes in block.c *************/
  13. void mark_block( windows * );
  14. void unmark_block( windows * );
  15. void restore_marked_block( windows *, int );
  16. int  prepare_block( windows *, text_ptr, int, int );
  17. void pad_dest_line( windows *, file_infos *, text_ptr );
  18. void move_copy_delete_overlay_block( windows * );
  19. void load_buff( char *, text_ptr, int, int, int );
  20. int  copy_buff_2file( windows *, char *, text_ptr, int, int, int );
  21. void block_fill( char *, int, int );
  22. void restore_start_end( file_infos *, file_infos *, long, long, int );
  23. void restore_cursors( file_infos *, file_infos * );
  24. void delete_box_block( windows *, text_ptr, int, int, int );
  25. void check_block( void );
  26. void find_begblock( file_infos * );
  27. void find_endblock( file_infos * );
  28. void block_write( windows * );
  29. void block_print( windows * );
  30. int  get_block_fill_char( windows *, int * );
  31. void block_expand_tabs( windows * );
  32. /************************************************************************/
  33.  
  34.  
  35. /*************************  function prototypes in ed.c *****************/
  36. void tab_key( windows * );
  37. void insert_newline( windows * );
  38. void insert_overwrite( windows * );
  39. void join_line( windows * );
  40. void dup_line( windows * );
  41. void word_delete( windows * );
  42. void back_space( windows * );
  43. void line_kill( windows * );
  44. void char_del_under( windows * );
  45. void eol_kill( windows * );
  46. void undo_line( windows * );
  47. void undo( windows * );
  48. void beg_next_line( windows *window );
  49. void next_line( windows *window );
  50. void goto_left( windows * );
  51. void goto_right( windows * );
  52. void goto_top( windows * );
  53. void goto_bottom( windows * );
  54. void set_tabstop( windows * );
  55. void show_line_col( windows * );
  56. void show_asterisk( int, int );
  57. void toggle_overwrite( windows * );
  58. void toggle_sdel( windows * );
  59. void toggle_indent( windows * );
  60. void toggle_search_case( windows * );
  61. void editor( int, char *[] );
  62. /************************************************************************/
  63.  
  64. /*************************  function prototypes in findrep.c ************/
  65. int  get_replacement_flags( int );
  66. int  ask_replace( windows *, int * );
  67. void do_replace( windows *, text_ptr, int );
  68. void find_string( windows * );
  69. void build_boyer_array( void );
  70. text_ptr  forward_boyer_moore_search( windows * );
  71. text_ptr  backward_boyer_moore_search( windows * );
  72. void find_adjust( windows *, text_ptr );
  73. void replace_string( windows * );
  74. int  replace_and_display( windows *, text_ptr, int *, int *, int );
  75. void goto_top_file( windows * );
  76. void goto_end_file( windows * );
  77. text_ptr  scan_forward( text_ptr, char, char );
  78. text_ptr  scan_backward( text_ptr, char, char );
  79. void match_pair( windows * );
  80. void goto_line( windows * );
  81. /************************************************************************/
  82.  
  83. /*************************  function prototypes in main.c  **************/
  84. void main( int, char *[] );
  85. void error( int, int, char * );
  86. #if defined( __MSC__ )
  87. int  interrupt far harmless( void );
  88. #else
  89. static int harmless( void );
  90. #endif
  91. void terminate( void );
  92. void hw_initialize( void );
  93. #if defined (__MSC__)
  94.    void video_config( struct vcfg *cfg );
  95. #endif
  96. void set_cursor_size( int );
  97. void hw_move( text_ptr, text_ptr, long );
  98. int  hw_fattrib( char * );
  99. int  hw_unlink( char *, int );
  100. int  write_file( char *, char *, text_ptr, text_ptr, int );
  101. int  hw_save( char *, text_ptr, text_ptr, int );
  102. int  hw_append( char *, text_ptr, text_ptr, int );
  103. int  hw_load( char *, text_ptr, text_ptr, text_ptr *, int );
  104. void get_help( windows * );
  105. void show_credits( void );
  106. int  getkey( void );
  107. int  getfunc( int );
  108. /************************************************************************/
  109.  
  110. /*************************  function prototypes in hwind.c **************/
  111. void xygoto( int, int );
  112. void save_screen_line( int, int, char * );
  113. void restore_screen_line( int, int, char * );
  114. void cls( void );
  115. void initialize( void );
  116. void show_end_mem( void );
  117. void show_end_text( windows * );
  118. void show_modes( void );
  119. void show_window_count( int );
  120. void show_file_count( int );
  121. void show_avail_mem( void );
  122. void show_indent_mode( void );
  123. void show_insert_mode( void );
  124. void show_search_case( void );
  125. void show_sdelete_mode( void );
  126. void window_scroll_up( int, int );
  127. void window_scroll_down( int, int );
  128. void window_scroll_up_eof( int, int );
  129. void combine_strings( char *, char *, char *, char * );
  130. /************************************************************************/
  131.  
  132. /*************************  function prototypes in utils.c **************/
  133. int  myisalnum( int );
  134. void check_virtual_col( windows *, int, int );
  135. void copy_line( text_ptr, int );
  136. void un_copy_line( text_ptr, windows *, int );
  137. void load_undo_buffer( text_ptr );
  138. int  load_file( char * );
  139. void set_prompt( char *, int );
  140. int  get_name( char *, int, char *, int );
  141. int  get_yn( void );
  142. int  get_oa( void );
  143. void show_eof( int );
  144. void display_current_window( windows * );
  145. void redraw_screen( windows * );
  146. void redraw_current_window( windows * );
  147. void show_changed_line( windows * );
  148. void dup_window_info( windows *, windows * );
  149. void addorsub_all_cursors( windows *, long );
  150. void adjust_windows_cursor( windows *, int );
  151. void adjust_start_end( file_infos *, long );
  152. int  first_non_blank( char far * );
  153. void page_up( windows * );
  154. void page_down( windows * );
  155. void scroll_down( windows * );
  156. void scroll_up( windows * );
  157. void fixed_scroll_up( windows * );
  158. void fixed_scroll_down( windows * );
  159. void file_file( windows * );
  160. void save_file( windows * );
  161. void save_as_file( windows * );
  162. void show_window_header( char *, windows * );
  163. void show_size_name( windows * );
  164. void show_size( windows * );
  165. void quit( windows * );
  166. void move_up( windows * );
  167. void move_down( windows * );
  168. void move_left( windows * );
  169. void move_right( windows * );
  170. void word_left( windows * );
  171. void word_right( windows * );
  172. void center_window( windows * );
  173. void horizontal_screen_right( windows * );
  174. void horizontal_screen_left( windows * );
  175. /************************************************************************/
  176.  
  177. /*************************  function prototypes in window.c *************/
  178. int  initialize_window( void );
  179. void choose_window( char *, windows * );
  180. void next_window( windows * );
  181. void prev_window( windows * );
  182. void split_screen( windows * );
  183. void size_window( windows * );
  184. void zoom_window( windows * );
  185. void next_hidden_window( windows * );
  186. void setup_window( windows * );
  187. void finish( windows * );
  188. int  create_window( windows **, int, int, file_infos * );
  189. int  edit_file( char * );
  190. void edit_another_file( windows * );
  191. /************************************************************************/
  192.  
  193. /*************************  function prototypes in tdeasm.c *************/
  194. text_ptr cpf( text_ptr );
  195. text_ptr cpb( text_ptr );
  196. unsigned long ptoul( text_ptr );
  197. text_ptr nptop( text_ptr );
  198. text_ptr addltop( long, text_ptr );
  199. int  find_CONTROL_Z( text_ptr );
  200. int  linelen( text_ptr );
  201. text_ptr  find_next( text_ptr );
  202. text_ptr  find_prev( text_ptr );
  203. void update_line( windows * );
  204. void update_char( windows *, int, int, int );
  205. void c_output( int, int, int, int );
  206. void s_output( char far *, int, int, int );
  207. void s_output_far( char far *, int, int, int );
  208. void eol_clear( int, int, int );
  209. /*****************************************************/
  210.  
  211. /***********  function prototype for simul101.asm *************/
  212. void far simulate_enh_kbd( int );
  213. /*****************************************************/
  214.