tor/src
Nick Mathewson c8ccd028a7 Don't redefine str(n)casecmp on windows unless they're missing
When we do redefine them, use inline functions instead of #define.

This fixes a latent code problem in our redefinition of these
functions, which was exposed by our refactoring: Previously, we
would #define strcasecmp after string.h was included, so nothing bad
would happen.  But when we refactored, we would sometimes #define it
first, which was a problem on mingw, whose headers contain
(approximately):

inline int strcasecmp (const char *a, const char *b)
   { return _stricmp(a,b); }

Our define turned this into:
  inline int _stricmp(const char *a, const char *b)
    { return _stricmp(a,b); }

And GCC would correctly infer that this function would loop forever,
rather than actually comparing anything.  This caused bug 26594.

Fixes bug 26594; bug not in any released version of Tor.
2018-07-02 11:50:17 -04:00
..
common Prune the .may_include files a bit; detect unused lines in them 2018-07-01 18:14:28 -04:00
config Merge branch 'maint-0.3.1' into maint-0.3.2 2018-06-12 08:11:20 -04:00
ext Remove non-windows system includes from compat.h and util.h 2018-06-29 12:21:52 -04:00
lib Don't redefine str(n)casecmp on windows unless they're missing 2018-07-02 11:50:17 -04:00
or Merge branch 'maint-0.3.4' 2018-07-01 10:22:21 -04:00
rust Tabify all of the .am files. 2018-07-01 09:37:28 -04:00
test Tabify all of the .am files. 2018-07-01 09:37:28 -04:00
tools Tabify all of the .am files. 2018-07-01 09:37:28 -04:00
trunnel Stop using util.h and compat.h in src/trunnel/ 2018-06-29 12:21:52 -04:00
win32 Bump version to 0.3.4.3-alpha-dev 2018-06-26 09:12:23 -04:00
include.am Extract getpass to a new lib/term library 2018-06-29 12:21:52 -04:00