• src/xpdev/ini_file.c ini_file.h

    From Rob Swindell@VERT to Git commit to main/sbbs/master on Thu Dec 29 14:16:20 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/165a81a4606d61cc028f2c86
    Modified Files:
    src/xpdev/ini_file.c ini_file.h
    Log Message:
    Add iniGetIntInRange() for range-enforced integer values

    If you're going to use a read key value as say, an index into fixed-length array, then you better be sure it's within an expected range.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Fri Dec 30 02:22:55 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/e4f27335d5233eb80c932622
    Modified Files:
    src/xpdev/ini_file.c ini_file.h
    Log Message:
    Add functions for reading/getting/settings 64-bit ints/uints

    No immediate use, but I thought I had one. I didn't. Still, will probably need these one day.

    ---
    þ 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 Wed Feb 15 23:38:59 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/096fcddb227c690e274d6db9
    Modified Files:
    src/xpdev/ini_file.c ini_file.h
    Log Message:
    Add iniGetClampedInt() to return an int key val clamped to a min/max range

    Very similar to iniGetIntInRange(), but the default value is only returned
    if the key or value is missing.

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