Skip to content
Snippets Groups Projects
  1. Jan 14, 2025
  2. Jun 21, 2024
    • Rob Swindell's avatar
      Use the new uifc_t.restore() method when decrementing the save_num · 16525f87
      Rob Swindell authored
      This is the proper way to manually-restore the most recently saved
      window (via the WIN_SAV mode flag to the list() method).
      
      I wanted something that was backward comaptible with earlier builds
      of SBBS, so just doing a magic thing when decrementing the save_num
      rather than adding a new method seemed the seamless way to do it.
      16525f87
  3. Jun 19, 2024
    • Rob Swindell's avatar
      Use new uifc.list mode flag WIN_BLANKOPTS · 91059084
      Rob Swindell authored
      uifc option lists are always NULL-terminated string lists (not static
      arrays of char arrays, as is often used in other UIFC utils), so grow
      the ability to have blank options (list items).
      
      This was needed for fileman.js to accurately edit extended file
      descriptions that contain blank lines.
      91059084
  4. Mar 05, 2024
  5. Feb 27, 2024
  6. Dec 31, 2023
  7. Nov 07, 2023
    • Rob Swindell's avatar
      JSDOC build cleanup (used to generate jsobjs.html) · 96019606
      Rob Swindell authored
      Replaced _property_ver_list (array of numbers) with _property_ver_list (array
      of objects) with a "ver" and (optional) "desc" property. This solves the
      enumeration order problem with objects that have both manual and table-based
      properties. Object's property tables (arrays of jsSyncPropertySpec) can now
      (optionally) contain the property descriptions. For properties defined in this
      manner, there will never be another mismatch between ther name/type and
      description/version in the jsobjs.html (a problem has re-occurred several
      times through the years with nebulous work-arounds).
      
      We still use _property_desc_list arrays for additional (e.g. manually defined)
      properties in such objects or just objects that only use one method of
      property definition and are not subject to the enumeration order problem.
      
      Fixed numerous typos.
      
      Using more consistent terminology and HTML mark-up.
      
      Some beautification and enhancement of readability, but nothing too major.
      96019606
  8. Oct 30, 2023
  9. Oct 29, 2023
  10. Mar 14, 2023
  11. Feb 20, 2023
    • Rob Swindell's avatar
      Fix insufficient 'mode' string length in init() method · 440bc585
      Rob Swindell authored
      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);
            |                 ^~~~~~~~~~~~~~~~~~
      440bc585
  12. Apr 04, 2021
  13. Apr 01, 2021
  14. Mar 31, 2021
  15. Feb 16, 2021
  16. Feb 15, 2021
  17. Jan 30, 2021
  18. Jan 29, 2021
  19. Nov 28, 2020
  20. Oct 15, 2020
  21. Sep 13, 2020
  22. Aug 16, 2020
  23. Apr 12, 2020
  24. Apr 01, 2020
  25. Feb 20, 2018
Loading