• src/sbbs3/jsexec.cpp

    From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Fri Dec 12 23:16:55 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/170f9fc51979d4d2c6ada571
    Modified Files:
    src/sbbs3/jsexec.cpp
    Log Message:
    Restore the 'environ' declaration removed in previous commit (C++ migration)

    Needed for FreeBSD build apparently:
    jsexec.cpp:1561:16: error: use of undeclared identifier 'environ'

    Even though we get a (new) warning when built w/MSVC:
    warning C4273: '__p__environ': inconsistent dll linkage

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on macOS)@VERT to Git commit to main/sbbs/master on Sat Dec 13 00:48:46 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/2edfed0854f748b168ea356b
    Modified Files:
    src/sbbs3/jsexec.cpp
    Log Message:
    main() needs "C" linkage/naming

    Resolve macOS build error:
    Undefined symbols for architecture arm64:
    "_CIOLIB_main", referenced from:
    _main_stub in libciolib_mt.a[3](ciolib.o)

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Fri Mar 6 07:16:50 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/a9dc558b2914211d32ba8ecc
    Modified Files:
    src/sbbs3/jsexec.cpp
    Log Message:
    Fix jsdoor

    Since jsdoor doesn't use the SBBS library, it can't possibly have
    the right version of it, and it can't even check the version.

    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT 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)

    ---
    ï¿­ 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 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.

    ---
    þ 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 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.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net