From: Rici Lake <lua@ricilake.net>
Reply-To: Lua list <lua@bazar2.conectiva.com.br>
To: Lua list <lua@bazar2.conectiva.com.br>
Subject: Re: How to add users libraries
Date: Thu, 1 Dec 2005 16:44:30 -0500
On 1-Dec-05, at 1:24 PM, Keith Wiles wrote:
I guess what I am asking for is for Lua to provide these hooks in the
standard package and any other areas within Lua a developer may want to
effect change (to a given point of course). I guess I could be making a
big thing over nothing, but it does seem reasonable to me as it would be
fairly simple to polish these areas for a cleaner package.
Well, I guess in that case, Luiz's answer was pretty good. linit.c *is* the
hook, and it's a pretty good one. All you have to do is create one with the
appropriate list in the definition of lualibs; something which could easily
be done with a script if you were that way inclined. Since you might not
want all of the standard libraries in a given embedded build --
particularly such things as io, os, debug, and loadlib --, customization is
likely to be more than just adding to the list, anyway.