• src/sbbs3/js_global.c

    From rswindell to CVS commit on Saturday, August 08, 2020 18:53:52
    src/sbbs3 js_global.c 1.408 1.409
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    js_global.c
    Log Message:
    Bug-fix: global socket_errno_str property returned numeric value (not string).


  • From Rob Swindell to Git commit to sbbs/master on Saturday, September 26, 2020 18:24:35
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/7c12761d51ebc0a33482d62f
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    Add global methods: strerror() and socket_strerror()

    If you have a stored errno value (or Socket.error), these are how you convert that number to an error description.
  • From Rob Swindell to Git commit to main/sbbs/master on Wednesday, December 02, 2020 00:09:17
    https://gitlab.synchro.net/main/sbbs/-/commit/d083d463917d83c4e0e3fd02
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    Don't log an error when JS resolve_ip() fails

    e.g. don't log the error "term !ERROR resolve_ip example.com failed with error -2", just let the script deal with the failure and log an error if it wishes.
  • From Rob Swindell to Git commit to main/sbbs/master on Sunday, January 10, 2021 20:39:46
    https://gitlab.synchro.net/main/sbbs/-/commit/292c4acccd7805e22af91d7e
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    String processing functions return null (instead of "null") when passed null

    This was initially just done for lfexpand(), but then I realized there were a lot of these string processing functions that just checked for VOID
    (undefined) argumnet value, but not null.
  • From Deuc╨╡ to Git commit to main/sbbs/master on Thursday, March 25, 2021 22:56:46
    https://gitlab.synchro.net/main/sbbs/-/commit/cba62a81a5b159b0589012a4
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    Properly handle CSI m in html_encode()

    Used by gcc in warnings.
  • From Rob Swindell to Git commit to main/sbbs/master on Monday, April 26, 2021 20:59:36
    https://gitlab.synchro.net/main/sbbs/-/commit/c67c16bb3b401d214b837f17
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    Add support for conditional new-line Ctrl-A code (/) in html_encode()
  • From Rob Swindell (on Debian Linux) to Git commit to main/sbbs/master on Thursday, March 02, 2023 01:11:32
    https://gitlab.synchro.net/main/sbbs/-/commit/322471e4d3364c7a9979c0e9
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    netaddr_type() now returns NET_NONE when passed null or undefined

    ... instead of undefined, to match what the documentation already stated.
  • From Rob Swindell (in GitKraken) to Git commit to main/sbbs/master on Monday, March 13, 2023 18:31:32
    https://gitlab.synchro.net/main/sbbs/-/commit/8229b90607aa8e76e11ff2db
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    Add new global JS function: rmfiles() (remove files)

    number rmfiles(directory, spec=*, keep=0)

    Removes files and sub-directories, recursively. Use with caution!
  • From Rob Swindell (on Debian Linux) to Git commit to main/sbbs/master on Monday, March 13, 2023 19:41:29
    https://gitlab.synchro.net/main/sbbs/-/commit/8fbd052ef6f5d608011651c2
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    Fix GCC warning regarding incompatible pointer type
  • From Rob Swindell (on Windows) to Git commit to main/sbbs/master on Tuesday, May 23, 2023 18:47:17
    https://gitlab.synchro.net/main/sbbs/-/commit/1ea093ded702fc1c800b54fb
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    Add new global method: strip_ctrl_a() - remove Ctrl-A sequences from string

    Unlike strip_ctrl(), does not remove any other control characters from string.
  • From Rob Swindell (on Windows) to Git commit to main/sbbs/master on Friday, July 07, 2023 18:39:53
    https://gitlab.synchro.net/main/sbbs/-/commit/947f1a785d06f1ce6ebce9e4
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    Update JSDOCS for resolve_ip and resolve_host: returns null on failure
  • From Rob Swindell (on Windows 11) to Git commit to main/sbbs/master on Wednesday, November 22, 2023 15:30:20
    https://gitlab.synchro.net/main/sbbs/-/commit/9544742b6578711d4fdb15b9
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    Elaborate in JSDOC string for html_decode()

    Add comment/question about the use of JS_SetReservedSlot(), for Deuce
  • From Rob Swindell (on Windows 11) to Git commit to main/sbbs/master on Sunday, January 21, 2024 15:02:04
    https://gitlab.synchro.net/main/sbbs/-/commit/bcf5220dc1dbd5b504ac68a0
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    Clarify JSDOC kibibytes versus kilobytes
  • From Rob Swindell (on Windows 11) to Git commit to main/sbbs/master on Thursday, February 15, 2024 21:37:00
    https://gitlab.synchro.net/main/sbbs/-/commit/2aa805d5e8f34dbc0caeadcc
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    Log the problem codepoint when reporting error in utf8_encode()
  • From Rob Swindell (on Windows 11) to Git commit to main/sbbs/master on Monday, February 26, 2024 22:41:59
    https://gitlab.synchro.net/main/sbbs/-/commit/e7738fa44ef19b502e9e0cf4
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    Fix commit 78dc9470 - wasn't complete

    For some reason, I committed test code that commented-out the actual call
    to js_IsTerminated() which avoided the unnecessary error log message. I guess
    I was testing to confirm the change actually worked. <shrug>
  • From Rob Swindell (on Windows 11) to Git commit to main/sbbs/master on Thursday, August 08, 2024 21:12:19
    https://gitlab.synchro.net/main/sbbs/-/commit/d5516d0fdfa0683f399a977b
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    Global JS exit() function now sets 'exit_code' to 0 by default

    Calling exit() causes JS_ExecuteScript() to return false (same return value
    as if there's a syntax error) - so if we always set exit_code in exit()
    (even when not passed a parameter) and then use that exit code if the property is defined, then we get the -1 return value from js_execfile() if the script
    is terminated prematurely without using exit().

    This fixes the issue introduced in the previous commit where scripts that
    call exit() - without any parameters, were causing errors to be logged about scripts (e.g. timed events) returning -1.
  • From Deuc╨╡ to Git commit to main/sbbs/master on Thursday, October 03, 2024 14:20:31
    https://gitlab.synchro.net/main/sbbs/-/commit/0f00cbea87ded29aa84e6847
    Modified Files:
    src/sbbs3/js_global.c
    Log Message:
    Fix multi-array version of socket_select() when using poll()

    Previously, when multiple lists were passed, the "write" parameter
    (which can't be changed) was applied to all sockets. This means
    they would always all be poll()ed for read, then checked for the
    appropriate flag (read/write/priority)... which effectively meant
    that only the first (read) array would work.