• src/sbbs3/jsexec.c

    From rswindell@VERT to CVS commit on Monday, October 22, 2018 07:41:00
    src/sbbs3 jsexec.c 1.199 1.200
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    jsexec.c
    Log Message:
    Another gcc printf warning fix.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sunday, January 20, 2019 01:55:00
    src/sbbs3 jsexec.c 1.201 1.202
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv24802

    Modified Files:
    jsexec.c
    Log Message:
    Fix long-standing bug: if jsexec was passed any option which requires a parameter value and no value was supplied (e.g. 'jsexec -c'), a null pointer dereference would cause the program to crash.
    Also display more helpful error if option parameter value is missing.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Wednesday, May 29, 2019 16:44:00
    src/sbbs3 jsexec.c 1.203 1.204
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv24021

    Modified Files:
    jsexec.c
    Log Message:
    Support terminating the script from the debugger before it actually runs.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Tuesday, August 06, 2019 03:22:24
    src/sbbs3 jsexec.c 1.204 1.205
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv2403

    Modified Files:
    jsexec.c
    Log Message:
    Call make_data_dirs() from JSexec. Without this, sbbs would have to be run to be sure all necessary dirs are created.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thursday, August 08, 2019 15:29:38
    src/sbbs3 jsexec.c 1.205 1.206
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv4915

    Modified Files:
    jsexec.c
    Log Message:
    Remove call to make_data_dirs() - no exported from sbbs.dll. Also, scfgsave() already creates the dirs that were of concern (Transfser File Paths). May
    want to DLL-export this and call from here later.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Tuesday, August 27, 2019 08:12:09
    src/sbbs3 jsexec.c 1.206 1.207
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv32386

    Modified Files:
    jsexec.c
    Log Message:
    Restore cooked TTY mode *before* prompting for the user to hit ENTER when
    run with the '-p' or '-!' options. This resolve the issue of (on Win32)
    having to enter *twice* to close the program in this mode.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Tuesday, August 27, 2019 19:02:09
    src/sbbs3 jsexec.c 1.207 1.208
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv15318

    Modified Files:
    jsexec.c
    Log Message:
    Enable some interesting JS options for jsdoor only (for now).
    These almost certainly improve performance a bunch, but may result in
    new behaviours.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Thursday, August 29, 2019 16:26:40
    src/sbbs3 jsexec.c 1.208 1.209
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv6296

    Modified Files:
    jsexec.c
    Log Message:
    We do *not* want JSOPTION_VAROBJFIX set since it causes variables to be
    created in the global scope when when a scope is passed to load(), require()
    or js.exec().

    While having 'var x = 0;' and 'x = 0;' put x in different scopes is bad, we actually want them all in the passed scope, not the global scope... and that's not an option.

    It looks like js.exec() will actually need to set scope as the global object and add a second global object to the original scope.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Monday, September 02, 2019 20:13:45
    src/sbbs3 jsexec.c 1.209 1.210
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv26977

    Modified Files:
    jsexec.c
    Log Message:
    Set values in JSDoor scfg_t required to create and use a TLS certificate...

    scfg.prepped = TRUE
    scfg.tls_certificate = -1
    scfg.sys_inetaddr = "example.com"
    scfg.sys_name = "JSDoor"
    scfg.sys_pass = "ThisIsNotHowToDoSecurity"




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to sbbs/master on Saturday, November 14, 2020 03:43:21
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/74b4a948bb366ce463a78eef
    Modified Files:
    src/sbbs3/jsexec.c
    Log Message:
    More control over output streams

    Added options -A[filename] and -S[filename] to allow more control over which output streams go where (for mlong and his troubles with running ircd via systemd).

    -A controls "all messages" either sending all to stdout or the specified filename. This override the automatic suppression of the console output stream when run without a controlling TTY.

    -S controls "status message" (includes non-error level log messages), either sending the status messages to stdout or the specified filename. This also overrides the automatic suppression of the console output stream when run without a controlling TTY.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to sbbs/master on Saturday, November 14, 2020 05:40:45
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/8cdd04222f1b14ff8fb239cf
    Modified Files:
    src/sbbs3/jsexec.c
    Log Message:
    Restore console to "cooked" mode before daemonizing().

    Previously, the console would be left in "raw" mode after invoking
    'jsexec -d <module>'.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to Main/master on Tuesday, November 24, 2020 08:06:52
    https://gitlab.synchro.net/main/sbbs/-/commit/abb3bcccb3c217ff0dea5327
    Modified Files:
    src/sbbs3/jsexec.c
    Log Message:
    Resolve warning: `strJavaScriptContextStack' defined but not used

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Saturday, January 30, 2021 10:22:11
    https://gitlab.synchro.net/main/sbbs/-/commit/6cd643a3e500532fd395fef1
    Modified Files:
    src/sbbs3/jsexec.c
    Log Message:
    Add -I (Interpret) command-line option to execute cmdline string

    At Tracker1's request/suggestion.

    jsexec -Itrue
    ...
    Result (boolean): true

    More elaborate expressions can be evaluated and white-space included by quoting the "-I expression".

    Also, send all cmd-line usage errors to stderr and syntax help to stdout, always (Deuce's request).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Saturday, January 30, 2021 10:22:11
    https://gitlab.synchro.net/main/sbbs/-/commit/d5dc867b8717f227bc3942c2
    Modified Files:
    src/sbbs3/jsexec.c
    Log Message:
    I said, usage to stdout.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Saturday, January 30, 2021 19:13:15
    https://gitlab.synchro.net/main/sbbs/-/commit/d33e6a4444321febdff0ee1b
    Modified Files:
    src/sbbs3/jsexec.c
    Log Message:
    Make it 'jsexec -r' (run) instead of 'jsexec -I'

    Also, it's not technically an option, so remove from the option list.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Dream Master@VERT/CIAD to Rob Swindell on Sunday, January 31, 2021 00:20:23
    Re: src/sbbs3/jsexec.c
    By: Rob Swindell to Git commit to main/sbbs/master on Sat Jan 30 2021 11:13 am

    Make it 'jsexec -r' (run) instead of 'jsexec -I'

    Let me guess, I for instantiate? :)

    Brian Klauss <-> Dream Master
    Caught in a Dream | caughtinadream.com a Synchronet BBS

    ---
    þ Synchronet þ Caught in a Dream - caughtinadream.com
  • From Digital Man@VERT to Dream Master on Saturday, January 30, 2021 23:40:45
    Re: src/sbbs3/jsexec.c
    By: Dream Master to Rob Swindell on Sat Jan 30 2021 04:20 pm

    Re: src/sbbs3/jsexec.c
    By: Rob Swindell to Git commit to main/sbbs/master on Sat Jan 30 2021 11:13 am

    Make it 'jsexec -r' (run) instead of 'jsexec -I'

    Let me guess, I for instantiate? :)

    I was thinking Invoke or Interpret, but the capital 'I' just isn't a great thing to convey or document (looks too much like an 'l') or use (shift key and all) when there's another option, so I went with '-r' for Run. :-)
    --
    digital man

    Synchronet "Real Fact" #81:
    Vertrauen has had the FidoNet node number 1:103/705 since 1992.
    Norco, CA WX: 61.3øF, 50.0% humidity, 0 mph WSW wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Dream Master@VERT/CIAD to Digital Man on Sunday, January 31, 2021 01:19:17
    Re: src/sbbs3/jsexec.c
    By: Digital Man to Dream Master on Sat Jan 30 2021 03:40 pm

    I was thinking Invoke or Interpret, but the capital 'I' just isn't a great thing to convey or document (looks too much like an 'l') or use (shift key and all) when there's another option, so I went with '-r' for Run. :-)

    I've come up with some crazy variables in my time. Hell, I wish all *nixes would keep their options the same. In AIX, if you want to see everything in terms of 1024, you use -g (df -g, for example). In Linux, -h (df -h), which Mibs, Gibs, or Tibs them.

    Oh well.

    Brian Klauss <-> Dream Master
    Caught in a Dream | caughtinadream.com a Synchronet BBS

    ---
    þ Synchronet þ Caught in a Dream - caughtinadream.com
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sunday, January 31, 2021 07:41:46
    https://gitlab.synchro.net/main/sbbs/-/commit/6751ec5c6552c2af7507c80a
    Modified Files:
    src/sbbs3/jsexec.c
    Log Message:
    Apply Deuce's feedback on the usage/syntax help output.

    Also change the wording of the -D option to be more descriptive.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sunday, January 31, 2021 07:44:13
    https://gitlab.synchro.net/main/sbbs/-/commit/d49668063295eec1dab3f5e4
    Modified Files:
    src/sbbs3/jsexec.c
    Log Message:
    Typo

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