--- ./mxgdb.c Thu Jan 6 09:56:58 1994 +++ ../mxgdb-1.2.1/./mxgdb.c Tue May 9 16:31:47 2000 @@ -49,6 +49,164 @@ Boolean debug = False; /* debug mode for mxgdb */ #endif +String fallback_resources[] = { + "*fontList:-adobe-helvetica-bold-r-normal--12-120-75-75-p-70-iso8859-1", + "*button_color: black", + "*stop_color: red", + "*arrow_color: blue", + "*updown_color: blue", + "*bomb_color: red", + "*bell: False", + "*bigicon: False", + "*useCommandDialog: False", + "*commandDialog.autoUnmanage: False", + "*commandDialog.noResize: True", + "*commandDialog.resizePolicy: RESIZE_NONE", + "*topMenuBar.topAttachment: ATTACH_FORM", + "*topMenuBar.leftAttachment: ATTACH_FORM", + "*topMenuBar.rightAttachment: ATTACH_FORM", + "*fileWindow.height: 20", + "*fileWindow*fileLabel.borderWidth: 1", + "*fileWindow*lineLabel.borderWidth: 1", + "*fileWindow*fileLabel.leftAttachment: ATTACH_POSITION", + "*fileWindow*fileLabel.leftPosition: 41", + "*fileWindow*fileLabel.rightAttachment: ATTACH_POSITION", + "*fileWindow*fileLabel.rightPosition: 86", + "*fileWindow*lineLabel.rightAttachment: ATTACH_FORM", + "*fileWindow*lineLabel.leftAttachment: ATTACH_POSITION", + "*fileWindow*lineLabel.leftPosition: 87", + "*fileWindow*fileLabel.labelString: No Source File", + "*fileWindow*lineLabel.labelString: No Line", + "*fileWindow*functionLabel.borderWidth: 1", + "*fileWindow*functionLabel.leftAttachment: ATTACH_FORM", + "*fileWindow*functionLabel.rightAttachment: ATTACH_POSITION", + "*fileWindow*functionLabel.rightPosition: 40", + "*fileWindow*functionLabel.labelString: No Current Function", + "*sourceScroll.paneMinimum: 100", + "*sourceForm.borderWidth: 0", + "*sourceForm.shadowThickness: 0", + "*sourceForm.width: 500", + "*sourceForm.height: 300", + "*messageWindow.alignment: ALIGNMENT_BEGINNING", + "*messageWindow.labelString:", + "*sourceWindow.borderWidth: 0", + "*sourceWindow.highlightThickness: 0", + "*sourceWindow.shadowThickness: 0", + "*sourceWindow.rows: 19", + "*sourceWindow.marginWidth: 5", + "*sourceWindow.fontList: 6x13", + "*sourceWindow.editMode: MULTI_LINE_EDIT", + "*sourceWindow.rightAttachment: ATTACH_FORM", + "*sourceWindow.bottomAttachment: ATTACH_FORM", + "*sourceWindow.topAttachment: ATTACH_FORM", + "*sourceWindow.leftAttachment: ATTACH_WIDGET", + "*sourceWindow.editable: False", + "*sourceWindow.translations: #override \\n\ + Shift,Shift: SelectWord() \\n\ + : extend-end() \\n\ + Up: process-up() \\n\ + Down: process-down() \\n\ + Left: backward-character() \\n\ + Right: forward-character() \\n\ + Next: next-page() \\n\ + Prior: previous-page() \\n\ + CtrlPrior: page-left() \\n\ + CtrlNext: page-right() \\n\ + CtrlHome: beginning-of-file() \\n\ + CtrlEnd: end-of-file()", + "*sourceDrawingArea.shadowThickness: 0", + "*sourceDrawingArea.leftAttachment: ATTACH_FORM", + "*sourceDrawingArea.bottomAttachment: ATTACH_FORM", + "*sourceDrawingArea.topAttachment: ATTACH_FORM", + "*sourceDrawingArea.rightAttachment: ATTACH_NONE", + "*sourceDrawingArea.marginHeight: 0", + "*sourceDrawingArea.marginWidth: 0", + "*sourceDrawingArea.width: 36", + "*sourceScroll.scrollBarPlacement: BOTTOM_LEFT", + "*scrollV.orientation: VERTICAL", + "*vpane.bottomAttachment: ATTACH_FORM", + "*vpane.leftAttachment: ATTACH_FORM", + "*vpane.rightAttachment: ATTACH_FORM", + "*messageWindow.height: 25", + "*dialogWindowSW.paneMinimum: 50", + "*dialogWindow.height: 200", + "*dialogWindow.fontList: 6x13", + "*dialogWindow.editMode: MULTI_LINE_EDIT", + "*dialogWindow.autoShowCursorPosition: True", + "*dialogWindow.scrollingPolicy: AUTOMATIC", + "*dialogWindow.scrollLeftSide: True", + "*dialogWindow.wordWrap: True", + "*dialogWindow.translations: #override \\n\ + Shift,Shift: SelectWord() \\n\ + : CopyPrimaryEnd() \\n\ + CtrlC: SigInt()\\n\ + CtrlD: SigEof()\\n\ + Ctrl|: SigQuit()\\n\ + osfBackSpace: InsertSpace() delete-previous-character() \\n\ + Return: end-of-file() newline() Dispatch() \\n\ + : end-of-file() self-insert()", + "*displayWindow.translations: #override \\n\ + : set-insertion-point() SelectVar()", + "*displayWindowFD.height: 150", + "*displayWindowFD.width: 200", + "*displayWindowFD_popup.title: Mxgdb Display Window", + "*displayWindow.fontList: 6x13", + "*displayWindow.editable: False", + "*displayWindow.editMode: MULTI_LINE_EDIT", + "*displayWindow.scrollLeftSide: True", + "*displayWindow.cursorPositionVisible: False", + "*displayWindow.scrollBarDisplayPolicy: STATIC", + "*displayWindow.scrollHorizontal: True", + "*displayWindow.scrollVertical: True", + "*displayWindowSW.leftAttachment: ATTACH_FORM", + "*displayWindowSW.rightAttachment: ATTACH_FORM", + "*displayWindowSW.bottomAttachment: ATTACH_FORM", + "*displayWindowSW.topAttachment: ATTACH_FORM", + "*infoWindow_popup.title: Mxgdb Info Window", + "*infoWindow.messageString: MXGDB 1.2.1\\n\ +adapted by Jim Tsillas from work by\\n\ +Pierre Willard (xxgdb) and Po Cheung (xdbx)\\n\ +Jan 11, 1993\\n\ +Questions, comments to jtsilla@copley.ccs.neu.edu", + "*helpWindow_popup.title: Mxgdb Help Window", + "*helpWindow*scrollHW.width: 500", + "*helpWindow*scrollHW.height: 400", + "*helpWindow*scrollHW.scrollingPolicy: AUTOMATIC", + "*helpWindow*scrollHW.scrollBarPlacement: BOTTOM_LEFT", + "*helpWindow*scrollHW.leftAttachment: ATTACH_FORM", + "*helpWindow*scrollHW.rightAttachment: ATTACH_FORM", + "*helpWindow*scrollHW.topAttachment: ATTACH_FORM", + "*helpWindow*scrollHW.bottomAttachment: ATTACH_FORM", + "*helpWindow*scrollHW.bottomOffset: 45", + "*helpWindow*scrollHW.rightOffset: 5", + "*helpWindow*scrollHW.leftOffset: 5", + "*helpWindow*scrollHW.topOffset: 5", + "*helpWindow*separatorHW.bottomAttachment: ATTACH_FORM", + "*helpWindow*separatorHW.leftAttachment: ATTACH_FORM", + "*helpWindow*separatorHW.rightAttachment: ATTACH_FORM", + "*helpWindow*separatorHW.bottomOffset: 35", + "*helpWindow*upbuttonHW.arrowDirection: ARROW_UP", + "*helpWindow*upbuttonHW.bottomAttachment: ATTACH_FORM", + "*helpWindow*upbuttonHW.rightAttachment: ATTACH_FORM", + "*helpWindow*upbuttonHW.bottomOffset: 5", + "*helpWindow*upbuttonHW.rightOffset: 5", + "*helpWindow*uplabelHW.bottomAttachment: ATTACH_FORM", + "*helpWindow*uplabelHW.rightAttachment: ATTACH_FORM", + "*helpWindow*uplabelHW.bottomOffset: 7", + "*helpWindow*uplabelHW.rightOffset: 30", + "*helpWindow*uplabelHW.labelString: Previous Menu:", + "*helpWindow*quitbuttonHW.bottomAttachment: ATTACH_FORM", + "*helpWindow*quitbuttonHW.leftAttachment: ATTACH_FORM", + "*helpWindow*quitbuttonHW.bottomOffset: 5", + "*helpWindow*quitbuttonHW.leftOffset: 5", + "*helpWindow*quitbuttonHW.labelString: Quit", + "*fileSelectorBox_popup.title: Mxgdb File Select", + "*searchWindow_popup.title: Mxgdb String Search", + "*exitQD.messageString: OK to Exit Mxgdb?", + "*exitQD_popup.title: Mxgdb Exit", + NULL +}; + static XtResource resources[] = { { "useCommandDialog", "UseCommandDialog", XtRBoolean, sizeof(Boolean), Offset(useCommandDialog), XtRImmediate, (caddr_t)False }, @@ -220,7 +378,8 @@ XtSetArg(args[0], XmNkeyboardFocusPolicy, XmPOINTER); toplevel = XtAppInitialize(&app_context, "Mxgdb", options, - XtNumber(options), &argc, argv, NULL, args, 1); + XtNumber(options), &argc, argv, + fallback_resources, args, 1); #if XtSpecificationRelease >= 5 XtAddEventHandler (toplevel, (EventMask) 0, True, --- ./regex.c Wed Jan 5 21:43:39 1994 +++ ../mxgdb-1.2.1/./regex.c Tue May 9 16:24:06 2000 @@ -37,7 +37,11 @@ #ifdef _AIX #pragma alloca #else +#if defined(sgi) +#include +#else char *alloca (); +#endif #endif #endif /* sparc */ #endif /* not __GNUC__ */