~ubuntu-branches/debian/squeeze/freeciv/squeeze

« back to all changes in this revision

Viewing changes to dependencies/lua-5.1/src/lfunc.h

  • Committer: Bazaar Package Importer
  • Author(s): Clint Adams, Karl Goetz, Clint Adams
  • Date: 2010-02-23 22:09:02 UTC
  • mfrom: (1.2.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20100223220902-kiyrmr9i4152cka5
Tags: 2.2.0-1
[ Karl Goetz ]
* Remove civserver files in /etc/ggzd/ (Closes: 523772, 517787)
* Adding ${misc:Depends} to all binary packages (lintian warnings)

[ Clint Adams ]
* New upstream version.
  - Drop data_dsc_use_bindir.diff (binary pathnames have changed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
** $Id: lfunc.h,v 2.4.1.1 2007/12/27 13:02:25 roberto Exp $
 
3
** Auxiliary functions to manipulate prototypes and closures
 
4
** See Copyright Notice in lua.h
 
5
*/
 
6
 
 
7
#ifndef lfunc_h
 
8
#define lfunc_h
 
9
 
 
10
 
 
11
#include "lobject.h"
 
12
 
 
13
 
 
14
#define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \
 
15
                         cast(int, sizeof(TValue)*((n)-1)))
 
16
 
 
17
#define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \
 
18
                         cast(int, sizeof(TValue *)*((n)-1)))
 
19
 
 
20
 
 
21
LUAI_FUNC Proto *luaF_newproto (lua_State *L);
 
22
LUAI_FUNC Closure *luaF_newCclosure (lua_State *L, int nelems, Table *e);
 
23
LUAI_FUNC Closure *luaF_newLclosure (lua_State *L, int nelems, Table *e);
 
24
LUAI_FUNC UpVal *luaF_newupval (lua_State *L);
 
25
LUAI_FUNC UpVal *luaF_findupval (lua_State *L, StkId level);
 
26
LUAI_FUNC void luaF_close (lua_State *L, StkId level);
 
27
LUAI_FUNC void luaF_freeproto (lua_State *L, Proto *f);
 
28
LUAI_FUNC void luaF_freeclosure (lua_State *L, Closure *c);
 
29
LUAI_FUNC void luaF_freeupval (lua_State *L, UpVal *uv);
 
30
LUAI_FUNC const char *luaF_getlocalname (const Proto *func, int local_number,
 
31
                                         int pc);
 
32
 
 
33
 
 
34
#endif