lua-users home
lua-l archive

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


Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:

There are (only) three identifiers which prevent merging all the lua
sources into one big one and compiling it without errors:

    check       defined in ldebug, conflicts with lparser
    read_number a static function in llex, conflicts with liolib
    next        defined in llex, conflicts with next in several places

If you change these three declarations to lcheck, lread_number, and
lnext, then the sources of Lua can be combined.  FWIW, I use a Tcl script
to merge C sources + headers, see http://www.equi4.com/lux/onesrc.tcl

Such a merged source file represents a complete Lua system, including std
libraries.  It's no rocket science, but it can simplify deployment.

-jcw