Changes between Version 2 and Version 3 of doc/dev/hacks


Ignore:
Timestamp:
Apr 27, 2015, 11:27:05 PM (6 years ago)
Author:
sam
Comment:

pegtl::eof workaround

Legend:

Unmodified
Added
Removed
Modified
  • doc/dev/hacks

    v2 v3  
    66
    77There are a few inelegant casts to `long int` that should actually be `long long int` or `int64_t` in [browser:trunk/src/lol/base/array.h]. The only known platform where printing `long long int` with `%lld` doesn’t work is Windows cross-compiled from Linux using mingw64.
     8
     9== Conflict between `eof` and `pegtl::eof` ==
     10
     11PEGTL’s `struct eof` needs to be explicitly used as `pegtl::eof` even with `using pegtl` because mingw’s `<io.h>` header declares the global C function `eof` which takes priority in template argument deduction. There is the macro `NO_OLDNAMES` to disable it, but then compilation fails in the C++ library (and we can’t be sure we’re going to be the first to include `<io.h>`, sadly).