Skip to content

Commit

Permalink
Make FirstTime extern
Browse files Browse the repository at this point in the history
  • Loading branch information
bzinberg committed Apr 20, 2021
1 parent d8b723a commit 453d0b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lrsnashlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1118,4 +1118,7 @@ void updateFwidth(game *g, int col, int pos, char *str) {
((gInfo *)g->aux)->fwidth[col][pos] = len;
}

// Definition of extern variable declared in the .h
long FirstTime;

/******************** end of lrsnashlib.c ***************************/
2 changes: 1 addition & 1 deletion lrsnashlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void initFwidth(game *g);
void updateFwidth(game *g, int col, int pos, char *str);


long FirstTime; /* set this to true for every new game to be solved */
extern long FirstTime; /* set this to true for every new game to be solved */
static long Debug_flag;
static long Verbose_flag;

0 comments on commit 453d0b0

Please sign in to comment.