Commit Graph
14 Commits
Author SHA1 Message Date
John Bauer 2427d793dd Fix the windows build of lundump.c. 2007-04-23 02:50:04 +00:00
Steve Checkoway ad4cf84255 Maybe fix compile on windows. (Part III) 2007-04-21 23:20:36 +00:00
Steve Checkoway 4270b68356 Maybe fix compile on windows. (Part II) 2007-04-21 21:20:39 +00:00
Steve Checkoway 5222d704f8 Maybe fix compile on windows. (How is it that it's 2007 and VC still doesn't support c99?) 2007-04-21 20:59:26 +00:00
Steve Checkoway e29505ba7a Fix warning. 2007-04-21 20:58:22 +00:00
Steve Checkoway 1e99c68e8b Make the compiled bytecode more portable by requiring that the generic int sizes be 32 bits. In addition, swap 32 bit ints and 64 bit doubles as needed. 2007-04-21 20:08:12 +00:00
Steve Checkoway 2468ded99d Use real 32 bit integers. 2007-04-19 10:06:53 +00:00
Glenn Maynard eb65a1bec2 increase LUA_IDSIZE 2006-12-20 00:18:36 +00:00
Vecais Dumais Laacis 2b3f8759c1 dont use LUA_DL_DLL in xbox 2006-12-07 14:17:17 +00:00
Glenn Maynard 260ce8a472 allow coroutine.corunning to return the main thread
http://lua-users.org/lists/lua-l/2006-09/msg00751.html
2006-10-15 21:01:34 +00:00
Glenn Maynard dd8d265975 Add a custom syntax to Lua, to handle command strings.
function f = cmd(a,b;c,d)

is equivalent to

 function f = function(self, ...) self:a(b); self:c(d); end

This is equivalent to LuaHelpers::ParseCommandList, except:

 - Commands are not lowercased.  Do that yourself.
 - The "parent" parameter is not included.  Use self:GetParent().
 - "+5" is not valid.

The benefits are:

 - Better syntax checking.  Running "luac" on the Lua files will do syntax
   checking, and runtime syntax checks will find problems earlier.
 - Easier optimization.  Lua files can be compiled, and when using commands
   this way, commands will be precompiled, too.
 - Commands are compiled in the same scope, so upvalues work:
   local foo = 10; y = cmd(x,foo);
2006-10-12 09:18:05 +00:00
Steve Checkoway 4d8564e803 LUA_USE_LINUX 2006-10-08 21:04:22 +00:00
Glenn Maynard f5780905df __type metamethod 2006-10-05 02:43:36 +00:00
Glenn Maynard 4564b0d5a2 Update to Lua 5.1.
This is normally statically linked in releases.  Lua also needs
some patching in Linux x86 to fix performance issues related
to alignment, will need patching if we want fine-grained threading,
and generally has an odd "build it yourself" design, so let's
just add embed this one.  (note: disable PCH for these files
in VC, and don't add lua.c, luac.c, or print.c to the project)
2006-09-25 07:35:34 +00:00