diff options
| author | ruki <[email protected]> | 2022-05-19 00:57:10 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-05-19 00:57:10 +0800 |
| commit | 961f414fb459c02ba82ceff540296b52e3a965bd (patch) | |
| tree | 61635f96a456daada00f5172822a8df47359eb27 /core/src/xmake/engine.c | |
| parent | e0e5d36e264fc580802c93e26103d604e61f6a00 (diff) | |
add hash.sha1
Diffstat (limited to 'core/src/xmake/engine.c')
| -rw-r--r-- | core/src/xmake/engine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/xmake/engine.c b/core/src/xmake/engine.c index 43e073210..a5ebeb9d7 100644 --- a/core/src/xmake/engine.c +++ b/core/src/xmake/engine.c @@ -182,7 +182,7 @@ tb_int_t xm_path_is_absolute(lua_State* lua); // the hash functions tb_int_t xm_hash_uuid4(lua_State* lua); -tb_int_t xm_hash_sha256(lua_State* lua); +tb_int_t xm_hash_sha(lua_State* lua); tb_int_t xm_hash_md5(lua_State* lua); // the base64 functions @@ -406,7 +406,7 @@ static luaL_Reg const g_path_functions[] = static luaL_Reg const g_hash_functions[] = { { "uuid4", xm_hash_uuid4 } -, { "sha256", xm_hash_sha256 } +, { "sha", xm_hash_sha } , { "md5", xm_hash_md5 } , { tb_null, tb_null } }; |
