- Jan 18, 2021
-
-
Rob Swindell authored
Its a terrible idea to modify the return value of strerror() on any platform. strerror() can (and often does) return immutable string constants - don't try to modify that string even if it does end in trailing white-space (find another solution to that). This change only affects non-*nix builds since we were already doing the right thing for *nix.
-
- Aug 16, 2020
-
-
Rob Swindell authored
-
- Aug 08, 2020
-
-
rswindell authored
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.
-
- Aug 03, 2020
- Apr 14, 2020
-
-
rswindell authored
builds.
-
- Mar 22, 2020
-
-
rswindell authored
nanosleep was interrupted by a signal and the SLEEP parameter is > 1. Previously, any signal wuold abort SLEEP() prematurely. A SLEEP(1) (yield) behaves the same as before since 1 is a special value where a short-sleep duration is fine/expected on occasion.
-
- Sep 10, 2019
-
-
deuce authored
Hopfully this doesn't break the Borland or Watcom (?!) builds.
-
- Apr 11, 2019
-
-
rswindell authored
-
- Jul 23, 2018
-
-
rswindell authored
the number of decimal places in the resulting string.
-
- Jul 20, 2018
-
-
rswindell authored
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!).
-
- Jul 19, 2018
-
-
rswindell authored
-
- Feb 16, 2018
-
-
rswindell authored
We need this for MSVC2013 and MSVC2017 builds.
-
- Nov 05, 2017
-
-
rswindell authored
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.
-
- Nov 19, 2016
-
-
sbbs authored
-
- May 26, 2016
-
-
rswindell authored
of parse_byte_count() and parse_duration()) and use them in ini_file.c
-
- Jan 18, 2016
-
-
rswindell authored
(or possibly intervals) in seconds or fractions of a second. Supports multipliers: (Y)ear, (W)eek, (D)ay, (H)our, and (M)inute.
-
- Jan 11, 2016
-
-
deuce authored
-
- Sep 28, 2015
-
-
rswindell authored
rename to parse_byte_count(), so we can use it more places (e.g. jsexec).
-
- Jun 23, 2014
-
-
deuce authored
-
- Apr 29, 2014
- Apr 25, 2012
- Oct 24, 2011
-
-
deuce authored
-
- Oct 18, 2011
-
-
rswindell authored
-
- May 11, 2011
-
-
deuce authored
systems with chars larger than 8 bits.
-
- Jun 03, 2010
-
-
rswindell authored
-
- May 24, 2010
- Jan 14, 2009
-
-
deuce authored
super-wonderfull srandomdev() where available. Where we can't, try to use /dev/urandom if possible... If that fails, start making stuff up... At some point, the Win32 build should use CryptGenRandom() which is slightly better on Windows NT/2K/XP and vastly better on Vista... not present on 9x apparently though.
-
- Feb 23, 2008
-
-
rswindell authored
Moved xpDateTime and isoDateTime functions from datewrap.* to xpdatetime.*. Created several new xp and ISO date time functions and macros.
-
- Feb 22, 2008
-
-
rswindell authored
-
- Sep 22, 2007
-
-
rswindell authored
the passed string. Using isspace() in truncsp().
-
- Jul 11, 2007
-
-
deuce authored
-
- Aug 14, 2006
-
-
rswindell authored
-
- Jun 04, 2006
-
-
rswindell authored
-
- May 31, 2006
-
-
rswindell authored
-