Fix Windows and 32-bit support #146
Merged
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Change summary:
Move FFI functions to a separate class.Reverted with commit f3086e4.g_*
functions are called vialibglib-2.0-0.dll
orlibgobject-2.0-0.dll
on Windows.PHP_INT_SIZE
to determineGType
.GValue::toEnum
.cast
on the static\FFI
class.Config::error()
in favor ofthrow new Exception()
, move error buffer logic toVips\Exception
.GsfOutputCsvQuotingMode
class.Config::printAll
, already exists asVipsObject::printAll
.Config::filenameGetFilename
andConfig::filenameGetOptions
to Utils class.This was successfully tested on my Windows PC using the 64-bit libvips binaries. I also fixed 32-bit support, but for some reason this results in OOM errors (I was able to get the test suite to pass when I disabled the
NewTest
andWriteTest
, fwiw).(This PR got a bit bigger than I initially thought, I could split the changes if necessary)
Resolves: #144.