lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

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.


Best regards,
Heinrich Hartmann

Dr. Heinrich Hartmann
Stefan-George Ring 41
81929 München

Mobile: +49 1525 363 8134
Landline: +49 89 95928493