[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: LPEG on Solaris
- From: Heinrich Hartmann <heinrich@...>
- Date: Wed, 1 Jun 2016 14:57:07 +0200
Dear Lua list,
here is a PR for lpeg that fixes some issues we have had with deploying the it on Solaris / OmniOS.
Please consider merging this upstream.
On operating systems like Solaris and Illumos where the stack grows down, lightuserdata and user data cannot be assigned from the stack. This commit patch fixes this behaviour by moving the allocations to the heap (using calloc).
We also ran into symbol collisions (
compile) when linking the library with our codebase. This is also addressed in a separate commit.
Dr. Heinrich Hartmann
Stefan-George Ring 41
Mobile: +49 1525 363 8134
Landline: +49 89 95928493