• src/xpdev/gen_defs.h

    From rswindell@1:103/705 to CVS commit on Thu Dec 7 17:58:16 2017
    src/xpdev gen_defs.h 1.72 1.73
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv31466

    Modified Files:
    gen_defs.h
    Log Message:
    Added SKIP_CRLF and FIND_CRLF macros which skip (or find) occurences of either CR or LF, just a convenience wrapper for SKIP/FIND_CHARSET(p, "\r\n")

    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Mon Feb 19 21:25:47 2018
    src/xpdev gen_defs.h 1.74 1.75
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv29387

    Modified Files:
    gen_defs.h
    Log Message:
    Fix off-by-one in the SAFECAT bounds-checking.

    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Thu Mar 8 18:23:38 2018
    src/xpdev gen_defs.h 1.75 1.76
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/home/rswindell/sbbs/src/xpdev

    Modified Files:
    gen_defs.h
    Log Message:
    Use the "long" printf specifier for file offset (off_t) when __LP64__
    is defined - resolves gcc warning in ftpsrvr.c.


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Tue Aug 28 14:20:18 2018
    src/xpdev gen_defs.h 1.76 1.77
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv13610

    Modified Files:
    gen_defs.h
    Log Message:
    Wrap use of FREE_AND_NULL argument in parens, just because it's best practice and no actual observed problem.


    --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Wed Jan 30 19:13:14 2019
    src/xpdev gen_defs.h 1.77 1.78
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv8780

    Modified Files:
    gen_defs.h
    Log Message:
    Handy macros to calculate the number of digits in a given integer:
    HEX_DIGITS() and DEC_DIGITS()


    --- SBBSecho 3.06-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Tue Jul 9 13:05:32 2019
    src/xpdev gen_defs.h 1.78 1.79
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv4868

    Modified Files:
    gen_defs.h
    Log Message:
    Fix FREE_AND_NULL() so it can be used wherever a function is... especially:

    if (fg)
    FREE_AND_NULL(fd);
    else
    FREE_AND_NULL(bg);



    --- SBBSecho 3.07-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Tue Jul 16 13:43:08 2019
    src/xpdev gen_defs.h 1.79 1.80
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv30629

    Modified Files:
    gen_defs.h
    Log Message:
    Function-like-ify SAFECAT()



    --- SBBSecho 3.07-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Fri Apr 17 13:30:06 2020
    src/xpdev gen_defs.h 1.81 1.82
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv18212

    Modified Files:
    gen_defs.h
    Log Message:
    This file is still used when building a 16-bit MS-DOS program (DOSXTRN.EXE)
    so put the 64-bit integer stuff in an #ifndef __MSDOS__ block to enable the build to succeed.

    --- SBBSecho 3.10-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Mon May 25 15:26:36 2020
    src/xpdev gen_defs.h 1.82 1.83
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv24748

    Modified Files:
    gen_defs.h
    Log Message:
    Microsoft isn't typedef'ing ssize_t for us.

    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Tue May 26 10:07:21 2020
    src/xpdev gen_defs.h 1.83 1.84
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv4468

    Modified Files:
    gen_defs.h
    Log Message:
    Borland builds also need ssize_t typedef'd. Watcom can come along for the ride.

    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Sat Aug 15 12:57:51 2020
    src/xpdev gen_defs.h 1.84 1.85
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv32380

    Modified Files:
    gen_defs.h
    Log Message:
    Resolve GCC compile warnings on 32-bit Linux by insuring that PRId/uOFF
    expands to "ld"/"lu", respectively since off_t is a long (not an int): examples:
    ftpsrvr.c:1374:77: warning: format '%d' expects argument of type 'int', but argument 6 has type 'off_t {aka long int}' [-Wformat=]
    lprintf(LOG_WARNING, "%04d <%s> !DATA cannot send file (%s) with size of %"PRIdOFF" bytes"
    websrvr.c:6063:45: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'off_t {aka long int}' [-Wformat=]
    lprintf(LOG_INFO,"%04d Sending file: %s (%"PRIuOFF" bytes)"



    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deuce@1:103/705 to Git commit to sbbs/master on Sat Nov 21 02:12:43 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/6a3fd5591683615872c22eb4
    Modified Files:
    src/xpdev/gen_defs.h
    Log Message:
    define U?INT[0-9]+_(MIN|MAX) for builds without stdint.h (ie: Borland)
    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deuce@1:103/705 to Git commit to sbbs/master on Sat Nov 21 02:13:29 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/ce5cf032d42db61e4aff72ef
    Modified Files:
    src/xpdev/gen_defs.h
    Log Message:
    Fix UINT32_MAX definition in previous commit
    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Sat May 22 15:52:38 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/c5bdb26443df75e6d03eebdb
    Modified Files:
    src/xpdev/gen_defs.h
    Log Message:
    Character 255 is a non-breaking space in CP437Now IS_WHITESPACE() will return true for that char and this allows things like truncsp() to truncate trailing white-space (e.g. from a FILE_ID.DIZ), even if it contains a terminating 0xFF character for some unknown reason.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Mon Nov 22 20:53:40 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/b1fcb452d08cbf462dcf750b
    Modified Files:
    src/xpdev/gen_defs.h
    Log Message:
    MSVC 1.5c defines _MSDOS, not __MSDOS__This change needed to build dosxtrn.exe (again).
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Fri Feb 25 13:05:26 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/85d3f30f52723d9d0cad818f
    Modified Files:
    src/xpdev/gen_defs.h
    Log Message:
    Even when MSVC has inttypes.h, it still doesn't have ssize_t
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Tue Jan 24 12:44:00 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/c0e857c930feb9833d40617f
    Modified Files:
    src/xpdev/gen_defs.h
    Log Message:
    Make SAFECOPY() even safer by not passing NULL destination to strncpy()This should resolve (new) CID 434884 and 434885.Also, remove the SAFECOPY_USES_SPRINTF check/block - nobody enables this.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on ChromeOS)@1:103/705 to Git commit to main/sbbs/master on Thu Jan 26 23:30:10 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/1e3a6b84e7bc1485b2a96828
    Modified Files:
    src/xpdev/gen_defs.h
    Log Message:
    Revert "Make SAFECOPY() even safer by not passing NULL destination to strncpy()"This reverts commit c0e857c930feb9833d40617f00ff5d11be9f7772.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on ChromeOS)@1:103/705 to Git commit to main/sbbs/master on Thu Jan 26 23:45:00 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/ea99ca801e63268479f91e94
    Modified Files:
    src/xpdev/gen_defs.h
    Log Message:
    Add XSAFECOPY (extra safe copy) that won't pass NULL to strncpy()The previous (reverted) change to SAFECOPY would double-resolve the (src)argument and caused
    weird side effects.Again, removes SAFECOPY_USES_SNPRINTF since it was unused. --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 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.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 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.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 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)
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 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.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 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 ()
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 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.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 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.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Windows 11)@1:103/705 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
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)