mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-06 09:50:28 +00:00
Rename redbean Lua function GetComment to GetAssetComment
This breaking change improves consistency with other GetAsset* functions.
This commit is contained in:
parent
93d2cf3d11
commit
cde92c3944
2 changed files with 6 additions and 6 deletions
|
@ -592,6 +592,10 @@ FUNCTIONS
|
|||
Turns integer like 0x01020304 into a string like 1.2.3.4. See also
|
||||
ParseIp for the inverse operation.
|
||||
|
||||
GetAssetComment(path:str) → str
|
||||
Returns comment text associated with asset in the ZIP central
|
||||
directory.
|
||||
|
||||
GetAssetMode(path:str) → int
|
||||
Returns UNIX-style octal mode for ZIP asset (or local file if the
|
||||
-D flag is used)
|
||||
|
@ -600,10 +604,6 @@ FUNCTIONS
|
|||
Returns byte size of uncompressed contents of ZIP asset (or local
|
||||
file if the -D flag is used)
|
||||
|
||||
GetComment(path:str) → str
|
||||
Returns comment text associated with asset in the ZIP central
|
||||
directory.
|
||||
|
||||
GetCookie(name:str) → str
|
||||
Returns cookie value.
|
||||
|
||||
|
|
|
@ -5092,7 +5092,7 @@ static int LuaIsDaemon(lua_State *L) {
|
|||
return 1;
|
||||
}
|
||||
|
||||
static int LuaGetComment(lua_State *L) {
|
||||
static int LuaGetAssetComment(lua_State *L) {
|
||||
struct Asset *a;
|
||||
const char *path;
|
||||
size_t pathlen, m;
|
||||
|
@ -5325,10 +5325,10 @@ static const luaL_Reg kLuaFuncs[] = {
|
|||
{"Fetch", LuaFetch}, //
|
||||
{"FormatHttpDateTime", LuaFormatHttpDateTime}, //
|
||||
{"FormatIp", LuaFormatIp}, //
|
||||
{"GetAssetComment", LuaGetAssetComment}, //
|
||||
{"GetAssetMode", LuaGetAssetMode}, //
|
||||
{"GetAssetSize", LuaGetAssetSize}, //
|
||||
{"GetClientAddr", LuaGetClientAddr}, //
|
||||
{"GetComment", LuaGetComment}, //
|
||||
{"GetCookie", LuaGetCookie}, //
|
||||
{"GetDate", LuaGetDate}, //
|
||||
{"GetEffectivePath", LuaGetEffectivePath}, //
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue