• unknown's avatar
    Merge from 5.1-build of the "my_bool for C" changeset. · 0ab7c2f3
    unknown authored
    Removing "#define bool BOOL" as it's dangerous.
    
    
    include/config-win.h:
      This #define was confusing: a) it changes the semantics of bool but
      only on Windows (C++ standard says that casting int to bool to int
      yields 0 or 1, but if using BOOL (which is int) this breaks, see
      old BUG 11567 "Variable 'foreign_key_checks', and other variables,
      differs binlog tests") b) it is not needed in C++ which has a bool type
      c) it is not needed in C where we must use my_bool as bool either does
      not exist or changes size between C and C++.
    storage/maria/ma_check.c:
      my_bool for C
    storage/maria/ma_dynrec.c:
      my_bool for C
    storage/maria/ma_search.c:
      my_bool for C
    storage/maria/ma_write.c:
      my_bool for C
    storage/maria/maria_def.h:
      my_bool for C
    storage/maria/maria_pack.c:
      my_bool for C
    0ab7c2f3
ma_check.c 209 KB