Skip to content

Commit 453d0b0

Browse files
committed
Make FirstTime extern
See #2
1 parent d8b723a commit 453d0b0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lrsnashlib.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,4 +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;
1123+
11211124
/******************** end of lrsnashlib.c ***************************/

lrsnashlib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void initFwidth(game *g);
6767
void updateFwidth(game *g, int col, int pos, char *str);
6868

6969

70-
long FirstTime; /* set this to true for every new game to be solved */
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)