-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add resetNashSolver()
to the public API
#3
Conversation
lrsnashlib.h
Outdated
@@ -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 */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why defining it here at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My reading of the standard is that every variable must be defined exactly once, and an extern
declaration is not a definition.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So you can remove this line 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then the variable would have internal linkage
Can you redirect the change to the branch of #4 ? We won't be making change for the old version of lrslib, let's focus on v7.1a. There the definition in the |
Probably even better is to add a function for modifying |
Responded to this in JuliaPolyhedra/LRSLib.jl#41 (comment) |
Absolutely. Thanks for working on the migration! |
In preparation for rebasing this PR onto JuliaPolyhedra#4 This is a backward-incompatible change that will break earlier versions of LRSLib.jl.
FirstTime
extern
resetNashSolver()
to the public API
Done, and changed the target branch of this PR accordingly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Fixes #2.
Tested
Builds successfully on my machine.