Jump to content

Angus Robertson

Members
  • Content Count

    2070
  • Joined

  • Last visited

  • Days Won

    38

Posts posted by Angus Robertson


  1. gcvt is a Linux and Windows function to convert a floating point double to a string, it should exist, but could be replaced by Delphi Format.

     

    I'll look at OverbyteIcsStreams again, but we can not used 64-bit longint, unless Classes is now also using longint instead of Int64. 

     

    Not sure how much further this conversion is going, it seems LongWord is also 64-bit in MacOS64 and there are a lot of those in the OpenSSL units. 

     

    Angus

     


  2. What would be useful is a relatively concise list of RTL changes between releases, perhaps it exists?  Something that says AtomicIncrement and Pos(x,y) appeared in which releases, just two examples I've looked up in old compilers recently for ICS.  And when types appeared or disappeared. 

     

    I've been meaning to support native Json in ICS as well as SuperObject, but I think there are two generations in different compilers and needing to check which and when means I've done nothing instead.

     

    Angus


  3. SVN has been updated with lots of units with changes to make them happier with DCCOSX64, can not test here so more changes may be needed.  The zip is updated at 11pm each night. Also built this version with Delphi 7, one unit was missing from SVN but only warnings, not errors. 

     

    SuperObject is simplified with redundant code removed, and now supports Delphi TDateTime. 

     

    Angus

     


  4. I've just removed all that old date/time handling code from Superobject, JavaToDelphiDateTime and vice versa, since recent use of Json always stores dates as ISO strings, not unix seconds.  Having hacked it so heavily, I've now adding proper TDateTime support to avoid needing those conversions in all applications.   Ready tomorrow.   It also used InterlockedIncrement just to make life interesting, but different implementation to the other units.

     

    Angus

     


  5. I suggest you update to ICS 8.64 and use the OverbyteIcsMailQuTst.dpr sample instead, it handles all the SSL/TLS stuff for you. 

     

    Beware some gmail accounts don't allow use with local credentials and require an OAuth2 login first, you'll only discover that after SSL connects.  There will be a new TIcsRestEmail component in a week or two that handles this modern stuff. 

     

    Angus

     


  6. For SuperObject, try changing the UNIX defines to POSIX the the Windows stuff should go away, probably there for FPC.  And change PtrInt from Longint to Integer which should make the memory error go away. 

     

    Still thinking about dates, and wondering why SO thinks dates are numeric when they are mostly ISO 8601/RFC3339 now, and ICS handles those. 

     

    Angus

     

×