• exec/load/cnflib.js

    From mcmlxxix@VERT to CVS commit on Sunday, November 16, 2014 15:46:22
    exec/load cnflib.js 1.1 1.2
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv9605

    Modified Files:
    cnflib.js
    Log Message:
    return false if cnf file fails to open
    return true if all the other crap happens as it should


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From echicken@VERT to CVS commit on Sunday, November 16, 2014 20:45:05
    exec/load cnflib.js 1.2 1.3
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv14431

    Modified Files:
    cnflib.js
    Log Message:
    'lst' rather than 'arr', matey.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From mcmlxxix@VERT to CVS commit on Thursday, March 05, 2015 10:13:44
    exec/load cnflib.js 1.3 1.4
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv6003

    Modified Files:
    cnflib.js
    Log Message:
    allow array length as a parameter to readArray()
    added CNF.getBytes() to determine the size (in bytes) of a data structure


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From mcmlxxix@VERT to CVS commit on Thursday, March 05, 2015 10:40:50
    exec/load cnflib.js 1.4 1.5
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv6395

    Modified Files:
    cnflib.js
    Log Message:
    added length parameter to setStr() and getStr()
    where length = the number of bytes in which to store the string length property
    (if the string record is 20 bytes with a 1 byte length prefix, total record length = 21 bytes)
    account for this in CNF.getBytes() as well


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From mcmlxxix@VERT to CVS commit on Monday, November 09, 2015 13:16:41
    exec/load cnflib.js 1.5 1.6
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv23839

    Modified Files:
    cnflib.js
    Log Message:
    fixed bug reported by desotofireflite where native programs and global hotkeys were being destroyed by cnflib.js (typo)


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From echicken@VERT to CVS commit on Saturday, December 19, 2015 22:28:44
    exec/load cnflib.js 1.7 1.8
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv21637

    Modified Files:
    cnflib.js
    Log Message:
    etStr ain't a thing.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From echicken@VERT to CVS commit on Sunday, December 27, 2015 23:46:05
    exec/load cnflib.js 1.8 1.9
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv19206

    Modified Files:
    cnflib.js
    Log Message:
    Make the optional 'length' argument the last argument to setStr().
    Alter calls to setStr() accordingly.
    Previously, the 'str' argument may have been left undefined, leading to Bad Things.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From mcmlxxix@VERT to CVS commit on Monday, December 28, 2015 10:31:47
    exec/load cnflib.js 1.9 1.10
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv17784

    Modified Files:
    cnflib.js
    Log Message:
    apply previous fix to getStr() function


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Tuesday, January 16, 2018 20:31:45
    exec/load cnflib.js 1.10 1.11
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv14391

    Modified Files:
    cnflib.js
    Log Message:
    A few changes:
    * Don't set File.etx when reading .cnf files. strings are null-terminated
    in *.cnf files.
    * Don't open files shareable - they are not. This could explain .cnf file
    corruption when using this library.
    * read() and write():
    - If passed just the .cnf filename, get the full path automatically
    If not passed a 'struct' argument, figure it out from the filename
    * Make the CNF object the last statement so that this library may be loaded
    into its own scope using: var cnflib = load({}, 'cnflib.js');



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Monday, March 05, 2018 16:26:21
    exec/load cnflib.js 1.11 1.12
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv20879

    Modified Files:
    cnflib.js
    Log Message:
    When writing a configuration string record (to a .cnf file), if the
    struct field is not defined, write a zero-len string instead of 'undefined'.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sunday, March 15, 2020 01:47:52
    exec/load cnflib.js 1.14 1.15
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv15194

    Modified Files:
    cnflib.js
    Log Message:
    Make the write() method more tolerant of a script that is in the process
    of being terminated (e.g. user hitting Ctrl-C in jsexec) - don't open
    and truncate the .cnf file if we're going to exit with an exception
    anyway and likely leave a 0-byte .cnf file behind.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Thursday, July 14, 2022 17:52:28
    https://gitlab.synchro.net/main/sbbs/-/commit/5615e656c54bb68df068c735
    Modified Files:
    exec/load/cnflib.js
    Log Message:
    Strip 0xff chars from strings read from .cnf files

    Some unused/padding bytes are written as 0xff, so don't build strings from those chars.

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