[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] 0aa655: Replace fsync by FlushFileBuffers for MSVC

GitHub noreply at github.com
Sun Jul 24 17:13:15 UTC 2016


  Branch: refs/heads/Cog
  Home:   https://github.com/OpenSmalltalk/opensmalltalk-vm
  Commit: 0aa65563f90b6f8f83a8126e37647bca4fda2ba5
      https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/0aa65563f90b6f8f83a8126e37647bca4fda2ba5
  Author: nicolas-cellier-aka-nice <nicolas.cellier.aka.nice at gmail.com>
  Date:   2016-07-24 (Sun, 24 Jul 2016)

  Changed paths:
    M platforms/Cross/plugins/FilePlugin/sqFilePluginBasicPrims.c

  Log Message:
  -----------
  Replace fsync by FlushFileBuffers for MSVC

See
http://stackoverflow.com/questions/33133222/alternative-to-fsync-for-windows-c
https://msdn.microsoft.com/en-us/library/windows/desktop/aa364439%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396


  Commit: 8f96b9f58fbb8cc23d319c2f6662605e4eaa4d6d
      https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/8f96b9f58fbb8cc23d319c2f6662605e4eaa4d6d
  Author: nicolas-cellier-aka-nice <nicolas.cellier.aka.nice at gmail.com>
  Date:   2016-07-24 (Sun, 24 Jul 2016)

  Changed paths:
    M platforms/win32/plugins/SoundPlugin/sqWin32Sound.c

  Log Message:
  -----------
  Can't increment a void * pointer

Pointer arithmetic on void * is not possible because we don't know the size of element.
MSVC complains about it.
The cast to char * must be placed before.


Compare: https://github.com/OpenSmalltalk/opensmalltalk-vm/compare/423aeac78fc1...8f96b9f58fbb


More information about the Vm-dev mailing list