mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 13:52:28 +00:00
Rename ParseJson() to DecodeJson() for consistency
This commit is contained in:
parent
28f0104330
commit
e4d6e263d4
5 changed files with 52 additions and 52 deletions
|
@ -275,7 +275,7 @@ static struct Rc Parse(struct lua_State *L, const char *p, const char *e) {
|
|||
* @param n is byte length of `p` or -1 for automatic strlen()
|
||||
* @return 1 if value was pushed, 0 on end, or -1 on error
|
||||
*/
|
||||
int ParseJson(struct lua_State *L, const char *p, size_t n) {
|
||||
int DecodeJson(struct lua_State *L, const char *p, size_t n) {
|
||||
if (n == -1) n = p ? strlen(p) : 0;
|
||||
return Parse(L, p, p + n).t;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue