• src/xpdev/gen_defs.h

    From Deuc╨╡ to Git commit to main/sbbs/master on Fri Mar 22 11:38:39 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/ffd5385d1510e7da8a547970
    Modified Files:
    src/xpdev/gen_defs.h
    Log Message:
    Use strlcpy() for X?SAFECOPY() macros.

    Also, for DEBUG builds, add a static assertion that
    sizeof(dst) != sizeof(void*) to catch the most common breakage.
  • From Deuc╨╡ to Git commit to main/sbbs/master on Fri Mar 22 11:42:26 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/d13fa3bd3eb4953a587c6d5d
    Modified Files:
    src/xpdev/gen_defs.h
    Log Message:
    Use static_assert() macro instead of _Static_assert keyword

    More compatible with C++ that way.
  • From Rob Swindell (on Debian Linux) to Git commit to main/sbbs/master on Fri Mar 22 11:48:03 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/a8c0ac5da5374f83333b570e
    Modified Files:
    src/xpdev/gen_defs.h
    Log Message:
    Fix stale comment about XSAFECOPY (now uses strlcpy, not strncpy)
  • From Deuc╨╡ to Git commit to main/sbbs/master on Fri Mar 22 11:48:38 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/2b3a174068b33c4c947b2b21
    Modified Files:
    src/xpdev/gen_defs.h
    Log Message:
    static_assert() only available with C11 and higher.
  • From Deuc╨╡ to Git commit to main/sbbs/master on Fri Mar 22 11:50:56 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/406ea9488765141c69185e81
    Modified Files:
    src/xpdev/gen_defs.h
    Log Message:
    Borland expects ()
  • From Deuc╨╡ to Git commit to main/sbbs/master on Fri Mar 22 11:53:02 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/a987cf4b49ff92f4925f7106
    Modified Files:
    src/xpdev/gen_defs.h
    Log Message:
    Stop interlacing preprocessor stuff.
  • From Deuc╨╡ to Git commit to main/sbbs/master on Fri Mar 22 23:11:54 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/c64357b949c68ff54489f1e1
    Modified Files:
    src/xpdev/gen_defs.h
    Log Message:
    include genwrap.h at the end of gen_defs.h for strlcpy()/strlcat().

    This whole library is starting to get crufty and could use a room
    at a hackathon.
  • From Rob Swindell (on Windows 11) to Git commit to main/sbbs/master on Sun Mar 24 17:58:57 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/be523ad92bf537adb4c195f3
    Modified Files:
    src/xpdev/gen_defs.h
    Log Message:
    Remove obsolete note comment about genwrap.h
  • From Deuc╨╡@shurd@sasktel.net to Git commit to main/sbbs/master on Tue Sep 30 10:03:32 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/59a695825a13d6898fb804a0
    Modified Files:
    src/xpdev/gen_defs.h
    Log Message:
    Don't rely on locale for isspace()

    With truncsp() and SKIP_WHITESPACE() dominating runtime for INI
    parsing now, the locale lookups needed for every isspace() call
    have become significant. Since we likely don't actually want isspace()
    to use the local, expand the C locale whitespace table directly.

    This provides a 20% performance boost to INI parsing when using
    the FastParse calls (much smaller using other parsing functions)
    and is likely to improve various other whitespace-heavy things.
  • From Deuc╨╡@shurd@sasktel.net to Git commit to main/sbbs/master on Thu Oct 9 16:02:28 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/a4a69d20760f5f5608658fe5
    Modified Files:
    src/xpdev/gen_defs.h
    Log Message:
    inttypes.h and stdint.h are part of C99 and C++17

    So we can assume the exist if we're using a C99 or newer compiler.
    stdint.h is in C++11 (though inttypes.h isn't)

    This has been the most painful bit of xpdev for a while now.
  • From Deuc╨╡@shurd@sasktel.net to Git commit to main/sbbs/master on Fri Oct 10 12:45:56 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/a136e0d08cd0da404a519b01
    Modified Files:
    src/xpdev/gen_defs.h
    Log Message:
    Both inttypes.h and stdint.h were in C++11
  • From Rob Swindell (on Windows 11)@rob@synchro.net to Git commit to main/sbbs/master on Tue Jan 13 22:16:37 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/3d7d3472419f9be65f6d7e29
    Modified Files:
    src/xpdev/gen_defs.h
    Log Message:
    Suppress a Coverity issue with typecast

    CID 640989: (CONSTANT_EXPRESSION_RESULT)
  • From Rob Swindell (on Windows 11)@rob@synchro.net to Git commit to main/sbbs/master on Wed Jan 14 15:28:13 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/cec1342f9738b7d2eae4ce02
    Modified Files:
    src/xpdev/gen_defs.h
    Log Message:
    Forgot the extra parens needed in macros

    Resolve a bunch of Coverity issues, e.g.
    CID 641215: (CONSTANT_EXPRESSION_RESULT)
    CID 641216: Integer handling issues (CONSTANT_EXPRESSION_RESULT)
    CID 641217: (CONSTANT_EXPRESSION_RESULT)
    CID 641218: (CONSTANT_EXPRESSION_RESULT)
    CID 641219: Integer handling issues
  • From Rob Swindell (on Windows 11)@rob@synchro.net to Git commit to main/sbbs/master on Sun Feb 8 08:15:07 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/0269fafedfe1cb44a77fd6e6
    Modified Files:
    src/xpdev/gen_defs.h
    Log Message:
    Create IS_UPPERHEXDIGIT macro

    Like IS_HEXDIGIT, but only for uppercase hex
  • From Rob Swindell (on Windows 11)@rob@synchro.net to Git commit to main/sbbs/master on Thu Feb 19 15:32:39 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/41a56832d5f1c08beb68c43f
    Modified Files:
    src/xpdev/gen_defs.h
    Log Message:
    Remove the typecast before CP437_NO_BREAK_SPACE check causing Clang warnings

    ... was added in commit 3d7d34724 to resolve Coverity issue. So that Coverity issue will return. <shrug>

    Add more parens for macro-safety.
  • From Rob Swindell (on macOS)@rob@synchro.net to Git commit to main/sbbs/master on Wed Mar 18 22:41:49 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/8fd7e6a66dc4ccc549d76fb8
    Modified Files:
    src/xpdev/gen_defs.h
    Log Message:
    Typecast both sides of the equality comparison in IS_WHITESPACE definition

    to make Clang happy

    warning: result of comparison of constant 'CP437_NO_BREAK_SPACE' (-1) with expression of type 'const unsigned char' is always false