• src/sbbs3/jsexec.cpp

    From Deucе@1:103/705 to Git commit to main/sbbs/master on Wed Mar 25 13:02:47 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/e3f60b02111c013f9854be91
    Modified Files:
    src/sbbs3/jsexec.cpp
    Log Message:
    Rename jsexec global function list

    Avoid doing wacky things vs. the one in main.cpp when building a
    JSDOCS Synchronet executable.

    Prevents jsexec-only functions from appearing in jsobjs.html, and
    ensure write_raw() *is* documented (doesn't get documented for jsexec)
    --- SBBSecho 3.37-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 Sat Mar 28 23:17:59 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/a4aee23ca58ec4fb3d8e048b
    Modified Files:
    src/sbbs3/jsexec.cpp
    Log Message:
    Go back to using "non-standard third parameter to main for environment"

    ... but only for non-macOS builds, since apparently there was an issue
    (see commit bae7c4dc6d).

    This revert fixes the following MSVC build warning
    warning C4273: '__p__environ': inconsistent dll linkage

    This *may* fix an issue that plt was reporting where it appeared the SBBSCTRL environment variable was getting clobbered by running 'jsexec addfiles.js'
    for imports of a lot of files resulting in subsequent errors (running jsexec) with finding main.ini since the SBBSCTRL environment (pointing to the correct location of main.ini) was missing or empty in the process or shell. A similar error was reported using SBBSCTRL->User->Edit or SBBSCTRL->File->Run ... , but only after running jsexec (addfiles.js). The root cause was not determined, so this is just a guess that there could be some relation to this change.
    --- SBBSecho 3.37-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 29 00:54:19 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/d165e10c69d34d8a58213d6c
    Modified Files:
    src/sbbs3/jsexec.cpp
    Log Message:
    In MSVC, at least, environ is a macro for _environ which is a function

    ... so this change would crashes on the call to js_init().

    Revert to the use of 'env' as the argument name (as before commit
    bae7c4dc) and hope this change works for macOS build too.
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)