BBS:      TELESC.NET.BR
Assunto:  src/sbbs3/jsexec.cpp
De:       Rob Swindell (on Windows 11)
Data:     Sat, 28 Mar 2026 23:17:59 -0700
-----------------------------------------------------------
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.
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

-----------------------------------------------------------
[Voltar]