diff options
| author | ruki <[email protected]> | 2016-06-30 22:20:17 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-06-30 22:20:17 +0800 |
| commit | bae0d55fc4ecae6294a8d4260e876f274dc30f00 (patch) | |
| tree | bc3c2a714a5095326e229d17629c9845d0662c2e /core/src/xmake/machine.c | |
| parent | c7e6e28ffb33d121b7773d06ffea5b08af4c1165 (diff) | |
sort template and add strcmp for string
Diffstat (limited to 'core/src/xmake/machine.c')
| -rwxr-xr-x | core/src/xmake/machine.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/xmake/machine.c b/core/src/xmake/machine.c index 3b11aef70..616de4eec 100755 --- a/core/src/xmake/machine.c +++ b/core/src/xmake/machine.c @@ -77,6 +77,7 @@ tb_int_t xm_path_translate(lua_State* lua); tb_int_t xm_path_is_absolute(lua_State* lua); // the string functions +tb_int_t xm_string_strcmp(lua_State* lua); tb_int_t xm_string_endswith(lua_State* lua); tb_int_t xm_string_startswith(lua_State* lua); @@ -127,7 +128,8 @@ static luaL_Reg const g_path_functions[] = // the string functions static luaL_Reg const g_string_functions[] = { - { "endswith", xm_string_endswith } + { "strcmp", xm_string_strcmp } +, { "endswith", xm_string_endswith } , { "startswith", xm_string_startswith } , { tb_null, tb_null } }; |
