home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume8 / xdbx / part02 / global.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-28  |  6.9 KB  |  180 lines

  1. /*****************************************************************************
  2.  *
  3.  *  xdbx - X Window System interface to the dbx debugger
  4.  *
  5.  *  Copyright 1989 The University of Texas at Austin
  6.  *  Copyright 1990 Microelectronics and Computer Technology Corporation
  7.  *
  8.  *  Permission to use, copy, modify, and distribute this software and its
  9.  *  documentation for any purpose and without fee is hereby granted,
  10.  *  provided that the above copyright notice appear in all copies and that
  11.  *  both that copyright notice and this permission notice appear in
  12.  *  supporting documentation, and that the name of The University of Texas
  13.  *  and Microelectronics and Computer Technology Corporation (MCC) not be 
  14.  *  used in advertising or publicity pertaining to distribution of
  15.  *  the software without specific, written prior permission.  The
  16.  *  University of Texas and MCC makes no representations about the 
  17.  *  suitability of this software for any purpose.  It is provided "as is" 
  18.  *  without express or implied warranty.
  19.  *
  20.  *  THE UNIVERSITY OF TEXAS AND MCC DISCLAIMS ALL WARRANTIES WITH REGARD TO
  21.  *  THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  22.  *  FITNESS, IN NO EVENT SHALL THE UNIVERSITY OF TEXAS OR MCC BE LIABLE FOR
  23.  *  ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
  24.  *  RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
  25.  *  CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  26.  *  CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  27.  *
  28.  *  Author:      Po Cheung
  29.  *  Created:       March 10, 1989
  30.  *
  31.  *****************************************************************************/
  32.  
  33. /*  global.h:
  34.  *
  35.  *    Contain extern declarations of variables and functions.
  36.  */
  37.  
  38. #include "defs.h"
  39.  
  40. /* calldbx.c */
  41.  
  42. extern void        calldbx();        /* fork child, exec dbx */
  43.  
  44. /* command.c */
  45.  
  46. extern void        CreateCommandPanel();
  47. extern void        send_command();
  48. extern char        *get_command();
  49. extern void        insert_command();
  50. extern void        delete_command();
  51.  
  52. /* datadpy.c */
  53.  
  54. extern void        print_handler();    /* printing variables */
  55.  
  56. /* dbx.c */
  57.  
  58. extern void        debug_init();        /* initial source display */
  59. extern void         read_dbx();        /* get data from dbx */
  60. extern void         write_dbx();        /* send data to dbx */
  61. extern void        query_dbx();        /* ask dbx for info */
  62.  
  63. /* dialog.c */
  64.  
  65. extern void        DeleteLine();        /* delete line action proc */
  66. extern void        DeleteWord();        /* delete word action proc */
  67. extern void        CreateDialogWindow();
  68. extern void         AppendDialogText();    /* append text to buffer */
  69.  
  70. /* filemenu.c */
  71.  
  72. extern void        File();            /* file button callback */
  73.  
  74. /* handler.c */
  75.  
  76. extern void        TextSetTopPosition();    /* sets topDisplayPosition */
  77. extern void         AdjustText();        /* adjust display position */
  78. extern void         exec_handler();        /* run, cont, next, step */
  79. extern void         done_handler();        /* run, cont, next, step */
  80. extern void         stop_at_handler();    /* stop at line */
  81. extern void         stop_in_handler();    /* stop in function */
  82. extern void         updown_handler();    /* move up/down the stack */
  83. extern void         delete_handler();    /* delete stop signs */
  84. extern void         func_handler();        /* display function */
  85. extern void         file_handler();        /* display file */
  86. extern void         debug_handler();    /* debug program */
  87. extern void         cd_handler();        /* change directory */
  88. extern void         pwd_handler();        /* print working directory */
  89. extern void         use_handler();        /* update use directory list */
  90. extern void         search_handler();    /* display searched string */
  91. extern void         list_handler();        /* list source code */
  92. extern void         display_handler();    /* show display variables */
  93.  
  94. /* parser.c */
  95.  
  96. extern void        parser_init();        /* initialization */
  97. extern void        parse();        /* parse dbx output */
  98. extern void        filter();        /* modify dbx output */
  99.  
  100. /* signals.c */
  101. extern void        trap_signals();        /* signal handling for xdbx */
  102.  
  103. /* signs.c */
  104.  
  105. extern void        signs_init();        /* initilalize routine */
  106. extern void         DisplayStop();        /* show stop sign */
  107. extern void         UpdateStops();        /* update position of stops */
  108. extern void         ClearStops();        /* mark all stops invalid */
  109. extern void         RemoveStop();        /* undisplay stop sign */
  110. extern void         UpdateArrow();        /* update position of arrow */
  111. extern void         UpdateUpdown();        /* update position of updown */
  112. extern void         UpdateBomb();        /* update position of bomb */
  113.  
  114. /* source.c */
  115.  
  116. extern void        SelectStart();        /* modified select-start */
  117. extern void        SelectEnd();        /* modified select-end */
  118. extern void        SelectWord();        /* my select word */
  119. extern void        PrintSelection();    /* select variable and print */
  120. extern void        Update();        /* update line label */
  121. extern void        source_init();        /* init routine */
  122. extern void         CreateSourceWindow();
  123. extern int         LoadFile();        /* display source file */
  124. extern int         LoadCurrentFile();    /* display source file */
  125. extern char        *GetPathname();        /* get full path name of file */
  126. extern void        MakeDirList();        /* maintain list of dirs */
  127.  
  128. /* utils.c */
  129.  
  130. extern XawTextPosition    TextGetLastPos();    /* get last pos of text */
  131. extern int         TextPositionToLine();    /* convert line # to text pos */
  132. extern int        LineToStop_no();    /* convert line # to stop # */
  133. extern void         DisableWindowResize();  /* do not allow window resize */
  134. extern void         bell();            /* sound bell */
  135. extern char         *concat();        /* substring search */
  136.  
  137. /* windows.c */
  138.  
  139. extern void         CreateSubWindows();    /* all subwindows of xdbx */
  140. extern void         UpdateFileLabel();    /* update current file name */
  141. extern void         UpdateLineLabel();    /* update current line num */
  142. extern void         UpdateMessageWindow();    /* update xdbx message */
  143.  
  144. /* extern variables */
  145.  
  146. extern Display    *display;
  147. extern XtAppContext     app_context;
  148. extern Widget    toplevel, fileWindow, 
  149.             sourceForm, sourceWindow, messageWindow, commandWindow, 
  150.         dialogWindow, searchWindow, separator, displayWindow;
  151.  
  152. extern Cursor    watch;            /* XC_watch cursor */
  153. extern XdbxResources app_resources;    /* application resources */
  154. extern char    xdbxinit[];        /* initialization filename */
  155. extern char    *dbxprompt;        /* dbx prompt string */
  156. extern char    *xdbxprompt;        /* xdbx prompt string */
  157. extern Boolean    Tstartup;
  158. extern Boolean    debug;
  159.  
  160. extern FileRec       *displayedFile;    /* pointer to current file info */
  161. extern Tokens        Token;        /* token structure */
  162. extern PatternRec       dataPattern[];     /* data display pattern */
  163.  
  164. extern Boolean     Echo;            /* echo dbx output onto window ? */
  165. extern Boolean    Prompt;            /* command or program input ? */
  166. extern Boolean    Parse;            /* flag for parser */
  167. extern Boolean    FalseSignal;        /* real/false signal ? */
  168. extern Boolean    PopupMode;        /* True if graphical display */
  169. extern int    dbxpid;            /* dbx process id */
  170. extern FILE    *dbxfp;            /* file pointer to dbx process */
  171.  
  172. extern char     CurrentFile[];        /* string for dbx output */
  173. extern char     cwd[];            /* current working directory of dbx */
  174.  
  175. extern Arrow    arrow;            /* arrow widget and mapped info */
  176. extern Updown   updown;            /* updown widget and mapped info */
  177. extern Stops    stops[];        /* stop widget and mapped info */
  178. extern Bomb    bomb;            /* bomb widget and mapped info */
  179. extern Cardinal nstops;            /* number of stops */
  180.