The great BOOL->bool conversion in xpdev
Still using BOOL where we need Win32 API compatibility. Using JSBool instead of BOOL or bool where it matters. Changed most relevant TRUE/FALSE to true/false too (though it's not as critical). You shouldn't need to #include <stdbool.h> anywhere now - gen_defs.h should do that automatically/correctly based on the language/version/tool. In C23, stdbool.h isn't even needed for bool/true/false definitions (they're keywords), so we don't bother including stdbool.h in that case. Microsoft didn't define __STDC_VERSION__ in their older tool chains (even though they were C99 compatible and had stdbool.h), so we use a _MSC_VER check to know that there's a stdbool.h we should use in that case. For other/old compilers (e.g. Borland C) we #define bool/true/false following the pattern of stdbool.h (doesn't use a typedef). I didn't convert UIFC yet. This addresses issue #698
Showing
- src/conio/cterm.c 0 additions, 7 deletionssrc/conio/cterm.c
- src/encode/utf8.c 0 additions, 1 deletionsrc/encode/utf8.c
- src/encode/utf8.h 1 addition, 1 deletionsrc/encode/utf8.h
- src/sbbs3/ansiterm.cpp 1 addition, 1 deletionsrc/sbbs3/ansiterm.cpp
- src/sbbs3/bat_xfer.cpp 13 additions, 13 deletionssrc/sbbs3/bat_xfer.cpp
- src/sbbs3/ctrl/MainFormUnit.cpp 6 additions, 6 deletionssrc/sbbs3/ctrl/MainFormUnit.cpp
- src/sbbs3/ctrl/MainFormUnit.h 5 additions, 5 deletionssrc/sbbs3/ctrl/MainFormUnit.h
- src/sbbs3/execnet.cpp 3 additions, 3 deletionssrc/sbbs3/execnet.cpp
- src/sbbs3/file.cpp 1 addition, 1 deletionsrc/sbbs3/file.cpp
- src/sbbs3/filedat.h 0 additions, 2 deletionssrc/sbbs3/filedat.h
- src/sbbs3/findstr.c 19 additions, 19 deletionssrc/sbbs3/findstr.c
- src/sbbs3/findstr.h 5 additions, 5 deletionssrc/sbbs3/findstr.h
- src/sbbs3/fixsmb.c 0 additions, 1 deletionsrc/sbbs3/fixsmb.c
- src/sbbs3/getctrl.c 1 addition, 1 deletionsrc/sbbs3/getctrl.c
- src/sbbs3/getctrl.h 1 addition, 1 deletionsrc/sbbs3/getctrl.h
- src/sbbs3/getmail.c 4 additions, 4 deletionssrc/sbbs3/getmail.c
- src/sbbs3/getmail.h 2 additions, 2 deletionssrc/sbbs3/getmail.h
- src/sbbs3/getstats.c 44 additions, 44 deletionssrc/sbbs3/getstats.c
- src/sbbs3/getstats.h 13 additions, 13 deletionssrc/sbbs3/getstats.h
- src/sbbs3/ident.c 2 additions, 2 deletionssrc/sbbs3/ident.c
Loading
Please register or sign in to comment