11be35a165
To do so, a few dependencies have been imported: * external/bsd/lutok * external/mit/lua * external/public-domain/sqlite * external/public-domain/xz The Kyua framework is the new generation of ATF (Automated Test Framework), it is composed of: * external/bsd/atf * external/bsd/kyua-atf-compat * external/bsd/kyua-cli * external/bsd/kyua-tester * tests Kyua/ATF being written in C++, it depends on libstdc++ which is provided by GCC. As this is not part of the sources, Kyua is only compiled when the native GCC utils are installed. To install Kyua do the following: * In a cross-build enviromnent, add the following to the build.sh commandline: -V MKBINUTILS=yes -V MKGCCCMDS=yes WARNING: At this point the import is still experimental, and not supported on native builds (a.k.a make build). Change-Id: I26aee23c5bbd2d64adcb7c1beb98fe0d479d7ada
33 lines
879 B
C
33 lines
879 B
C
/* $NetBSD: lstring.h,v 1.1.1.2 2012/03/15 00:08:04 alnsn Exp $ */
|
|
|
|
/*
|
|
** $Id: lstring.h,v 1.1.1.2 2012/03/15 00:08:04 alnsn Exp $
|
|
** String table (keep all strings handled by Lua)
|
|
** See Copyright Notice in lua.h
|
|
*/
|
|
|
|
#ifndef lstring_h
|
|
#define lstring_h
|
|
|
|
|
|
#include "lgc.h"
|
|
#include "lobject.h"
|
|
#include "lstate.h"
|
|
|
|
|
|
#define sizestring(s) (sizeof(union TString)+((s)->len+1)*sizeof(char))
|
|
|
|
#define sizeudata(u) (sizeof(union Udata)+(u)->len)
|
|
|
|
#define luaS_new(L, s) (luaS_newlstr(L, s, strlen(s)))
|
|
#define luaS_newliteral(L, s) (luaS_newlstr(L, "" s, \
|
|
(sizeof(s)/sizeof(char))-1))
|
|
|
|
#define luaS_fix(s) l_setbit((s)->tsv.marked, FIXEDBIT)
|
|
|
|
LUAI_FUNC void luaS_resize (lua_State *L, int newsize);
|
|
LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s, Table *e);
|
|
LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l);
|
|
|
|
|
|
#endif
|