Skip to content

Commit

Permalink
kernel: simplify handling of POST_RESTORE
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Jan 3, 2025
1 parent f580daf commit 0f6c955
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/gap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1429,8 +1429,6 @@ StructInitInfo * InitInfoGap ( void )
** general `InitLibrary' will create all objects and then calls
** `PostRestore'. This function is only used when restoring.
*/
static Obj POST_RESTORE;

void InitializeGap (
int * pargc,
char * argv [],
Expand Down Expand Up @@ -1462,9 +1460,6 @@ void InitializeGap (
InitMainThread();
#endif

InitGlobalBag(&POST_RESTORE, "gap.c: POST_RESTORE");
InitFopyGVar( "POST_RESTORE", &POST_RESTORE);

#ifdef GAP_ENABLE_SAVELOAD
if ( SyRestoring ) {

Expand Down Expand Up @@ -1497,6 +1492,7 @@ void InitializeGap (

/* Call POST_RESTORE which is a GAP function that now takes control,
calls the post restore functions and then runs a GAP session */
Obj POST_RESTORE = ValGVar(GVarName("POST_RESTORE"));
if (POST_RESTORE != 0 && IS_FUNC(POST_RESTORE)) {
Call0ArgsInNewReader(POST_RESTORE);
}
Expand Down

0 comments on commit 0f6c955

Please sign in to comment.