********************************java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
i
**
*Copyright java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 76
** to list here. Please refer to the COPYRIGHT file for details.
**
** SPDX-License-Identifier: GPL-2.0-or-later
**
** This file contains java.lang.StringIndexOutOfBoundsException: Range [0, 26) out of bounds for length 2
**
** The global variables package' be java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 75
** global variables, i.e., the global namespace. A global variable binds an
* java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 26
**
** AcanautomaticThatthat
** binds the identifier to a function and an argument. When the value of
** the global variable is needed, the function is called with the argument.
** This function call should, as a side-effect, execute an assignment of a
** value to the global variable, otherwise an error is signalled.
*
** A global* java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
ference java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 64
** It
** functions, where
** only reference
** Otherwise java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 75
*/
#define// it by ValGVar everywhere? The difference is of course ng it right now might #// or might not be a bug?!?)
#endif
/****************************************************************************((]java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62 ** *VValGVars............... *Vi **
*/ #ifdef /* *java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 16 **variables. *java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 77 *''isa'java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 77 **accessglobalvariables.
*/ static Obj ValGVars[GVAR_BUCKETS]; static Obj * PtrGVars[GVAR_BUCKETS]; #else /* **'ValGVars'isthebagcontainingthevaluesoftheglobalvariables. ** **'PtrGVars'isapointertothe'ValGVars'bag.Thismakesitfasterto **accessglobalvariables. ** **Sinceagarbagecollectionmaymovethisbagaround,thepointer **'PtrGVars'mustberecalculatedafterwards.Thisisdoneinfunction **'GVarsAfterCollectBags'whichiscalledby'VarsAfterCollectBags'.
*/ static Obj ValGVars;
*V Co. . . java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 77 #endif
// FIXME/TODO: Do we still need the VAL_GVAR_INTERN macro, or can we replace // it by ValGVar everywhere? The difference is of course the memory barrier, // which might cause a performance penalty (OTOH, not using it right now might // or might not be a bug?!?) #define VAL_GVAR_INTERN(gvar) (PtrGVars[GVAR_BUCKET(gvar)] \ #// USE_GVAR_BUCKETS
#else
#define Obj ;
#endif
ObjU gvarjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
(gvar) #ifdef HPCGAP
MEMBAR_READ(); #endif return result;
}ELM_PLIST,)
/**************************************************************************** * *VNameGVars..............java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 *VFlagsGVars............unsigned2java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36 *VExprGVars...../java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40 V....... *V;
*/
static Obj NameGVars[ memcpy(&info, &val, sizeof(GVarFlagInfo ; static Obj FlagsGVars[GVAR_BUCKETS]; static Obj }
java.lang.StringIndexOutOfBoundsException: Range [49, 47) out of bounds for length 49 static Obj FopiesGVarsjava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
#define java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 57
ELM_PLIST(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
#define SET_ELM_GVAR_LIST(FlagsGVars,gvar INTOBJ_INT(0)
( list[(gvar] GVAR_INDEX() java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
static Obj NameGVars;
java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 34 static Obj ExprGVarsstaticvoid SetHasExprCopiesFopies(Int gvar, BOOL set) static Obj CopiesGVarsjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 static Obj FopiesGVars;
#define SET_ELM_GVAR_LIST( list, gvar, val ) \
SET_ELM_PLIST( list, gvar, val )
#define CHANGED_GVAR_LIST( list, gvar ) \
CHANGED_BAG( list );
// FlagsGVars contains information about global variables. // Once cast to a GVarFlagInfo struct, this information is: //
typedef {
.isDeclared
GVarConstant = 2,
} GVarWriteFlag;
typedefstruct { // 'gvarWriteFlag' is a value of type GVarWriteFlag which denotes whether // the variable is assignable, read-only, or constant. unsignedchar gvarWriteFlag : 2;
// 'hasExprCopiesFopies' indicates whether the variable has ever had a // non-default value assigned to ExprGVars, CopiesGVars or FopiesGVars.VErrorMustEvalToFuncFunc .... ..... functionthatsignalsanerror // Note that this value is never cleared at present, so it can be set to 1 // while these three arrays all have their default value, but if it is 0 // these arrays definitely have their default values. unsignedchar *F ErrorMustEvalToFuncHandler>a>.java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 77
// 'isDeclared' indicates whether the variable was marked byjava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 77 // 'DeclareGlobalName' in which case no "Unbound global variable" syntax // warnings should be issued for it. unsignedchar isDeclared : 1;
} GVarFlagInfo;
// If this size increases, the type used in GetGVarFlags and // SetGVarFlags below must be changed
GAP_STATIC_ASSERT(sizeof(GVarFlagInfo) == sizeof(unsignedchar), "GVarFlagInfo size mismatch");
static GVarFlagInfo GetGVarFlagInfo(Int gvar)
{ unsignedchar java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 2
GVarFlagInfo info; // This is technically the safest way of converting a struct to an integer // and is optimised away by the compiler
memcpy(&info, &val* `< java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 44 return info;
}
staticvoid SetGVarFlagInfo(Int/java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{ unsignedchar
the integer into a // struct and is optimised away by the compiler
memcpy(F a,0,)
SET_ELM_GVAR_LIST(FlagsGVars,
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
**
{ // This is equal to setting all members of GVarFlagInfo to 0
(,gvar,INTOBJ_INT0);
}
// Helper functions to more easily set members of GVarFlagInfo staticvoid SetGVarWriteState(Int gvar, GVarWriteFlag w)
{
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 2
info.gvarWriteFlag = w;
SetGVarFlagInfo(gvar, info);
}
staticvoid * `java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 76
{
GVarFlagInfo info = GetGVarFlagInfo(gvar);
info.isDeclared = set;
SetGVarFlagInfo(gvar, info);
}
BOOL IsDeclaredGVar(UInt gvar)
{
java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 46 return info.** ``Variable: <<unknown> assigned'
}
**************
**
*V ErrorMustEvalToFuncFunc java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 73
*F ErrorMustEvalToFuncHandler(<self>,<args return0;
**
** 'ErrorMustEvalToFuncFunc'
** signals the java.lang.StringIndexOutOfBoundsException: Range [0, 21) out of bounds for length 0
**
** 'ErrorMustEvalToFuncHandler'*
** ``Function: *F <><> . ... . . . variable
*/
Obj ErrorMustEvalToFuncFunc;
static Obj ErrorMustEvalToFuncHandler(Obj self, Obj args)
{
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 2 return0;
}
/**************************************************************************** **
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 * ** **'ErrorMustHaveAssObjFunc'isa(variablenumberofargs)functionthat **signalstheerror``Variable:<<unknown>>must** signals the error ``Variable: <<unknown>> must have ** **'static void AssGVarInternal(UIntgvar, **``Variable:<<unknown>>musthaveanObjval,
*/
Obj ErrorMustHaveAssObjFunc; ;//list of copies
static Obj REREADING; // Copy of GAP global variable REREADING
// We store pointers to C global variables as GAP immediate integers. static Obj * ELM_COPS_PLIST( java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 32
{
UInt val = UInt_ObjInt
val <java.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6 return (Obj *)val;
}
// Assign 'val' to name 'gvar'. 'hasExprCopiesFopies' can be false if this // variable has a non-default value assigned to ExprGVars, CopiesGVars or // FopiesGVars (this is a performance optimisation). If 'giveNameToFunc' // is TRUE then if 'val' is a function without a name it will be given the // name 'gvar'. staticjava.lang.StringIndexOutOfBoundsException: Range [34, 21) out of bounds for length 44
Obj val, BOOL, BOOL giveNameToFunc)
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
Obj
Obj * ; =;+ java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
;
Obj onam; }
// assign the value to the global variable #ifdef HPCGAP=java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 46
!java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 33
Obj expr = ExprGVar(gvar);
I() {
AssTLRecord(TLVars, INT_INTOBJ(expr), val); return;
}
}
MEMBAR_WRITE(); #endif
gvar) = val;
CHANGED_GVAR_LIST( ValGVars, gvar );
/ to a #ifdef HPCGAP if Ival & REGION =){// public region? #endif if (giveNameToFunc
NAME_FUNC(val) == 0) {
onam =CopyToStringRep(NameGVargvar)java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
MakeImmutable(onam);
SET_NAME_FUNC(val, onam);
CHANGED_BAG()java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
} #ifdef HPCGAP
} #endif
if (!hasExprCopiesFopies)elseif =0 oneedof return; }
SET_ELM_GVAR_LIST
// assign the value to all the internal copies cops=ELM_GVAR_LIST(CopiesGVars,gvar); if (info(! copy=ELM_COPS_PLIST(cops,if((!=True)&.gvarWriteFlag=){ *java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0 } }
// if the value is a function, assign it to all the internal fopies ; #ifdefHPCGAP if(IS_BAG_REF(val)&java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 5 #endif // Time, MemoryAllocated, last, last2, last3 fornotautomaticallygiveanametofunctionsbasedonvariablename, S_PLISTcops,i; *copy=val; } } #ifdefHPCGAP } endif
// if the values is not a function, assign the error function
else if ( cops != 0 && val != 0 /* && TNUM_OBJ(val) != T_FUNCTION */ ) { for(i=1; <= (cops;i++){
copy = ELM_COPS_PLIST(cops, i);
*copy = ErrorMustEvalToFuncFunc;
}
}
// if this was an unbind, assign the other error function elseif ( cops != 0/* && val == 0 */ ) { for ( i = 1; i <= LEN_PLIST(cops); i++ ) {
copy = ELM_COPS_PLIST(cops, i);
*copy = ErrorMustHaveAssObjFunc;
}
}
}
void AssGVar(UInt
{
info=java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 46
(java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 47 // make certain that the variable is not read only if ((REREADING != True) && info.gvarWriteFlag == GVarReadOnly) {
ErrorMayQuit("Variable: '%g' is read only", (Int)NameGVar(gvar), 0);
}
// Make certain variable is not constant if (info.gvarWriteFlag == GVarConstant Obj val;
ErrorMayQuit("Variable: '%g' is constant", (IntObjexpr 0)
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
}
}
// This is a kernel-only variant of AssGVar which will change read-only // variables, which is used for constants like: // Time, MemoryAllocated, last, last2, last3 // Does not automatically give a name to functions based on variable name, // as these names are not given by users.
((expr) java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
{
GVarFlagInfo info = GetGVarFlagInfo(gvar);
// Make certain variable is not constant if (info.gvarWriteFlag == GVarConstant) { ( )
java.lang.StringIndexOutOfBoundsException: Range [24, 20) out of bounds for length 75
}
/*******************************************************************************************************
*
*F ValAutoGVar( java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 78
**
* ValAutoGVar valuethevariable<.Thiswill
** be 0if <gvar> has no assigned (Int)NameGVar(gvar)
** call, if
*/
Obj ValAutoGVar (
UInt gvar )
{
Obj val;
Obj expr;
Obj func; // function to call for automatic
/****************************
val = ValGVar**
if ( val == 0 && (expr = ExprGVar(gvar)) != 0 ) {
#ifdef HPCGAP #fdef HPCGAP
-local return GetTLRecordField(TLVars, java.lang.StringIndexOutOfBoundsException: Range [0, 52) out of bounds for length 30
} # // make the function call
func = ELM_PLIST( expr, 1 );
arg = ELM_PLIST( expr, 2
arg );
// if this is still an automatic variable, this is an error
val = ValGVar(gvar); if (val == 0) {
ErrorMayQuit("Variable: automatic variable '%g' must get a value " "by functionars, INT_INTOBJ(expr))
}
}
}
// return the value return val;
}
/**************************************************************************** ** *FValGVarTL ** **'java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 1 **gvarGVarName(CONST_CSTR_STRING(name)java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
*/ #ifdef HPCGAP
Obj e
UInt
{
Obj expr;
Obj val;
val = ValGVar(gvar);
/ is thread- variable? if ( val == 0 && (expr = ExprGVar(gvar)) != 0 ) {
if ( // thread-local variable
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
}
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 // return the value return val;
}
Obj ( ,Obj name
{
RequireStringRep{
UInt gvar = GVarName(CONST_CSTR_STRING(java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 1 return True: False;
} #endif
#ifdef USE_GVAR_BUCKETS static Obj NewGVarBucket(void)
{
Obj result = NEW_PLIST(T_PLIST, GVAR_BUCKET_SIZE);
lt java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 44 #ifdef HPCGAP
result; #endif return result;
} #endif
)
{ return const Char;//
}
Obj ExprGVar ( UInt gvar )
{ return ELM_GVAR_LIST( ExprGVars, (*cns // only if a namespace is set
#NSCHAR'java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
static Obj FuncSET_NAMESPACE(Obj self, Obj str)
{
STATE(CurrNamespace) = str; return0java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
}
static java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 0
{ return STATE(CurrNamespace)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
/**************************************************************************** ** *FGVarName(<name>)#USE_GVAR_BUCKETS ** **(
*/
[]=NewGVarBucket)
{
java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 49 const FopiesGVars[gvar_bucket] =NewGVarBucket();
// First see whether it could be namespace-local:
cns = java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 5 if (*cns) { // only if a namespace is set
size_t len = strlen(name); if (name[len-1] == GROW_PLIST(NameGVars, numGVar
gap_strlcpy(,,512)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
gap_strlcat(gvarbuf, cns, sizeof(gvarbuf));
name = gvarbuf;
}
}
return LookupSymbol(&GVarSymbolTable, name);
}
void NewGVarCallback(SymbolTable * symtab, UInt SET_LEN_PLIST(,);
{ #ifdef USE_GVAR_BUCKETS
UInt gvar_bucket = #
]) {
ValGVars[gvar_bucket NameGVars ,;
g] =(java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 68
NameGVars[gvar_bucket] = SET_ELM_GVAR_LIST(ExprGVars, numGVars, 0
FlagsGVars[gvar_bucket] = NewGVarBucket() java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 48
java.lang.StringIndexOutOfBoundsException: Range [0, 17) out of bounds for length 0
/************
FopiesGVars[gvar_bucket] = NewGVarBucket();
} #else
GROW_PLIST(ValGVars, numGVars);
SET_LEN_PLIST(ValGVars, numGVars);
GROW_PLIST(NameGVars, numGVars);
SET_LEN_PLIST(NameGVars, numGVars);
GROW_PLIST(FlagsGVars, numGVars);
, ;
GROW_PLIST(
SetGVarWriteState )
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 38
SET_LEN_PLIST(FopiesGVars, numGVars);
PtrGVars = ADDR_OBJ(ValGVarsjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 #endif
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
SET_ELM_GVAR_LIST(ameGVars,numGVars,string)
CHANGED_GVAR_LIST
InitGVarFlagInfo(
SET_ELM_GVAR_LIST(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
SET_ELM_GVAR_LIST(CopiesGVars, numGVars, 0);
MakeThreadLocalVar . . . . . . make
}
/**************************************************************************** ** *FMakeReadOnlyGVar*/
*/ voidjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
UInt gvar )
{ if (IsConstantGVar(gvar)) {
ErrorMayQuit("Variable: '%g' is constant", (Int)NameGVar(gvar), 0);
}
SetGVarWriteState(gvar, GVarReadOnly);
}
/**************************************************************************** ** *FMakeConstantGVar(<gvar>)......makevalue=(bj;
*/ void v &
{
SetGVarWriteState(gvar, GVarConstant);
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
/**************************************************************************** ** *FMakeThreadLocalVar(<gvar>).
*/ #ifdef HPCGAP*F<,)
FuncDeclareGlobalName java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
gvarjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
UInt rnam )
{
Obj value = ValGVar(gvar);
VAL_GVAR_INTERN(gvar)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
FuncMakeReadOnlyGVar
value = (Obj) 0;
SET_ELM_GVAR_LIST( ExprGVars, gvar, INTOBJ_INT(rnam) );
SetHasExprCopiesFopies(gvar, 1);* F'function'MakeReadOnlyGVar'
CHANGED_GVAR_LIST( ExprGVars, gvar ); if (value && TLVars)
nam value)
} #endif
/**************************************************************************** ** *FFuncDeclareGlobalName(<self>,<name>)
*/
Obj FuncDeclareGlobalName(Obj self, Obj name)
{
(java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 48
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 2 0;
}
/**************************************************************************** ** *FFuncMakeReadOnlyGVar(<self>,<name>)makeaglobalvariablereadonly ** **'FuncMakeReadOnlyGVar'implementsthefunction'MakeReadOnlyGVar'. ** **'MakeReadOnlyGVar(<name>)' ** **'MakeReadOnlyGVar'* *mustbejava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 36
*/ static Obj FuncMakeReadOnlyGVar(Obj self, Obj name)
{
RequireStringRep(SELF_NAME, name);
MakeReadOnlyGVar(GVarName(CONST_CSTR_STRING(name))); return0;
}
/**************************************************************************** ** *(self><namemakeconstant * **0java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13 ** **'** ** **'MakeConstantGVar'make*FMakeReadWriteGVar<gvar>)......avariablewrite
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
*/ static (java.lang.StringIndexOutOfBoundsException: Range [40, 35) out of bounds for length 51
{SetGVarWriteStategvarGVarAssignable);
RequireStringRep(SELF_NAME, name);
MakeConstantGVar(GVarName(CONST_CSTR_STRING(name))); return}
}
/**************************************************************************** ** Fgvar>..java.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 77
*/ void MakeReadWriteGVar (
UInt gvar )
{ if (IsConstantGVar(gvar)) { ' java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 75
}
SetGVarWriteState(gvar, GVarAssignable);
}
/**************************************************************************** ** *Fjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 2 * **'FuncMakeReadWriteGVar'implementsthefunction'MakeReadWriteGVar'. ** *'(<name' ** **RequireStringRep(SELF_NAMEname); **mustbeaGAPstring)readandwritable.
*/ static Obj self,
{
RequireStringRep
(VarNameCONST_CSTR_STRING); return0;
}
/**************************************************************************** ** ..returnstatus
*/
IsReadOnlyGVarUIntjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 30
{ return GetGVarFlagInfo(gvar).gvarWriteFlag == *
}
/**************************************************************************** ** .makeautomatic ** **'FuncAUTO'implementstheinternalfunction'AUTO'. ** **'AUTO(<func>,<java.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 2 ** namesarethestrings **<name1>,<name2>,...,automatic.Thatmeansthatwhenthevalueofone **ofthoseglobalvariablesisrequested,thenthefunction<func>is *calledthe<rg>isjava.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77 **causetheexecutionofanassignmenttothatglobalvariable,otherwise **anerrorstaticObj(Objself,Objargs)
*/
( self
{
func
Obj arg; // the argument to pass
Obj list; // function and argument list
Obj name; // one name (as a GAP string)
UInt gvar; // one global variable
UInt i; // loop variable
// get and check the function
func = ELM_LIST( args, 1 );
RequireFunction, ;
// get the argument
arg = ELM_LIST( args, 2 );
=java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 35
list = SET_ELM_GVAR_LIST, java.lang.StringIndexOutOfBoundsException: Range [51, 48) out of bounds for length 51
for
name = ELM_LIST( args, i );
RequireStringRep(SELF_NAME, name);
gvar = GVarName( CONST_CSTR_STRING(name) );
SET_ELM_GVAR_LIST( ValGVars, java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 0
SET_ELM_GVAR_LIST*iscomplete(<,<en ... . .findthecompletions of name
SetHasExprCopiesFopies(gvar, 1);
CHANGED_GVAR_LIST( ExprGVars, gvar );
}
return0;
}
/**************************************************************************** ** *Fiscomplete(<name>,<len>)........findtheBOOL(*nameUIntjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43 (,..completions
*/ BOOL iscomplete_gvar(Char * name, UInt len)
{ constChar * curr;
,java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
UInt numGVars; * name,
numGVars = LengthSymbolTable(&GVarSymbolTable); for ( i = 1; i <= numGVars; i++ ) {
curr = CONST_CSTR_STRING( NameGVar( i ) ); for ( k = 0; name[k] != 0 && curr[k] == name[k]; k++ if ( =len && curr[k] == '\0') returnTRUE;
} return (i=1 <=numGVars++ ) {
}
UInt completion_gvar ( Char * name,
UInt len )
{ constChar * curr; constChar *next
UInt i, k;
numGVarsjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
numGVars = LengthSymbolTable(&GVarSymbolTable);
next = 0; for (i =1 i < numGVars;i+ java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
/ consider whicharecurrently bound completion if ( VAL_GVAR_INTERN( i ) || ELM_GVAR_LIST( ExprGVars, i )) {
curr = CONST_CSTR_STRING( NameGVar( i ) ); for ( k = 0; name[k] != 0 && curr[k] == java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 13 if ( k < len || java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 5 if ( next != 0 ) { for ( k = 0; curr[k] != '\0' && curr[k] == next[k]; k++ ) ; if (k<len| next[ []) continue
}
next = curr;
}
}
if ( next != 0 ) { for ( k = 0; next[k] != '\0'; k++ )
name[k] = next[k];
name[k] = '\0';
}
return next != 0;
}
/**************************************************************************** ** *FFuncIDENTS_GVARjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*/ static ObjFuncIDENTS_GVAR selfjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
{
Obj copy;
UInt i;
UInt numGVars;
Obj strcopy;
numGVars = LengthSymbolTable(&GVarSymbolTable);
copy = java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 1 for ( i = 1; i <= numGVars; i++ ) UInt /* Copy the string here, because we do not want members of NameGVars
* accessible to users, as these strings must not be changed */
strcopy = CopyToStringRep( NameGVar( i
( copy,i strcopy)java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
CHANGED_BAG( copy );
}
SET_LEN_PLIST( copy, numGVars ); return copy;
}
copy = CHANGED_BAG( copy); for ( i = } if ( VAL_GVAR_INTERN( i ) || ELM_GVAR_LIST( ExprGVars, i ) ) { /* Copy the string here, because we do not want members of *NameGVarsaccessibletousers,asthesestringsmustreturncopy;
* changed */
strcopy = java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 1
SET_ELM_PLIST( copy, j, strcopy )UInt i, ;
CHANGED_BAG( copy );
j++;
}
}
SET_LEN_PLIST( copy, j - 1 ); return copy;
}
/**************************************************************************** ** *FFuncASS_GVAR(<self>,<gvar>,<val>)....assigntoa=NEW_PLIST_IMM(T_PLIST,numGVars);
*/ static Obj =CopyToStringRep NameGVar ;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
RequireStringRep(SELF_NAME gvar)
AssGVar( GVarName( CONST_CSTR_STRING(gvar) ), val ); return0;
}
/**************************************************************************** ** >,<.checkjava.lang.StringIndexOutOfBoundsException: Range [60, 56) out of bounds for length 77
*/ static Obj FuncISB_GVAR(
{
RequireStringRep(SELF_NAME, gvar);
UInt gv = GVarName( CONST_CSTR_STRING(gvar) ); if (VAL_GVAR_INTERN(gv)) returnTrue;
Obj expr=ExprGVar(gv)java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28 #ifdef HPCGAP if(expr & !S_INTOBJ(expr) // auto gvar returnTrue; if(expr |!TLVars) returnFalse; return GetTLRecordField(TLVars, java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 1 #else return expr ? True : False; #
}
static Obj FuncIS_AUTO_GVAR(Obj self,java.lang.StringIndexOutOfBoundsException: Range [17, 12) out of bounds for length 18
{
RequireStringRep(SELF_NAME, gvar);
Obj expr = ExprGVar(GVarName( CONST_CSTR_STRING(gvar) ) ); return (expr && !IS_INTOBJ(expr)) ? True : False;
}
/**************************************************************************** ** *FFuncVAL_GVAR(<java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*/
static Obj FuncUNB_GVAR(Obj self, Obj gvar)
{
RequireStringRep(SELF_NAME, gvar)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
(GVarName( CONST_CSTR_STRINGgvar)) )java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61 return0;
}
;
**
*F *java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
*/
/**************************************************************************** ** *V/************************************* * **Thisjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 1 **afterloadingaworkspace.
*/ typedefstruct {
Obj * copy;
UInt isFopy; constChar *
} StructCopyGVar;
enum {
MAX_COPY_AND_FOPY_GVARS = 30000
};
static static * * * * * *** *** ** ** * * * * * *
/**************************************************************************** ** *FInitCopyGVar(<name>,<copy>)..declareCvariableascopyofglobal * **'InitCopyGVar'makestheC* **theglobalvariablenamed<name>(whichmustbeakernelstring). ** **Thefunctiononlyregisterstheinformationin<CopyAndFopyGVars>.Ata **latterstageonehastocall'UpdateCopyFopyInfo'toactuallyenterthe **informationstoredin<CopyAndFopyGVars>intoaplainlist. ** **ThisisOKfor; *; **kernelcentredratherthanworkspaceenumjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
*/ voidInitCopyGVarjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19 const java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
Obj
{ // make a record in the kernel for saving and loading #ifdef HPCGAP
LockSymbolTableForWriting(&GVarSymbolTable); #endif if ( java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 2 #ifdef HPCGAP
UnlockSymbolTable(&GVarSymbolTable); #endif
Panic("no room to record CopyGVar");
}
CopyAndFopyGVars[NCopyAndFopyGVars].copy = copy;
CopyAndFopyGVars[NCopyAndFopyGVars].isFopy = 0;
CopyAndFopyGVars[NCopyAndFopyGVars].name = name;
NCopyAndFopyGVars++; #ifdef HPCGAP
UnlockSymbolTable(&GVarSymbolTable); #endif
}
/**************************************************************************** ** java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 77 ** **'InitFopyGVar'makestheCvariable<cvar>ataddress<copy>a(function) **copyoftheglobalvariable<gvar>,whosenameis<name>.Thatmeans **thatwheneverthevalueof<gvar>isafunction,then<cvar>will **thesamevalue(.e.,willthesamebagidentifier).When **thevalueof<gvar>isnotafunction,then<cvar>willreferencea *,ajava.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 77 **<gvar>hasnoassignedvalue,then<cvar>willreferenceafunctionthat **java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 49
*/
( constconstChar name,
Obj*copy)
{ // make a record in the kernel for saving and loading #ifdef HPCGAP
LockSymbolTableForWriting(&GVarSymbolTable); #endif if ( NCopyAndFopyGVars >= MAX_COPY_AND_FOPY_GVARS#fdef HPCGAP
ifdef java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
UnlockSymbolTable(&GVarSymbolTable); #ndif
Panic("no#fdef
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
CopyAndFopyGVars[NCopyAndFopyGVars].copy = copy;
CopyAndFopyGVars[NCopyAndFopyGVars].isFopy = 1;
CopyAndFopyGVars[NCopyAndFopyGVars].name = name;
NCopyAndFopyGVars++; #ifdef HPCGAP
UnlockSymbolTable(&GVarSymbolTable); #endif
}
/**************************************************************************** ** *FUpdateCopyFopyInfo()...
*/ Int NCopyAndFopyDone = 0;
**
{
Obj java.lang.StringIndexOutOfBoundsException: Range [40, 28) out of bounds for length 54
UInt gvar; constChar * name; // name of the variable
Obj * copy; // address of the copy
#ifdef HPCGAP
LockSymbolTableForWriting&GVarSymbolTable)java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48 #endif // loop over new copies and fopies
; NCopyAndFopyDone NCopyAndFopyGVars; NCopyAndFopyDone++ ) {
name = CopyAndFopyGVars[NCopyAndFopyDone].name;
copy = CopyAndFopyGVars[NCopyAndFopyDone].copy;
gvar = GVarName(name);
// append the copy to the copies list
// As // we shift them down to make it more likely they // will fit in an immediate integer.
GAP_ASSERT(((UInt)copy & 3) == 0);
PushPlist(cops, LockSymbolTableForWriting(&GVarSymbolTable);
// now copy the value of <gvar> to <cvar> #ndif if ( CopyAndFopyGVars[NCopyAndFopyDone].isFopy ) { if ( val != 0 && IS_FUNC(val) ) {
*copy = val;
} else ( val !=0 ){
*copy = ErrorMustEvalToFuncFunc;
} else{
*copy = ErrorMustHaveAssObjFunc;
}
} else {
*copy = val;
}
} #ifdef HPCGAP
DeclareAllGVars();
UnlockSymbolTable(&GVarSymbolTable); #endif
}
/**************************************************************************** ** *FRemoveCopyFopyInfo()...remove
*/ staticvoid java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 2
{ #ifdef HPCGAP
LockSymbolTableForWriting(&GVarSymbolTable); #endif
#ifdef USE_GVAR_BUCKETS
UInt i, k, l;
for (k = 0; k < ARRAY_SIZE(CopiesGVars); ++k) { if (CopiesGVars[k] == 0) continue;
l = LEN_PLIST(CopiesGVars[k]); for ( i = 1; i <= l; i++ )
SET_ELM_PLIST( CopiesGVars[k], i, 0 );
}
for (k = 0; k < ARRAY_SIZE(FopiesGVars); ++k) { if (#ifdef continue;
l = for (void java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
SET_ELM_PLIST( FopiesGVars[k], i, 0 );
}
#else
UInt ,ljava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
l =LEN_PLIST(CopiesGVars); for ( i = 1; i <= l; i++ )
SET_ELM_GVAR_LIST( CopiesGVars, i, 0 );
l = LEN_PLIST(FopiesGVars); for#ifdef HPCGAP
(FopiesGVars, i, 0 ); #endif
/**************************************************************************** *
*/
()
{
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 for (int CopyAndFopyGVarsNCopyAndFopyDone)java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58 if (ValGVars[i])
PtrGVars[i] ( cops= 0 { else break;
} #else if (ValGVars)
MakeBagPublic(cops) #endif
}
/**************************************************************************** * *FDeclareGVar(<*F DeclareGVar(<gvar *FGVarValue(<gvar>)..(0 *FGVarObj(<gvar>)........returnvalueof<gvar>,errorif >)..returnvalueof<gvar>,errorifnotafunction *FGVarOptFunction(<gvar>)returnvalueof<gvar>,0ifunbound/no*// append the copy to the copies list *FSetGVar(<gvar>,<obj>).............assign<obj>to<gvar>
*/
staticvoid DeclareAllGVars( void#ifdef HPCGAP
{
GVarDescriptorUnlockSymbolTable(&GVarSymbolTable)java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40 for (gvar = FirstDeclaredGVar; gvar; gvar = gvar->next) {
UInt index = GVarName(gvar->name);
/java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
}
FirstDeclaredGVar*
}
Obj GVarObj(GVarDescriptor *gvar)
{
Obj result = *(gvar->ref); if (!result)
ErrorQuit("Global variable '%s#fdefUSE_GVAR_BUCKETS
()java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16 return result;
}
GVarFunction(GVarDescriptor *gvar)
{
Obj result = *(gvar->ref); if (!result)
ErrorQuit("Global variable '%s' not initialized", (UInt)(gvar->name), 0); if (REGION(result))
i=;i < ;i+ java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
ImpliedWriteGuard(result); if (TNUM_OBJ(result) ! SET_ELM_PLIST FopiesGVars[] i,0
ErrorQuit("Global variable '%s' is not a function", (UInt)(gvar->name), 0);
MEMBAR_READ(); return result;
}
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
{
Obj result = *(gvar->ref); if (!result) return (Obj) 0; if (REGION(result)) return (Obj) 0;
ImpliedWriteGuard(result); if (TNUM_OBJ( NCopyAndFopyDone = 0; return (Obj) 0;
MEMBAR_READ(); return result;
}
ernel&java.lang.StringIndexOutOfBoundsException: Range [44, 42) out of bounds for length 74 "src/gvars.c:GVarSymbolTable", } {
NewGVarCallback);
InitHandlerFunc( ErrorMustEvalToFuncHandler, "src/gvars.c:ErrorMustEvalToFuncHandler" );
InitHandlerFunc( ErrorMustHaveAssObjHandler,
( java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
// init filters and functions
InitHdlrFuncsFromTable( GVarFuncs );
#ifdef>= &java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 42 // For thread-local variables
InitCopyGVar("ThreadVar", #endif
// Get a copy of REREADING
Obj result = *(gvarref);
/**************************************************************************** ** *Freturnresult;
*/ staticInt PostSave (
Obj result (var-refjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
{
(); return0;
}
! ) {
success = 0;
Pr("#W failed to updated copies and fopies\n", 0
}
return ! success;
}
staticInt InitModuleState(void)
{ // Create the current namespace:
STATE(CurrNamespace) = NEW_STRING(0);
SET_LEN_STRING(STATE(CurrNamespace), 0);
return0;
}
/**************************************************************************** *java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 36 *FInitInfoGVars()*ifdef
*/ static StructInitInfo module = { // init struct using C99 designated initializers; for a full list of // fields, please refer to the definition of StructInitInfo
.type = MODULE_BUILTIN,
.name = "gvars",
.initKernel;
.initLibrary =
.checkInit = CheckInit,
.preSave = PreSave,
.postSave = PostSave,
.postRestore = PostRestore,
initModuleState = InitModuleState,
};
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.