Re: Progress of integration with "new" via caompat-5.1

Adrián Pérez <[email protected]> Thu, 09 Dec 2004 03:21:35 +0100
Newsgroups gmane.comp.lang.lua.luacheia
Message-ID <[email protected]>
--Apple-Mail-1--302356145
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=WINDOWS-1252; format=flowed


El 08/12/2004, a las 22:49, Adri=E1n P=E9rez escribi=F3:

> I has been working a bit this afternoon, here's a little summary of=20
> what I've done:
> [...]
>
> I will be working some more time after having dinner, maybe tomorrow=20=

> we'll have initial support for "new" modules. Just pray and wait ;-)

I reply myself to announce that LuaCheia now has support for "new"=20
modules, thanks to compat-5.1. I have commited changes to CVS some=20
minutes ago after finishing the basic adaptation work and some more=20
testing. Current status:

   - Using lua-5.0.2 + compat-5.1

   - "old" modules can still be loaded with "cheia.load" as before,=20
"new" modules are loaded using "require".

   - No changes were needed to "luacheia_wrapper.c". I changed=20
"luacheia.lua.src" instead so it adds the LuaCheia paths to the=20
variables used by the new "require()" implementation shipped with=20
compat=965.1

   - Migrated the "cgi" module to the new packaging system (hint: use=20
'require("cgi")' instead of 'cheia.load("cgi")' to have it working).

   - Changes Makefiles, so their INCLUDES variable has=20
"-I../../../lua-5.0-proxy" instead of "-I@LUA_SRCDIR@/include". This is=20=

needed because a modified version of "lauxlib.h" is created under the=20
"lua-5.0-proxy" directory (the other Lua headers are copied there,=20
too).


What has to be done:

   - Migrate modules to the new packaging system (I can take care of=20
"shelve", "gd" and "readline" in the following weeks). Volunteers=20
anywhere?

   - Drop support for "cheia.load" as soon as the modules are migrated.


Enjoy!

-ap

--Apple-Mail-1--302356145
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: Mensaje firmado digitalmente
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAkG3trIACgkQghBwwjayrGSmoACfR10eBq5Hu1IJtzLcwo8In+ow
sMwAn1qo7P5JSVF5//o8Z72sckeHBXp/
=XYrf
-----END PGP SIGNATURE-----

--Apple-Mail-1--302356145--



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/