• src/xpdev/ini_file.c ini_file.h

    From deuce@VERT to CVS commit on Sat Oct 5 13:25:09 2013
    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
  • From deuce@VERT to CVS commit on Sat Oct 5 13:32:10 2013
    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
  • From rswindell@VERT to CVS commit on Mon Jan 18 02:01:10 2016
    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 Tue Jan 19 00:10:30 2016
    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 to rswindell on Tue Jan 19 11:05:21 2016
    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 Tue Jan 19 15:24:42 2016
    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 to Digital Man on Tue Jan 19 15:57:59 2016
    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 Tue Jan 26 22:16:29 2016
    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 Fri Aug 25 18:37:45 2017
    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 Wed Jan 31 15:42:30 2018
    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 Thu Mar 15 22:24:04 2018
    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 Fri Mar 30 01:35:15 2018
    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 Wed Jul 25 22:36:47 2018
    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 Fri Apr 3 09:11:05 2020
    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 Fri Apr 3 11:41:45 2020
    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 Tue May 4 01:12:22 2021
    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 Mon Feb 28 10:19:34 2022
    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 Sun May 15 23:49:56 2022
    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 (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
  • From Deucе@VERT to Git commit to main/sbbs/master on Tue Feb 20 05:22:23 2024
    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 Tue Feb 20 05:22:23 2024
    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
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Wed Nov 20 20:50:41 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/7046272ee449ddfa4d9be008
    Modified Files:
    src/xpdev/ini_file.c ini_file.h
    Log Message:
    Add iniGet/ReadSectionListWithDupes()

    For use cases were we don't want to silenty ignore duplicate (secondary) section definitions.
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on ChromeOS)@VERT to Git commit to main/sbbs/master on Sat Jan 25 18:44:12 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/5020716c5afd9b42ab6f9d0f
    Modified Files:
    src/xpdev/ini_file.c ini_file.h
    Log Message:
    Add iniAppendSectionWithNamedStrings()

    If you have list of named strings (named_string_t) and want to add them as
    a section of key/value pairs to a [section] in .ini formatted string list, this is the function you want to use. I'm not sure if this is exactly what Deuce had in mind (for use in SyncTERM), but it wasn't a lot of code to write and might be useful to someone someday.
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net