Skip to content

Commit dd90626

Browse files
committed
Instead of exposing FirstTime directly, expose a reset function
In preparation for rebasing this PR onto #4 This is a backward-incompatible change that will break earlier versions of LRSLib.jl.
1 parent 453d0b0 commit dd90626

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lrsnashlib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,7 @@ void updateFwidth(game *g, int col, int pos, char *str) {
11181118
((gInfo *)g->aux)->fwidth[col][pos] = len;
11191119
}
11201120

1121-
// Definition of extern variable declared in the .h
1122-
long FirstTime;
1121+
static long FirstTime;
1122+
void resetNashSolver() { FirstTime = TRUE; }
11231123

11241124
/******************** end of lrsnashlib.c ***************************/

lrsnashlib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ void printGame(game * g);
6565
void setFwidth(game *g, int len);
6666
void initFwidth(game *g);
6767
void updateFwidth(game *g, int col, int pos, char *str);
68+
void resetNashSolver(); /* Call this function for every new game to be solved */
6869

6970

70-
extern long FirstTime; /* set this to true for every new game to be solved */
7171
static long Debug_flag;
7272
static long Verbose_flag;
7373

0 commit comments

Comments
 (0)