@@ -163,7 +163,7 @@ void GAP_Initialize(int argc,
163163//// program evaluation and execution
164164////
165165
166- // Evaluate a string of GAP commands
166+ // Evaluate a string of GAP commands.
167167//
168168// To see an example of how to use this function see tst/testlibgap/basic.c
169169//
@@ -175,11 +175,18 @@ Obj GAP_EvalString(const char * cmd);
175175//// variables
176176////
177177
178- // Combines GVarName and ValGVar. For a given string, it returns the value
179- // of the gvar with name <name>, or NULL if the global variable is not
180- // defined.
178+ // Returns the value of the global GAP variable with name <name>, or NULL if
179+ // no global variable with this this name is defined.
181180Obj GAP_ValueGlobalVariable (const char * name );
182181
182+ // Checks if assigning to the global GAP variable <name> is possible, by
183+ // verifying that <name> is not the name of a read-only or constant variable.
184+ int GAP_CanAssignGlobalVariable (const char * name );
185+
186+ // Assign <value> to the global GAP variable <name>. If <name> is the name of
187+ // a readonly or constant variable, an error is raised.
188+ void GAP_AssignGlobalVariable (const char * name , Obj value );
189+
183190
184191////
185192//// arithmetic
@@ -278,7 +285,7 @@ int GAP_IsLargeInt(Obj obj);
278285// `integer.c`). The absolute value of <size> determines the number of limbs.
279286// If <size> is zero, then `INTOBJ_INT(0)` is returned. Otherwise, the sign
280287// of the returned integer object is determined by the sign of <size>.
281- // //
288+ //
282289// Note that GAP automatically reduces and normalized the integer object,
283290// i.e., it will discard any leading zeros; and if the integer fits into a
284291// small integer, it will be returned as such.
0 commit comments