• src/sbbs3/js_uifc.c

    From deuce@VERT to CVS commit on Wednesday, August 13, 2014 02:13:23
    src/sbbs3 js_uifc.c 1.34 1.35
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv22463

    Modified Files:
    js_uifc.c
    Log Message:
    NULL terminate the property description array.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From deuce@VERT to CVS commit on Saturday, January 09, 2016 23:15:37
    src/sbbs3 js_uifc.c 1.35 1.36
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv8006

    Modified Files:
    js_uifc.c
    Log Message:
    Add a uifc.list.CTX class which allows WIN_SAV to finally work properly. Currently, the (previously undocumented) top, left, width, dflt, and bar parameters to uifc.list() are moved into this object and can no longer be passed in the function call.

    This is still only half-baked, so it will need a few weeks at least in CVS before it congeals enough to be stable.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From deuce@VERT to CVS commit on Sunday, January 10, 2016 22:59:55
    src/sbbs3 js_uifc.c 1.36 1.37
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv9106

    Modified Files:
    js_uifc.c
    Log Message:
    Add uifc.showhelp() method.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From deuce@VERT to CVS commit on Tuesday, January 12, 2016 16:26:47
    src/sbbs3 js_uifc.c 1.37 1.38
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv16963

    Modified Files:
    js_uifc.c
    Log Message:
    Document the optional mode parameter to uifc.init();




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From deuce@VERT to CVS commit on Tuesday, January 12, 2016 16:54:17
    src/sbbs3 js_uifc.c 1.38 1.39
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv18022

    Modified Files:
    js_uifc.c
    Log Message:
    Actually, it's a string, not a number... just legal values.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Friday, November 17, 2017 02:03:07
    src/sbbs3 js_uifc.c 1.39 1.40
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv9539

    Modified Files:
    js_uifc.c
    Log Message:
    Fix uifc.list() broken badly back in rev 1.36 of this file.
    If the old syntax was used (with a list of integers), it would cause a segfault after
    displaying a corrupted/small dialog due to lots of problems parsing the argument list.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Wednesday, April 01, 2020 00:41:41
    src/sbbs3 js_uifc.c 1.44 1.45
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv17308

    Modified Files:
    js_uifc.c
    Log Message:
    Remove OVERLAY mode support.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to sbbs/master on Sunday, September 13, 2020 12:37:14
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/fdf57f2a14f6173f86d1ed94
    Modified Files:
    src/sbbs3/js_uifc.c
    Log Message:
    Fix error return value of list method
    bool (JSVAL_FALSE), not number (JS_FALSE).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Michael Long@VERT to Git commit to main/sbbs/master on Saturday, November 28, 2020 13:09:03
    https://gitlab.synchro.net/main/sbbs/-/commit/4f9c26f6236a03e1ce8a9433
    Modified Files:
    src/sbbs3/js_uifc.c
    Log Message:
    misspellings in jsdocs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Saturday, November 28, 2020 13:09:03
    https://gitlab.synchro.net/main/sbbs/-/commit/b6a2b71067c53da9c46c2e6e
    Modified Files:
    src/sbbs3/js_uifc.c
    Log Message:
    Merge branch 'patch-1' into 'master'

    misspellings in jsdocs

    See merge request main/sbbs!40

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuce@VERT to Git commit to main/sbbs/master on Friday, January 29, 2021 00:02:18
    https://gitlab.synchro.net/main/sbbs/-/commit/4f087081761db61dc49813d4
    Modified Files:
    src/sbbs3/js_uifc.c
    Log Message:
    Add some more uifc functions to the uifc object.

    scrn, showbuf, timedisplay, bottomline, getstrxy

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¨@VERT to Git commit to main/sbbs/master on Friday, January 29, 2021 00:07:13
    https://gitlab.synchro.net/main/sbbs/-/commit/8482a03bc495d124bbf4d933
    Modified Files:
    src/sbbs3/js_uifc.c
    Log Message:
    Remove training whitespaces.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¨@VERT to Git commit to main/sbbs/master on Friday, January 29, 2021 00:22:33
    https://gitlab.synchro.net/main/sbbs/-/commit/e79fd123610d02572b2f7bc3
    Modified Files:
    src/sbbs3/js_uifc.c
    Log Message:
    Showbuf context has more now!

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Friday, January 29, 2021 21:56:03
    https://gitlab.synchro.net/main/sbbs/-/commit/8404da742cd011e181660b85
    Modified Files:
    src/sbbs3/js_uifc.c
    Log Message:
    uifc.list() returns a number, not a string

    Stop lying. Programming is hard enough already.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¨@VERT to Git commit to main/sbbs/master on Wednesday, March 31, 2021 13:50:08
    https://gitlab.synchro.net/main/sbbs/-/commit/84111584a0086e0e1317d1a0
    Modified Files:
    src/sbbs3/js_uifc.c
    Log Message:
    Fix showbuf context issues.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¨@VERT to Git commit to main/sbbs/master on Wednesday, March 31, 2021 14:01:52
    https://gitlab.synchro.net/main/sbbs/-/commit/f203d5dfc860109a43ade151
    Modified Files:
    src/sbbs3/js_uifc.c
    Log Message:
    Set a better default window for uifc.showbuf()

    Rather than defaulting to zero lines high and the width of the title,
    default to the entire screen area.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¨@VERT to Git commit to main/sbbs/master on Wednesday, March 31, 2021 21:19:49
    https://gitlab.synchro.net/main/sbbs/-/commit/205b3571d01e520112f32ae6
    Modified Files:
    src/sbbs3/js_uifc.c
    Log Message:
    Make context defaults for with and height same as no-context ones.

    ARE YOU HAPPY NOW CYAN?!?!

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sunday, April 04, 2021 15:13:57
    https://gitlab.synchro.net/main/sbbs/-/commit/a03d1d3786da4f42444c635a
    Modified Files:
    src/sbbs3/js_uifc.c
    Log Message:
    Remove logically dead code

    PROP_CHANGES already handled in if() condition
    CID 33176

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Monday, February 20, 2023 14:16:00
    https://gitlab.synchro.net/main/sbbs/-/commit/2a2c6ed4ffdb1d31c5fbd8a2
    Modified Files:
    src/sbbs3/js_uifc.c
    Log Message:
    Fix insufficient 'mode' string length in init() method

    Limited to 6 chars, yet some values are as long as 12 chars.

    Also, eliminates this warning from RELEASE builds (only) using gcc version 12.2.0 (Debian 12.2.0-14):
    js_uifc.c: In function `js_uifc_init':
    sbbs.h:230:56: warning: writing 8 bytes into a region of size 7 [-Wstringop-overflow=]
    230 | (ret)[JSSTSpos]=(char)JSSTSstrval[JSSTSpos]; \
    | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    sbbs.h:242:9: note: in expansion of macro `JSSTRING_TO_ASTRING'
    242 | JSSTRING_TO_ASTRING((cx), JSVTSstr, (ret), (maxsize), (lenptr)); \
    | ^~~~~~~~~~~~~~~~~~~
    js_uifc.c:609:17: note: in expansion of macro `JSVALUE_TO_ASTRING'
    609 | JSVALUE_TO_ASTRING(cx, argv[1], mode, 7, NULL);
    | ^~~~~~~~~~~~~~~~~~
    In file included from sbbs.h:255: /home/rswindell/sbbs/src/sbbs3/../xpdev/genwrap.h:77:20: note: destination object of size 7 allocated by `__builtin_alloca'
    77 | #define alloca(sz) __builtin_alloca(sz)
    | ^~~~~~~~~~~~~~~~~~~~
    sbbs.h:228:43: note: in expansion of macro `alloca'
    228 | if(((ret)=(char *)alloca((*JSSTSlenptr)+1))) { \
    | ^~~~~~
    sbbs.h:242:9: note: in expansion of macro `JSSTRING_TO_ASTRING'
    242 | JSSTRING_TO_ASTRING((cx), JSVTSstr, (ret), (maxsize), (lenptr)); \
    | ^~~~~~~~~~~~~~~~~~~
    js_uifc.c:609:17: note: in expansion of macro `JSVALUE_TO_ASTRING'
    609 | JSVALUE_TO_ASTRING(cx, argv[1], mode, 7, NULL);
    | ^~~~~~~~~~~~~~~~~~

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Tuesday, March 05, 2024 15:37:58
    https://gitlab.synchro.net/main/sbbs/-/commit/0121fc5ff50c2e53e35a46e0
    Modified Files:
    src/sbbs3/js_uifc.c
    Log Message:
    Make uifc.input.CTX and uifc.showbuf.CTX constructors match assumptions/docs

    This one has caught me up before, for the CTX constructors didn't actually accept any initial property values (as arguments).

    mlong even documented it this way at https://wiki.synchro.net/ref:uifc#javascript_interface

    And construted his input.CTXs this way (using all 0 values, which were
    ignored) in his xtrnmenucfg.js

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