[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: llex.c: make MAXSRC configurable
- From: Shmuel Zeigerman <shmuz@...>
- Date: Wed, 24 Dec 2008 13:19:16 +0200
My program (a Lua-based plug-in to another program) compiles and runs
Lua scripts. If there's an error in one of the scripts (either
compilation or run-time error), the program parses the error message and
prompts the user to jump to the error origin (file:line:).
If a file path is too long, it gets processed by Lua to fit into the
predefined buffer size (either LUA_IDSIZE or MAXSRC), making impossible
to extract its exact value from the error message.
While LUA_IDSIZE value can be configured via luaconf.h, MAXSRC can not,
therefore one has to modify llex.c. Could it be changed in Lua 5.2 (or
in Lua 5.1.5)?
--
Shmuel