• src/xpdev/ini_file.c ini_file.h

    From deuce@VERT to CVS commit on Saturday, October 05, 2013 13:25:09
    src/xpdev ini_file.c 1.128 1.129 ini_file.h 1.45 1.46
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv7198

    Modified Files:
    ini_file.c ini_file.h
    Log Message:
    Add Read/Set/GetIp6() functions.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From deuce@VERT to CVS commit on Saturday, October 05, 2013 13:32:10
    src/xpdev ini_file.c 1.129 1.130 ini_file.h 1.46 1.47
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv7265

    Modified Files:
    ini_file.c ini_file.h
    Log Message:
    Fix bugs in last commit.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Monday, January 18, 2016 02:01:10
    src/xpdev ini_file.c 1.143 1.144 ini_file.h 1.48 1.49
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv27207

    Modified Files:
    ini_file.c ini_file.h
    Log Message:
    Create iniRead/Get/SetDuration() for working with durations or possibly intervals (in seconds or fractions of a second) with values in .ini files.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Tuesday, January 19, 2016 00:10:30
    src/xpdev ini_file.c 1.144 1.145 ini_file.h 1.49 1.50
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv30601

    Modified Files:
    ini_file.c ini_file.h
    Log Message:
    New functions for dealing with named_ulong's:
    iniReadNamedLongInt()
    iniGetNamedLongInt()
    iniSetNamedLongInt()
    iniSetNamedHexInt()


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Lord Time@VERT/TIME to rswindell on Tuesday, January 19, 2016 11:05:21
    Subject: src/xpdev/ini_file.c ini_file.h
    @MSGID: <569DEF76.32771.syncprog@vert.synchro.net>
    @TZ: 41e0
    src/xpdev ini_file.c 1.144 1.145 ini_file.h 1.49 1.50
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv30601

    Modified Files:
    ini_file.c ini_file.h
    Log Message:
    New functions for dealing with named_ulong's:
    iniReadNamedLongInt()
    iniGetNamedLongInt()
    iniSetNamedLongInt()
    iniSetNamedHexInt()

    question : would this be for echocfg.exe or sbbsecho.exe in the sbbs_dev.zip file (being this would be easy to put in without taking down all of sbbsctrl), or is it another file in the sbbs_dev.zip?


    ---

    Rob Starr
    Lord Time SysOp of
    Time Warp of the Future BBS
    Telnet://Time.Darktech.Org:24 or
    Telnet://Time.Synchro.Net:24 (qwk or ftn & e-mail)
    ICQ # 11868133 or # 70398519 Jabber : lordtime2000@gmail.com
    Yahoo : lordtime2000 AIM : LordTime20000 MSN : Lord Time
    Astra : lord_time X-Box : Lord Time 2000 oovoo : lordtime2000
    ---
    þ Synchronet þ Time Warp of the Future BBS - Home of League 10 IBBS Games
  • From Digital Man@VERT to Lord Time on Tuesday, January 19, 2016 15:24:42
    Re: Re: src/xpdev/ini_file.c ini_file.h
    By: Lord Time to rswindell on Tue Jan 19 2016 11:05 am

    Subject: src/xpdev/ini_file.c ini_file.h
    @MSGID: <569DEF76.32771.syncprog@vert.synchro.net>
    @TZ: 41e0
    src/xpdev ini_file.c 1.144 1.145 ini_file.h 1.49 1.50
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv30601

    Modified Files:
    ini_file.c ini_file.h
    Log Message:
    New functions for dealing with named_ulong's:
    iniReadNamedLongInt()
    iniGetNamedLongInt()
    iniSetNamedLongInt()
    iniSetNamedHexInt()

    question : would this be for echocfg.exe or sbbsecho.exe in the sbbs_dev.zip file (being this would be easy to put in without taking down all of sbbsctrl), or is it another file in the sbbs_dev.zip?

    These are functions add to the xpdev library. They're not used by any other code in CVS currently, so nothing for you to do.

    digital man

    Synchronet "Real Fact" #2:
    Synchronet version 2 was written in C and 8086 assembly programming languages. Norco, CA WX: 60.7øF, 77.0% humidity, 11 mph ESE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Lord Time@VERT/TIME to Digital Man on Tuesday, January 19, 2016 15:57:59
    Re: Re: src/xpdev/ini_file.c ini_file.h
    By: Lord Time to rswindell on Tue Jan 19 2016 11:05 am

    Subject: src/xpdev/ini_file.c ini_file.h
    @MSGID: <569DEF76.32771.syncprog@vert.synchro.net>
    @TZ: 41e0
    src/xpdev ini_file.c 1.144 1.145 ini_file.h 1.49 1.50
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv30601

    Modified Files:
    ini_file.c ini_file.h
    Log Message:
    New functions for dealing with named_ulong's:
    iniReadNamedLongInt()
    iniGetNamedLongInt()
    iniSetNamedLongInt()
    iniSetNamedHexInt()

    question : would this be for echocfg.exe or sbbsecho.exe in the sbbs_dev.zip file (being this would be easy to put in without taking down all of sbbsctrl), or is it another file in the sbbs_dev.zip?

    These are functions add to the xpdev library. They're not used by any other code in CVS currently, so nothing for you to do.

    thank you :)


    ---

    Rob Starr
    Lord Time SysOp of
    Time Warp of the Future BBS
    Telnet://Time.Darktech.Org:24 or
    Telnet://Time.Synchro.Net:24 (qwk or ftn & e-mail)
    ICQ # 11868133 or # 70398519 Jabber : lordtime2000@gmail.com
    Yahoo : lordtime2000 AIM : LordTime20000 MSN : Lord Time
    Astra : lord_time X-Box : Lord Time 2000 oovoo : lordtime2000
    ---
    þ Synchronet þ Time Warp of the Future BBS - Home of League 10 IBBS Games
  • From rswindell@VERT to CVS commit on Tuesday, January 26, 2016 22:16:29
    src/xpdev ini_file.c 1.146 1.147 ini_file.h 1.50 1.51
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv10697

    Modified Files:
    ini_file.c ini_file.h
    Log Message:
    Created iniRemoveSections() to remove all sections in an .ini file with a common prefix.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Friday, August 25, 2017 18:37:45
    src/xpdev ini_file.c 1.148 1.149 ini_file.h 1.51 1.52
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/home/rswindell/sbbs/src/xpdev

    Modified Files:
    ini_file.c ini_file.h
    Log Message:
    iniSetString will now:
    - Use the string literal separator (colon) instead of equals if the string
    value begins or ends in space or contains control characters.

    iniGetString, etc. will preserve leading or trailing space characters in
    a string specified with a colon key:value separator and enclosed in double-quotes.
    iniGetString, etc. will decode C-escaped string values specified with a
    string literal (colon) key:value separator.

    New function: iniSetStringLiteral() used to specify that the value shall
    be stored in the .ini file using the colon key:value separator, enclosed
    in double-quotes, and any special charactors (e.g. quotes, backslashes, etc.) or control characters must be C-style escaped.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Wednesday, January 31, 2018 15:42:30
    src/xpdev ini_file.c 1.153 1.154 ini_file.h 1.52 1.53
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv23281

    Modified Files:
    ini_file.c ini_file.h
    Log Message:
    Added iniGet/Read[Existing]Value() functions which return unparse/converted values (string literals not supported/parsed).
    iniPopKey() no longer supportes string literals. Use the new iniPopString() if you need to pop parsed string-literals from a string list.
    All the non-String get/read function no longer bother with parsing string literals.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thursday, March 15, 2018 22:24:04
    src/xpdev ini_file.c 1.159 1.160 ini_file.h 1.53 1.54
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv16320

    Modified Files:
    ini_file.c ini_file.h
    Log Message:
    Added iniSetValue() which, like iniGetValue(), does not support string
    literals (e.g. won't detect and escape them automatically). If you set
    a key value with carriage-returns and line-feeds, those will end up in the
    .ini file as-is, so use with caution.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Friday, March 30, 2018 01:35:15
    src/xpdev ini_file.c 1.160 1.161 ini_file.h 1.54 1.55
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv2189

    Modified Files:
    ini_file.c ini_file.h
    Log Message:
    Added functions for reading/parsing/writing lists of integers in .ini files (e.g. "Zones=1,2,3,4,5,6").


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Wednesday, July 25, 2018 22:36:47
    src/xpdev ini_file.c 1.163 1.164 ini_file.h 1.55 1.56
    Update of /cvsroot/sbbs/src/xpdev
    In directory cvs:/tmp/cvs-serv4364

    Modified Files:
    ini_file.c ini_file.h
    Log Message:
    iniGetSection() no longer includes blank lines (if there are any in the section) in the returned stringlist.
    Created iniAppendSectionWithKeys(): similar to iniAppendSection, but a list
    of list of "key=[value]" strings (like those returned from iniGetSection())
    can be added at the same time.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT 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.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT 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


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT 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.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT 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).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT 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).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT 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.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT 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.

    ---
    þ 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 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.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¨@VERT 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

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¨@VERT 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.

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