home *** CD-ROM | disk | FTP | other *** search
- /******************************************************************************
- *
- * xdbx - X Window System interface to dbx
- *
- * Copyright 1989 The University of Texas at Austin
- *
- * Author: Po Cheung
- * Date: March 10, 1989
- *
- * Permission to use, copy, modify, and distribute this software and
- * its documentation for any purpose and without fee is hereby granted,
- * provided that the above copyright notice appear in all copies and that
- * both that copyright notice and this permission notice appear in
- * supporting documentation. The University of Texas at Austin makes no
- * representations about the suitability of this software for any purpose.
- * It is provided "as is" without express or implied warranty.
- *
- ******************************************************************************/
-
-
- #include "defs.h"
-
- /* source.c */
-
- extern void source_init(); /* init routine */
- extern void CreateSourceWindow();
- extern char *QueryFile(); /* get dbx file variable */
- extern FileRec *LoadFile(); /* display source file */
-
- /* command.c */
-
- extern void CreateCommandPanel();
-
- /* dialog.c */
-
- extern XtActionProc MySelectWord(); /* double click select word */
- extern void CreateDialogWindow();
-
- /* windows.c */
-
- extern void CreateSubWindows(); /* all subwindows of xdbx */
- extern void UpdateFileLabel(); /* update current file name */
- extern void UpdateLineLabel(); /* update current line num */
- extern void UpdateMessageWindow(); /* update xdbx message */
-
- /* sign.c */
-
- extern void signs_init(); /* initilalize routine */
- extern void DisplayStop(); /* show stop sign */
- extern void UpdateStops(); /* update position of stops */
- extern void RemoveStop(); /* undisplay stop sign */
- extern void UpdateArrow(); /* update position of arrow */
- extern void UpdateUpdown(); /* update position of updown */
-
- /* parser.c */
-
- extern void parser_init(); /* compile patterns */
- extern void parse(); /* parse dbx output */
- extern void filter(); /* modify dbx output */
- extern int QueryDbx(); /* ask dbx for info */
-
- /* handler.c */
-
- extern void exec_handler(); /* run, cont, next, step */
- extern void stop_at_handler(); /* stop at line */
- extern void stop_in_handler(); /* stop in function */
- extern void updown_handler(); /* move up/down the stack */
- extern void list_handler(); /* list source code */
- extern void delete_handler(); /* delete stop signs */
- extern void func_handler(); /* display function */
- extern void file_handler(); /* display file */
- extern void debug_handler(); /* debug program */
- extern void cd_handler(); /* change directory */
-
- /* dbx.c */
- extern void DisplayInit(); /* initial source display */
- extern XtInputCallbackProc readDbx(); /* get data from dbx */
-
- /* calldbx.c */
- extern void calldbx(); /* fork child, exec dbx */
-
- /* signals.c */
- extern void trap_signals(); /* signal handling for xdbx */
-
- /* utils.c */
-
- extern void writeDbx(); /* send data to dbx */
- extern char *dbxpwd(); /* get working dir of dbx */
- extern XtTextPosition TextGetLastPos(); /* get last pos of text */
- extern void AppendDialogText(); /* append text to buffer */
- extern Line TextPositionToLine(); /* convert line # to text pos */
- extern int LineToStop_no(); /* convert line # to stop # */
- extern void DisableWindowResize(); /* do not allow window resize */
- extern void Bell(); /* sound bell */
-
-
- /* extern variables */
-
- extern Widget toplevel, vpane, titleBar, fileWindow, fileLabel, lineLabel,
- sourceWidget, sourceWindow, messageWindow, commandWindow,
- dialogWindow;
-
- extern XdbxResources app_resources; /* application resources */
- extern char *xdbxinit; /* temporary init filename */
- extern Boolean Homedir; /* .dbxinit or ~/.dbxinit */
-
- extern XtTextPosition StartPos; /* start pos of inserted text */
- extern FileRec *displayedFile; /* pointer to current file info */
- extern Tokens token; /* token structure */
-
- extern Boolean Echo; /* echo dbx output onto window ? */
- extern Boolean EnterCommand; /* command or program input ? */
- extern int outputsize; /* size of buffer for dbx output */
- extern int nfiles; /* number of files in file menu */
- extern int dbxpid; /* dbx process id */
- extern int dbxInputId; /* input id for input procedure */
- extern FILE *dbxfp; /* file pointer to dbx process */
-
- extern char DialogText[]; /* buffer for dialog window widget */
- extern char *output; /* buffer for dbx output */
- extern char Command[]; /* string for xdbx command entered */
- extern char *filelist[]; /* list of files in file menu */
-
- extern Arrow arrow; /* arrow widget and mapped info */
- extern Updown updown; /* updown widget and mapped info */
- extern Stops stops[]; /* stop widget and mapped info */
- extern Cardinal nstops; /* number of stops */
-