diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-10-28 15:28:40 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-10-28 15:28:40 -0200 |
commit | 6707ce63491ad5f233f30b1d561ed7f0f0b9a0c8 (patch) | |
tree | be151820c74eb2ebc4655783a100c96504c107aa /lobject.h | |
parent | 257961c601fdec1ea1f9640d460e0d31c39333a1 (diff) | |
download | lua-6707ce63491ad5f233f30b1d561ed7f0f0b9a0c8.tar.gz lua-6707ce63491ad5f233f30b1d561ed7f0f0b9a0c8.tar.bz2 lua-6707ce63491ad5f233f30b1d561ed7f0f0b9a0c8.zip |
function prepares vararg only if it really uses them (chunks
are always declared vararg but seldom uses them)
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.h,v 2.113 2015/09/08 16:54:52 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 2.114 2015/09/17 15:51:05 roberto Exp roberto $ |
3 | ** Type definitions for Lua objects | 3 | ** Type definitions for Lua objects |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -407,7 +407,7 @@ typedef struct LocVar { | |||
407 | typedef struct Proto { | 407 | typedef struct Proto { |
408 | CommonHeader; | 408 | CommonHeader; |
409 | lu_byte numparams; /* number of fixed parameters */ | 409 | lu_byte numparams; /* number of fixed parameters */ |
410 | lu_byte is_vararg; | 410 | lu_byte is_vararg; /* 2: declared vararg; 1: uses vararg */ |
411 | lu_byte maxstacksize; /* number of registers needed by this function */ | 411 | lu_byte maxstacksize; /* number of registers needed by this function */ |
412 | int sizeupvalues; /* size of 'upvalues' */ | 412 | int sizeupvalues; /* size of 'upvalues' */ |
413 | int sizek; /* size of 'k' */ | 413 | int sizek; /* size of 'k' */ |