home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / EDITOR / TDE120.ZIP / GLOBAL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-05  |  7.1 KB  |  135 lines

  1. /*******************  start of original comments  ********************/
  2. /*
  3.  * Written by Douglas Thomson (1989/1990)
  4.  *
  5.  * This source code is released into the public domain.
  6.  */
  7. /*********************  end of original comments   ********************/
  8.  
  9. /*
  10.  * New editor name:  tde, the Thomson-Davis Editor.
  11.  * Author:           Frank Davis
  12.  * Date:             June 5, 1991
  13.  *
  14.  * This modification of Douglas Thomson's code is released into the
  15.  * public domain, Frank Davis.  You may distribute it freely.
  16.  *
  17.  * See "tdestr.h" for a description of these variables. (C requires global
  18.  *  variables to be declared "extern" in all modules except one. This file
  19.  *  is only included by the main "ed.c" module.)
  20.  */
  21.  
  22. #include <stdio.h>
  23. #include <string.h>
  24. #include <ctype.h>
  25. #include <conio.h>
  26. #ifdef __TURBOC__
  27.    #include <stdlib.h>
  28. #elif __MSC__
  29.    #include <stdlib.h>
  30.    #if defined( toupper )
  31.        #undef toupper
  32.    #endif
  33. #endif
  34.  
  35. displays g_display;
  36.  
  37. status_infos g_status;
  38.  
  39. boyer_moore_type bm;
  40.  
  41. mode_infos mode = {
  42.    0,           /* initial color scheme */
  43.    TRUE,        /* insert mode */
  44.    TRUE,        /* indent mode */
  45.    8,           /* tab size */
  46.    FALSE,       /* use backup files */
  47.    FALSE,       /* stream delete with the delete key */
  48.    FALSE,        /* enhanced keyboard flag */
  49.    "<=======   End of File   ========>"        /* eof message */
  50. };
  51.  
  52. /*
  53.  * do_it is an array of pointers to functions that return void with an argument
  54.  * that is a pointer to a window.  Is that right???
  55.  */
  56. void (* (do_it[77]))( windows * ) = {
  57.    insert_overwrite,                /*   regular text keys       0   */
  58.    get_help,                        /*   Help                    1   */
  59.    insert_newline,                  /*   Rturn                   2   */
  60.    next_line,                       /*   NextLine                3   */
  61.    beg_next_line,                   /*   BegNextLine             4   */
  62.    move_down,                       /*   LineDown                5   */
  63.    move_up,                         /*   LineUp                  6   */
  64.    move_right,                      /*   CharRight               7   */
  65.    move_left,                       /*   CharLeft                8   */
  66.    word_right,                      /*   WordRight               9   */
  67.    word_left,                       /*   WordLeft                10  */
  68.    page_down,                       /*   ScreenDown              11  */
  69.    page_up,                         /*   ScreenUp                12  */
  70.    goto_end_file,                   /*   EndOfFile               13  */
  71.    goto_top_file,                   /*   TopOfFile               14  */
  72.    goto_bottom,                     /*   BotOfScreen             15  */
  73.    goto_top,                        /*   TopOfScreen             16  */
  74.    goto_right,                      /*   EndOfLine               17  */
  75.    goto_left,                       /*   BegOfLine               18  */
  76.    goto_line,                       /*   JumpToLine              19  */
  77.    center_window,                   /*   CenterWindow            20  */
  78.    center_window,                   /*   CenterLine              21  */
  79.    horizontal_screen_right,         /*   HorizontalScreenRight   22  */
  80.    horizontal_screen_left,          /*   HorizontalScreenLeft    23  */
  81.    scroll_down,                     /*   ScrollDnLine            24  */
  82.    scroll_up,                       /*   ScrollUpLine            25  */
  83.    fixed_scroll_up,                 /*   FixedScrollUp           26  */
  84.    fixed_scroll_down,               /*   FixedScrollDn           27  */
  85.    toggle_overwrite,                /*   ToggleOverWrite         28  */
  86.    toggle_indent,                   /*   ToggleIndent            29  */
  87.    toggle_sdel,                     /*   ToggleSdel              30  */
  88.    set_tabstop,                     /*   SetTabs                 31  */
  89.    tab_key,                         /*   Tab                     32  */
  90.    match_pair,                      /*   ParenBalance            33  */
  91.    back_space,                      /*   BackSpace               34  */
  92.    char_del_under,                  /*   DeleteChar              35  */
  93.    line_kill,                       /*   DeleteLine              36  */
  94.    eol_kill,                        /*   DelEndOfLine            37  */
  95.    word_delete,                     /*   WordDelete              38  */
  96.    insert_newline,                  /*   AddLine                 39  */
  97.    insert_newline,                  /*   SplitLine               40  */
  98.    join_line,                       /*   JoinLine                41  */
  99.    dup_line,                        /*   DuplicateLine           42  */
  100.    undo_line,                       /*   AbortCommand            43  */
  101.    undo_line,                       /*   UndoLine                44  */
  102.    undo,                            /*   UndoDelete              45  */
  103.    toggle_search_case,              /*   ToggleSearchCase        46  */
  104.    find_string,                     /*   FindForward             47  */
  105.    find_string,                     /*   FindBackward            48  */
  106.    find_string,                     /*   RepeatFindForward       49  */
  107.    find_string,                     /*   RepeatFindBackward      50  */
  108.    replace_string,                  /*   ReplaceForward          51  */
  109.    replace_string,                  /*   ReplaceBackward         52  */
  110.    mark_block,                      /*   MarkBlock               53  */
  111.    mark_block,                      /*   MarkLine                54  */
  112.    unmark_block,                    /*   UnMarkBlock             55  */
  113.    move_copy_delete_overlay_block,  /*   FillBlock               56  */
  114.    move_copy_delete_overlay_block,  /*   CopyBlock               57  */
  115.    move_copy_delete_overlay_block,  /*   KopyBlock               58  */
  116.    move_copy_delete_overlay_block,  /*   MoveBlock               59  */
  117.    move_copy_delete_overlay_block,  /*   OverlayBlock            60  */
  118.    move_copy_delete_overlay_block,  /*   DeleteBlock             61  */
  119.    block_write,                     /*   BlockToFile             62  */
  120.    block_print,                     /*   PrintBlock              63  */
  121.    block_expand_tabs,               /*   BlockExpandTabs         64  */
  122.    file_file,                       /*   File                    65  */
  123.    edit_another_file,               /*   EditFile                66  */
  124.    save_file,                       /*   Save                    67  */
  125.    save_as_file,                    /*   SaveAs                  68  */
  126.    redraw_screen,                   /*   RedrawScreen            69  */
  127.    size_window,                     /*   SizeWindow              70  */
  128.    split_screen,                    /*   SplitScreen             71  */
  129.    next_window,                     /*   NextWindow              72  */
  130.    prev_window,                     /*   PreviousWindow          73  */
  131.    zoom_window,                     /*   ZoomWindow              74  */
  132.    next_hidden_window,              /*   NextHiddenWindow        75  */
  133.    quit                             /*   Quit                    76  */
  134. };
  135.