• src/xpdev/genwrap.c genwrap.h

    From rswindell@VERT to CVS commit on Mon Jan 18 01:59:29 2016
    src/xpdev genwrap.c 1.97 1.98 genwrap.h 1.106 1.107
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv27102

    Modified Files:
    genwrap.c genwrap.h
    Log Message:
    Created parse_duration(), similar to parse_bytes() but for durations
    (or possibly intervals) in seconds or fractions of a second. Supports multipliers: (Y)ear, (W)eek, (D)ay, (H)our, and (M)inute.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Sat Nov 4 21:20:05 2017
    src/xpdev genwrap.c 1.102 1.103 genwrap.h 1.109 1.110
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv28607

    Modified Files:
    genwrap.c genwrap.h
    Log Message:
    Created duration_to_vstr() - like duration_to_str(), but it appends a space then a clarifying or modifying word (year[s], month[s], day[s], etc.). parse_byte_count() and parse_duration() now support a space between the
    numeric value (decimal digits) and the modifier. Hopefully this doesn't break anything, but it makes parse_duration() compatible with the strings generated with duration_to_vstr(). We might want a verbose version of byte_count_to_str() in the future, so I figured it made sense to go ahead and add the white-space skipping/parsing to prase_byte_count() now.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thu Jul 19 11:23:49 2018
    src/xpdev genwrap.c 1.106 1.107 genwrap.h 1.111 1.112
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv17787

    Modified Files:
    genwrap.c genwrap.h
    Log Message:
    Create a strcasestr() implementation for MSVC (Windows) builds.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thu Jul 19 22:44:42 2018
    src/xpdev genwrap.c 1.107 1.108 genwrap.h 1.112 1.113
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv10816

    Modified Files:
    genwrap.c genwrap.h
    Log Message:
    Fixed strcasestr() for Windows - oops.
    Created byte_estimate_to_str(), much like byte_count_to_str(), except the
    byte count is rounded to the nearest tera/giga/mega/kilo-byte
    (technically tebi/gibi/mebi/kibi-byte, but ugh, I'm old-sk00l!).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Mon Jul 23 15:52:54 2018
    src/xpdev genwrap.c 1.108 1.109 genwrap.h 1.113 1.114
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv21043

    Modified Files:
    genwrap.c genwrap.h
    Log Message:
    Add a precision argument to byte_estimate_to_str() so the caller can control the number of decimal places in the resulting string.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Tue Apr 14 16:58:38 2020
    src/xpdev genwrap.c 1.113 1.114 genwrap.h 1.117 1.118
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv12570

    Modified Files:
    genwrap.c genwrap.h
    Log Message:
    Include a reimplementation of BSD strlcpy(), currently only enabled in Windows builds.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sat Aug 8 16:25:46 2020
    src/xpdev genwrap.c 1.114 1.115 genwrap.h 1.121 1.122
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv21344

    Modified Files:
    genwrap.c genwrap.h
    Log Message:
    Define a thread-safe/re-entrant version of strerror(): safe_strerror() which is just thin wrapper around strerror_s on Windows and strerror_r elsewhere.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Fri Feb 11 23:11:31 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/0cc707ae754aabc942077bfe
    Modified Files:
    src/xpdev/genwrap.c genwrap.h
    Log Message:
    Use xp_timer()-based msclock() on Win32 too.

    Now it should keep working after 24 days.
    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Fri Feb 11 23:39:06 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/84a2bb321ffa35c33a731f8c
    Modified Files:
    src/xpdev/genwrap.c genwrap.h
    Log Message:
    Add xp_timer64()

    This is a millisecond timer that tries to avoid floating-point
    operations.
    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sun Mar 13 23:33:54 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/1bea824793a13283c0f2c9a6
    Modified Files:
    src/xpdev/genwrap.c genwrap.h
    Log Message:
    Create *nix wrapper for MSVC's _i64toa()
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Wed Mar 23 21:07:26 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/fcb6846b84fccc3c803edaa1
    Modified Files:
    src/xpdev/genwrap.c genwrap.h
    Log Message:
    byte-count to string routines type unsigned 64-bit int now

    We don't have a use case negative byte values in strings anywhere that I can think of.

    Created wrapper for MSFT _ui64toa_() - unsigned 64-bit integer to ASCII string.

    Add Petabyte (actually, Pebibyte) support to byte_count_to_str() and byte_estimate_to_str().

    Removed 'B' suffix from byte_estimate_to_str() output for values < 1024. Callers may display this returned string followed by "bytes" (or similar) and thus the 'B' suffix is redundant in that case. If the caller needs a 'B' suffix, they can detect no suffix and add it.
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Mon Dec 18 01:49:02 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/66c589fae030890e79a6c15b
    Modified Files:
    src/xpdev/genwrap.c genwrap.h
    Log Message:
    Create duration_estimate_to_[v]str() functions

    Sometimes you want to see "1.5 minutes" (or "1.5M") intead of "90 seconds"
    (or "90S")

    I noticed some left over questionable use of ulong here in byte_count related functions, so fixed that.
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Tue Feb 20 14:43:49 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/30854bbbcfd86f2cafd57c62
    Modified Files:
    src/xpdev/genwrap.c genwrap.h
    Log Message:
    Whoops, these are for all !_WIN32 and some _WIN32
    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Tue Feb 20 15:01:42 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/1a853b2836486a40aeaa3d5d
    Modified Files:
    src/xpdev/genwrap.c genwrap.h
    Log Message:
    Fix inverted logic for Mingw32.
    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Tue Feb 20 16:38:09 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/ad4737c5e5041545d09b8dc5
    Modified Files:
    src/xpdev/genwrap.c genwrap.h
    Log Message:
    mingw32-w64 does not include ultoa()
    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Fri Mar 22 10:59:52 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/2e39f3d24b87e073cff17a8b
    Modified Files:
    src/xpdev/genwrap.c genwrap.h
    Log Message:
    Cpoy/paste strlcat() from FreeBSD 13.3-RELEASE
    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net