• src/xpdev/ini_file.c ini_file.h

    From rswindell to CVS commit on Friday, April 03, 2020 09:11:05
    src/xpdev ini_file.c 1.171 1.172 ini_file.h 1.58 1.59
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv29431

    Modified Files:
    ini_file.c ini_file.h
    Log Message:
    Get rid of the DLLCALL noise (not needed).
    White-space fix-ups in header file.

  • From rswindell to CVS commit on Friday, April 03, 2020 11:41:45
    src/xpdev ini_file.c 1.172 1.173 ini_file.h 1.59 1.60
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv6584

    Modified Files:
    ini_file.c ini_file.h
    Log Message:
    Implement iniHasInclude() to indicate if an ini file that was previously read with iniReadFile() has one or more !include directives.
    !include directives must be followed by a space now so we don't false-match !includenotrightnowthankyouverymuch

  • From Rob Swindell to Git commit to main/sbbs/master on Tuesday, May 04, 2021 01:12:22
    https://gitlab.synchro.net/main/sbbs/-/commit/0d9111a526e0d42becd28186
    Modified Files:
    src/xpdev/ini_file.c ini_file.h
    Log Message:
    Add iniSortSections() which can sort a read ini list and optionally keys

    This also exposed problems with the find_section() utility function: when the "found" section was actually empty and the next immediate line in the ini file was the beginning of a new section, the "keys" indexed would actually be the next section. Now fixed.
  • From Rob Swindell to Git commit to main/sbbs/master on Monday, February 28, 2022 10:19:34
    https://gitlab.synchro.net/main/sbbs/-/commit/2c7c37b0b2703282d53e2b50
    Modified Files:
    src/xpdev/ini_file.c ini_file.h
    Log Message:
    iniSortSections() supports an optional section prefix

    Needed for echocfg option to sort linked nodes upon reading/writing sbbsecho.ini, for Ray Quinn (1:214/23).
  • From Rob Swindell to Git commit to main/sbbs/master on Sunday, May 15, 2022 23:49:56
    https://gitlab.synchro.net/main/sbbs/-/commit/ce285b1f404fd93ab52d0735
    Modified Files:
    src/xpdev/ini_file.c ini_file.h
    Log Message:
    Replace deprecated inet_ntoa and inet_addr function calls

    Use inet_ntop and inet_pton instead.

    Use 32-bit arguments and return values for IPv4 addressess for all target platforms (ulong is 64-bit on LP64, e.g. Linux-x64, targets).
  • From Rob Swindell to Git commit to main/sbbs/master on Thursday, December 29, 2022 14:16:20
    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.
  • From Rob Swindell to Git commit to main/sbbs/master on Friday, December 30, 2022 02:22:55
    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.
  • From Rob Swindell (on Debian Linux) to Git commit to main/sbbs/master on Wednesday, February 15, 2023 23:38:59
    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.
  • From Deuc╨╡ to Git commit to main/sbbs/master on Tuesday, February 20, 2024 05:22:23
    https://gitlab.synchro.net/main/sbbs/-/commit/81457b26b9ce0283d346b7d8
    Modified Files:
    src/xpdev/ini_file.c ini_file.h
    Log Message:
    Add iniGetSString() that takes the size of the buffer
  • From Deuc╨╡ to Git commit to main/sbbs/master on Tuesday, February 20, 2024 05:22:23
    https://gitlab.synchro.net/main/sbbs/-/commit/c69a4f981eec3c009772fb59
    Modified Files:
    src/xpdev/ini_file.c ini_file.h
    Log Message:
    Add iniReadSString() as well.