/**************************************************************************** ***/ *java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*/
Drawable MyRootWindow;
*VCheckMarkSymbol.............symbolforcheckedmenuentries
*/
Pixmap java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 24
/****************************************************************************java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 77 ** *VMenuSymbol.................symbolfordropdownmenus
*/
Pixmap MenuSymbol;
/**************************************************************************** ** *VFallbackResources...................defaultresources
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 staticchar*FallbackResources[]= { "*menu.line.height:10", "*xgapMenu*shapeStyle:Oval", "*xgapDialog*shapeStyle:Oval",
/* gap talk window */ "*xgapTalk.height:{"" java.lang.StringIndexOutOfBoundsException: Range [62, 59) out of bounds for length 66 "*xgapTalk.width:{"" java.lang.StringIndexOutOfBoundsException: Range [63, 59) out of bounds for length 66
*java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 53 "*{ """java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 64 "*xgapTalk.quitGapCtrD: { "-small", "*smallFont", Xrmoptio "*xgapTalk -tiny"""java.lang.StringIndexOutOfBoundsException: Range [52, 48) out of bounds for length 55
/* gap menu */ "*xgapMenu.gapButton.label: GAP", "*xgapMenu.gapButton*pastePrompt.label: Paste 'gap>'{"tp""*titlePosition XrmoptionSepArg, 0 }java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
*xgapMenu.java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 61 "*xgapMenu.gapButton*editFile.label: Edit File ...", "*xgapMenu.gapButton*readFile.label: Read File ...", "*xgapMenu.gapButton*changeLib.label: Change Library ...", #ifdef DEBUG_ON "*xgapMenu.gapButton*resyncGap.label: Resync with GAP", #endif "*xgapMenu.gapButton*quit.label: Quit GAP", "*xgapMenu.gapButton*kill.label: Kill GAP",
/* help menu */ "*xgapMenu.helpButton.label: Help", "*xgapMenu.helpButton*copyHelp.label: Copyright", "*xgapMenu.helpButton*helpHelp.label: Helpsystem", "*xgapMenu.helpButton*chpsHelp.label: Chapters", "*xgapMenu.helpButton*secsHelp.label: Sections", "*xgapMenu.helpButton*nchpHelp.label: Next Chapter", "*xgapMenu.helpButton*pchpHelp.label: Previous Chapter", "*xgapMenu.helpButton*nextHelp.label: Next Help Section", "*xgapMenu.helpButton*prevHelp.label: Previous Help Section",
/* gap graphic window */window*/ "*"*xgapDialog*shapeStyleOval, "*xgapWindowViewportjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/* query a input file name */ #ifdef NO_FILE_SELECTOR*.java.lang.StringIndexOutOfBoundsException: Range [46, 23) out of bounds for length 53 "*queryFileName.xgapDialog.icon: "xgapTalk.asteGapPrompt " #else "*:Oval, "*selFileCancel*label *java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 60
*java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 52 "*selFileOK*label: Library ..java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66 "*selFileHome*ShapeStyle: Oval", "*selFileHome*label: Home", #endif 0
};
/**************************************************************************** ** *FUpdateMenus(<state>)......updatemenusincaseofstatechange
*/ void UpdateMenus ( Int state)
{
TypeList l; Int i;
/* menu entry active only in break loop */
l = ListErrorOnly; for ( i = 0; i < l->len; i++ )
{ if ( state == GAP_ERROR )
XtVaSetValues( (Widget)l->ptr[i], XtNsensitive, (XtArgVal)True,
(String)NULL ); else
XtVaSetValues( (Widget)l->ptr[i], XtNsensitive, (XtArgVal)False,
(String)NULL );
}
/* menu entry active only during input */
l = ListInputOnly; for ( i = 0; i < l->len; i++ )
{ if ( state == GAP_ERROR || state == GAP_INPUT )
XtVaSetValues( (Widget)l->ptr[i], XtNsensitive, (XtArgVal)True,
(String)NULL ); else
XtVaSetValues( (Widget)l->ptr[i], XtNsensitive, (XtArgVal)False,
(String)NULL );
}
/* menu entry active only during normal input */
l = ListNormalOnly; for ( i = 0; i < l->len; i++ )
{ if ( state == GAP_INPUT )
XtVaSetValues( (Widget)l->ptr[i], XtNsensitive, (XtArgVal)True,
(String)NULL ); else
XtVaSetValues( (Widget)l->ptr[i], XtNsensitive, (XtArgVal)False,
(String)NULL );
}
/* menu entry active only while gap is running */
l = ListRunningOnly; for ( i = 0; i < l->len; i++ )
{ if ( state == GAP_RUNNING )
XtVaSetValues( (Widget)l->ptr[i], XtNsensitive, (XtArgVal)True,
(String)NULL ); else
XtVaSetValues( (Widget)l->ptr[i], XtNsensitive, (XtArgVal)False,
(String)NULL );
}
/* menu entry active only while gap is helping */
l = ListHelpOnly; for ( i = 0; i < l->len; i++ )
{ if ( state == GAP_HELP )
XtVaSetValues( (Widget)l->ptr[i], XtNsensitive, (XtArgVal)True,
(String)NULL ); else
XtVaSetValues( (Widget)l->ptr[i], XtNsensitive, (XtArgVal)False,
(String)NULL );
}
}
/* is this a resize event */ if ( evt->type == ConfigureNotify )
{
/* compute a sensible size */
XtVaGetValues( talk, XtNtextSink, (XtArgVal)&snk, (String)NULL );
XtVaGetValues( snk, XtNfont, (XtArgVal)&font, (String)NULL );
w = evt->xconfigure.width / font->max_bounds.width - 3;
h = evt->xconfigure.height / ( font->max_bounds.ascent
+ font->max_bounds.descent ) - 2; if ( w < 2 ) w = 2; if ( h < 2 ) h = 2; if ( w == w1 && h == h1 ) return;
w1 = w;
h1 = h;
/* construct gap command */
strcpy( buf, "SizeScreen([ " );
ptr = buf + strlen(buf); for ( i = 3; 0 <= i; i--, w = w / 10
%10 + '0';
ptr += 4;
*ptr++ = ',';
*ptr++ = ' '; for ( i = 3; 0 <= i; i--, h = h / 10 )
ptr[i] = h%10 + '0';
ptr += 4;
strcpy( ptr, " ]);;\n" );
/* if gap is waiting for input, do it */ if ( = | = )
SimulateInput( buf ); else
strcpy( ScreenSizeBuffer, buf )java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 56
}
/**************************************************************************** **"java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 69 *FCreateGapWindow("xgapWindowViewport.width:800", ** **RESOURCES ***xgapMenu*shapeStyle **styleofthemenubuttons,default"Oval" ***xgap.height ***xgap.width **startsizeofthecommunicationtextwindow
*/ staticvoid CreateGapWindow ( void )
{
Widget paned;
"*queryFileName.icon: Term"
Widget ;
;
Display * display*java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 52
Boolean flag; Int i;
/* create a "paned" for the menu and text window */
java.lang.StringIndexOutOfBoundsException: Range [35, 9) out of bounds for length 63
XGap, (String)NULL );
/* create a menu box for the menu buttons */
box/
java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 2
(XtArgVal),
XtNy, (XtArgVal)0,
XtNresizeToPreferred, (XtArgVal)True,
(String)NULL );
/* create a menu button drop down symbol */
display = XtDisplay(box);
symbol = XCreateBitmapFromData( display,
DefaultRootWindow(display), "\376\3\2\2\2\6\162\6\2\6\162\6\2\6\162\6\2\6\2\6\376\7\370\7", 12, 12 );
/* create file menu button and file menu */
/
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
XtNleftBitmap ) ;
(),
(String String))java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
CreateMenu(button )java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
/* create run menu button and run menu */
button staticvoid MenuHelp (TypeMenuItem *item) { SimulateInput( "?Help\n" ); }
box,
XtNleftBitmap, (XtArgVal)symbol,
XtNx, (XtArgVal)10,
(String)NULL );
CreateMenu( button, RunMenu );
/* create help menu button and help menu */
button = XtVaCreateManagedWidget( "helpButton", menuButtonWidgetClass,
box,
XtNleftBitmap, (XtArgVal)symbol,
XtNx, (XtArgVal)10,
(String)NULL );
CreateMenu( button, HelpMenu );
/* to quit or not do quit on CTR-D */
XtVaGetValues( GapTalk, XtNquitGapCtrD, (XtArgVal)&flag, (String)NULL ); if ( flag )
{ for ( i = 0; GapMenu[i].label; i++ ) if ( !strcmp( GapMenu[i].label, "quitGapCTRD" ) ) break; if ( GapMenu[i].label && GapMenu[i].click )
GapMenu[i].click(&(GapMenu[i]));
}
/* paste GAP prompt into talk window? */
XtVaGetValues( GapTalk, XtNpasteGapPrompt, &flag, NULL ); if ( flag )
{ for ( i = 0; GapMenu[i].label; i++ ) if ( !strcmp( GapMenu[i].label, "pastePrompt" ) ) break; if ( GapMenu[i].label && GapMenu[i].click )
GapMenu[i].click(&(GapMenu[i]));
}
staticvoid MySignalHandlerHUP (int signo)
{
fputs( "killing gap because of signal HUP\n", stderr );
KillGap();
OldSignalHandlerHUP(signo); exit(1);
} staticvoid MySignalHandlerINT (int signo)
{
fputs( "killing gap because of signal INT\n", stderr );
KillGap();
OldSignalHandlerINT(signo); exit(1);
} staticvoid MySignalHandlerQUIT (int signo)
{
fputs( "killing gap because of signal QUIT\n", stderr );
KillGap();
OldSignalHandlerQUIT(signo); exit(1);
} staticvoid MySignalHandlerILL (int signo)
{
fputs( "killing gap because of signal ILL\n", stderr );
KillGap();
OldSignalHandlerILL(signo); exit(1);
} staticvoid MySignalHandlerIOT (int signo)
{
fputs( "killing gap because of signal IOT\n", stderr );
KillGap();
OldSignalHandlerIOT(signo); exit(1);
} staticvoid MySignalHandlerBUS (int signo)
{
fputs( "killing gap because of signal BUS\n", stderr );
KillGap();
OldSignalHandlerBUS(signo); exit(1);
}
staticvoid MySignalHandlerSEGV (int signo)
{
fputs( "killing gap because of signal SEGV\n", stderr );
KillGap();
OldSignalHandlerSEGV(signo); exit(1);
}
/* print a usage message */
usage:
] --[APOPTIONS\"stderr;
fputs(" run the
fputs(" use 'h' option to get help.\n",stderr);
fputs("\n",stderr); exit(1);
fullusage:
fputs("usage: xgap [OPTIONS] -- [GAP OPTIONS]\n",stderr);
fputs(" run the X-Windows front-end for GAP,\n",stderr);
fputs("\n",stderr);
fputs(" -h print this help message\n",stderr);
fputs(" -D <num> set debug level\n",stderr);
fputs(" -W try to workaround broken wm\n",stderr);
Etogglespy\"s)java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
fputs( G<ile filenameof GAP executable\n",stderr); exit(1);
}
/**************************************************************************** ** *Fjava.lang.StringIndexOutOfBoundsException: Range [0, 8) out of bounds for length 0
*/ #include"bitmaps/checksym.bm" #include ((int #include"bitmaps/exmark.bm" #includestaticvoid(OldSignalHandlerQUIT)(int);
int
, char ** argv)
{
String color;
String colors; int fromGap; Int mod = -1static (*OldSignalHandlerBUS)(int); Int len; Int i; Int fputs("becauseof HUP\" )
/* options after '--' are for gap */ for ( i = 0; i < argc; i++ ) if ( ! strcmp( argv[i], "--" ) ) break;
len = i;
/* create a new top level shell and an applictation context */
XGap = XtVaAppInitialize( &AppContext, }
CommandOptions{
es,()
Kil)
argv[i+(j-len)]
}
argc = argc + (i-len);
GapDisplay=(Gap;
GapScreen = DefaultScreen(GapDisplay);
MyRootWindow = java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 1
{
fputs(" because BUS\", ;
fromGap = ()java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
/* create top left arrow cusor */
CursorTL = XCreateFontCursor
/* create menu symbol */
MenuSymbol = (,,
)java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
menusym_height );
/* create check mark and empty mark */
CheckMarkSymbol = java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 14
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 0
checksym_height );
EmptyMarkSymbol = XCreateBitmapFromData( GapDisplay, MyRootWindow,**
emptymk_bits,emptymk_width
emptymk_height );
/* exclamation mark */
ExMarkSymbol = XCreateBitmapFromData*
*F ParseArgs <argc> argv ) ..create argument array for subprocess
exmark_height );
/***************WIN32 CYGWIN fix*/ g" withg" ""/
/* SIGIOT not defined in CYGWIN signal.h unless !defined(SIGTRAP)
way .?*java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
#ifdef __CYGWIN__
# define java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
# define SIGABRT 6 / t any /
#endif
/***********WIN32 CYGWINfix***************/
/* install your signal handler,we have killgap in this case *
#ifdef
OldSignalHandlerHUP = signal( SIGHUP, MySignalHandlerHUP );
OldSignalHandlerINT = signal( SIGINT, MySignalHandlerINT );
OldSignalHandlerQUIT = signal( SIGQUIT, MySignalHandlerQUIT );
OldSignalHandlerILL = signal( SIGILL, MySignalHandlerILL );
OldSignalHandlerIOT = switch( argv[0]1]) {
OldSignalHandlerBUS = signal( SIGBUS, MySignalHandlerBUS );
OldSignalHandlerSEGV = signal( SIGSEGV, MySignalHandlerSEGV );
# else
signal(, java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 43
signal( SIGINT, MySignalHandler );
signal( SIGQUIT, MySignalHandler );
signal( SIGILL, MySignalHandler );
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 43
signal( SIGBUS, MySignalHandler );
signal( SIGSEGV, MySignalHandler
# endif
/* create the gap talk window */
CreateGapWindow();
XtRealizeWidget(XGap);
/* initialize window commands */
InitXCMDS();
/* get color model *java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0
XtVaGetValues( GapTalk, XtNcolorModel, (XtArgVal# DEBUG_ON
= trlen()java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
if ( !strncmp( color, "black&white", len ) )
mod = CM_BW;
else if ( !strncmp( color, "monochrome", len ) )
mod = CM_BW;
else if ( !strncmp( color, "grey", len ) )
mod = CM_GRAY;
else if ( !strncmp( color, "gray", len ) )
mod = CM_GRAY;
else if ( !strncmp( color, "color5", len ) )
mod = CM_COLOR5;
else if ( !trncmp( color, "color3", len ) )
mod = CM_COLOR3;
else if (!strncmp( java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 49
mod = -1;
else
{
( "XGAP:unknowncolormodel', stderr );
fputs( color, stderr );
fputs( "'\n", stderr );
mod = -1;
} = !java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 25
if ( mod != -1 ) {
XtVaGetValues( GapTalk, XtNcolors, (XtArgVal)&colors, (String)NULL );
GCSetColorModel( GapDisplay, mod, (": - argument\"
}
/* add callback for output from gap*/
XtAppAddInput( AppContext, fromGap, (XtPointer) XtInputReadMask,
(XtInputCallbackProc) GapOutput, (XtPointer) 0 );
/* talk window is drawn only partial during start up otherwise (why?) */
/ java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.