home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume3 / xdbx / part02 / global.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-03-14  |  4.7 KB  |  128 lines

  1. /****************************************************************************** 
  2.  *
  3.  *  xdbx - X Window System interface to dbx
  4.  *
  5.  *  Copyright 1989 The University of Texas at Austin
  6.  *
  7.  *  Author:    Po Cheung
  8.  *  Date:    March 10, 1989
  9.  *
  10.  *  Permission to use, copy, modify, and distribute this software and
  11.  *  its documentation for any purpose and without fee is hereby granted,
  12.  *  provided that the above copyright notice appear in all copies and that
  13.  *  both that copyright notice and this permission notice appear in
  14.  *  supporting documentation.  The University of Texas at Austin makes no 
  15.  *  representations about the suitability of this software for any purpose.  
  16.  *  It is provided "as is" without express or implied warranty.
  17.  *
  18.  ******************************************************************************/
  19.  
  20.  
  21. #include "defs.h"
  22.  
  23. /* source.c */
  24.  
  25. extern void        source_init();        /* init routine */
  26. extern void         CreateSourceWindow();
  27. extern char         *QueryFile();        /* get dbx file variable */
  28. extern FileRec         *LoadFile();        /* display source file */
  29.  
  30. /* command.c */
  31.  
  32. extern void        CreateCommandPanel();
  33.  
  34. /* dialog.c */
  35.  
  36. extern XtActionProc    MySelectWord();        /* double click select word */
  37. extern void        CreateDialogWindow();
  38.  
  39. /* windows.c */
  40.  
  41. extern void         CreateSubWindows();    /* all subwindows of xdbx */
  42. extern void         UpdateFileLabel();    /* update current file name */
  43. extern void         UpdateLineLabel();    /* update current line num */
  44. extern void         UpdateMessageWindow();    /* update xdbx message */
  45.  
  46. /* sign.c */
  47.  
  48. extern void        signs_init();        /* initilalize routine */
  49. extern void         DisplayStop();        /* show stop sign */
  50. extern void         UpdateStops();        /* update position of stops */
  51. extern void         RemoveStop();        /* undisplay stop sign */
  52. extern void         UpdateArrow();        /* update position of arrow */
  53. extern void         UpdateUpdown();        /* update position of updown */
  54.  
  55. /* parser.c */
  56.  
  57. extern void        parser_init();        /* compile patterns */
  58. extern void        parse();        /* parse dbx output */
  59. extern void        filter();        /* modify dbx output */
  60. extern int        QueryDbx();        /* ask dbx for info */
  61.  
  62. /* handler.c */
  63.  
  64. extern void         exec_handler();        /* run, cont, next, step */
  65. extern void         stop_at_handler();    /* stop at line */
  66. extern void         stop_in_handler();    /* stop in function */
  67. extern void         updown_handler();    /* move up/down the stack */
  68. extern void         list_handler();        /* list source code */
  69. extern void         delete_handler();    /* delete stop signs */
  70. extern void         func_handler();        /* display function */
  71. extern void         file_handler();        /* display file */
  72. extern void         debug_handler();    /* debug program */
  73. extern void         cd_handler();        /* change directory */
  74.  
  75. /* dbx.c */
  76. extern void        DisplayInit();        /* initial source display */
  77. extern XtInputCallbackProc readDbx();        /* get data from dbx */
  78.  
  79. /* calldbx.c */
  80. extern void        calldbx();        /* fork child, exec dbx */
  81.  
  82. /* signals.c */
  83. extern void        trap_signals();        /* signal handling for xdbx */
  84.  
  85. /* utils.c */
  86.  
  87. extern void         writeDbx();        /* send data to dbx */
  88. extern char         *dbxpwd();        /* get working dir of dbx */
  89. extern XtTextPosition    TextGetLastPos();    /* get last pos of text */
  90. extern void         AppendDialogText();    /* append text to buffer */
  91. extern Line         TextPositionToLine();    /* convert line # to text pos */
  92. extern int        LineToStop_no();    /* convert line # to stop # */
  93. extern void         DisableWindowResize();  /* do not allow window resize */
  94. extern void         Bell();            /* sound bell */
  95.  
  96.  
  97. /* extern variables */
  98.  
  99. extern Widget    toplevel, vpane, titleBar, fileWindow, fileLabel, lineLabel,
  100.             sourceWidget, sourceWindow, messageWindow, commandWindow, 
  101.         dialogWindow;
  102.  
  103. extern XdbxResources app_resources;    /* application resources */
  104. extern char    *xdbxinit;        /* temporary init filename */
  105. extern Boolean    Homedir;        /* .dbxinit or ~/.dbxinit */
  106.  
  107. extern XtTextPosition     StartPos;    /* start pos of inserted text */
  108. extern FileRec       *displayedFile;    /* pointer to current file info */
  109. extern Tokens        token;        /* token structure */
  110.  
  111. extern Boolean     Echo;            /* echo dbx output onto window ? */
  112. extern Boolean    EnterCommand;        /* command or program input ? */
  113. extern int     outputsize;        /* size of buffer for dbx output */
  114. extern int      nfiles;            /* number of files in file menu */
  115. extern int    dbxpid;            /* dbx process id */
  116. extern int    dbxInputId;        /* input id for input procedure */
  117. extern FILE    *dbxfp;            /* file pointer to dbx process */
  118.  
  119. extern char    DialogText[];        /* buffer for dialog window widget */
  120. extern char    *output;        /* buffer for dbx output */
  121. extern char     Command[];        /* string for xdbx command entered */
  122. extern char     *filelist[];        /* list of files in file menu */
  123.  
  124. extern Arrow    arrow;            /* arrow widget and mapped info */
  125. extern Updown   updown;            /* updown widget and mapped info */
  126. extern Stops    stops[];        /* stop widget and mapped info */
  127. extern Cardinal nstops;            /* number of stops */
  128.