Fix lsqlite3.lversion() and document local changes

Fixes #507
This commit is contained in:
Justine Tunney 2022-07-24 05:08:08 -07:00
parent f968e2a726
commit 8593580d0a
4 changed files with 17 additions and 5 deletions

View file

@ -41,6 +41,17 @@ lsqlite3 (MIT License)\\n\
Copyright 2002-2016 Tiago Dionizio, Doug Currie\"");
asm(".include \"libc/disclaimer.inc\"");
// LOCAL CHANGES
//
// - Remove online backup code
// - Remove trace callback code
// - Remove progress callback code
// - Removed extension loading code
// - Relocate static .data to .rodata
// - Changed lua_strlen() to lua_rawlen()
//
#define LSQLITE_VERSION "0.9.5"
/* luaL_typerror always used with arg at ndx == NULL */
#define luaL_typerror(L,ndx,str) luaL_error(L,"bad argument %d (%s expected, got nil)",ndx,str)
/* luaL_register used once, so below expansion is OK for this case */
@ -1733,11 +1744,6 @@ static int lsqlite_newindex(lua_State *L) {
return 0;
}
#ifndef LSQLITE_VERSION
/* should be defined in rockspec, but just in case... */
#define LSQLITE_VERSION "unknown"
#endif
/* Version number of this library
*/
static int lsqlite_lversion(lua_State *L) {