BBS:      TELESC.NET.BR
Assunto:  src/syncterm/syncterm.c term.c
De:       Deuc¨
Data:     Mon, 27 Apr 2026 06:15:53 -0700
-----------------------------------------------------------
https://gitlab.synchro.net/main/sbbs/-/commit/69ce31a825697b89a48f62d9
Modified Files:
	src/syncterm/syncterm.c term.c
Log Message:
SyncTERM: move Wren VM lifecycle inside doterm()

doterm() now owns wren_host_init/shutdown; the caller in syncterm.c
no longer brackets the call.  Converted to a single-return shape via
\`bool ret\` and \`goto end\` so shutdown runs on every exit path.
The pre-init cterm-failure return stays a plain \`return false\`  no
VM exists yet.

Sets up locals (speed, ooii_mode) being in scope where the VM is
initialized, so accessors for them can read live values for the
entire VM lifetime.

Co-Authored-By: Claude Opus 4.7 (1M context) 
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

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