Skip to content
Snippets Groups Projects
  1. Jul 27, 2018
  2. Jul 26, 2018
    • rswindell's avatar
      putnodedat() - don't try to lock the node.dab file again (should be locked · a5567dfa
      rswindell authored
      already with a call to getnodedat()).
      When using the MSVC2017 CRTL, a lock() of a region that was previously
      locked is a blocking call causing major slowness in the MSVC2017 build.
      This just reverses the 1-line commit from 16 years ago in rev 1.10 of this file.
      a5567dfa
    • rswindell's avatar
      getnodedat() - don't try to unlock the node.dab file unless the read() fails. · f72cc1b8
      rswindell authored
      When using the MSVC2017 CRTL, an unlock() of a region that was not previously
      locked is a blocking call causing major slowness in the MSVC2017 build.
      f72cc1b8
    • rswindell's avatar
      getuserdat() - if this function fails to open the user.dat file (e.g. it does · 425d42b3
      rswindell authored
      not exist), set the user->number to 0 before returning as many callers of this
      function do not check the return value, just the value of user->number after
      it returns (ugh). This problem was discovered when running a fresh install,
      typing "1" at the Login prompt and immediately getting a "Time's Up" message
      and a disconnect - only happens when there's no data/user.dat file.
      
      getnodedat() - don't try to unlock the node.dab file unless the read() fails.
      When using the MSVC2017 CRTL, an unlock() of a region that was not previously
      locked is a blocking call causing major slowness in the MSVC2017 build.
      
      putmsgptrs() - cleans up obsolete sections in the data/user/*.subs files now.
      So if you go from say 10,000 sub-boards to 2,000, it won't have to load and
      search through the extra 8,000 invalid subs (once the file is re-written upon
      log-off). This requires an updated xpdev build (for iniAppendSectionWithKeys)
      
      fixmsgptrs() - if the msgbase index can't be opened or the last index record
      cannot be read (e.g. there isn't one), insure the msg-scan pointer value is
      set to 0 (not ~0).
      425d42b3
    • rswindell's avatar
      iniGetSection() no longer includes blank lines (if there are any in the · 742b133a
      rswindell authored
      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.
      742b133a
  3. Jul 25, 2018
  4. Jul 24, 2018
  5. Jul 23, 2018
  6. Jul 20, 2018
  7. Jul 19, 2018
Loading