Closed kammoh closed 3 years ago
<xlocale.h>
was absolutely not needed.
extern
keyword is superfluous for functions. The reason I removed it was that I suspected it could be confusing my compiler leading to the wrong hash()
being linked in.
I personally find the version without extern cleaner, but I can revert it.
There's some discussion about the extern
keyword here: https://stackoverflow.com/a/56202586/1308473
Languages are full of words that serve no syntactical purpose, but provide context and declare intent.
Pulled and merged, to opencircuitdesign.com. The github repository mirror will update automatically overnight.
This PR fixes crash on macOS due to wrong hash() being linked in.
It also contains some cleanup to make sure proper function definitions are declared and available (as required by C99) to - make compile possible in newer compilers (e.g.Apple clang)
I still had to rename
hash()
tomy_hash()
to prevent the wrong linkage happening, but I as far as I can tell this function is not part of the API and the renaming should not really affect anything.