mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
refactor: replace char_u with char 18 (#21237)
refactor: replace char_u with char Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -182,19 +182,19 @@ int tslua_add_language(lua_State *L)
|
||||
|
||||
uv_lib_t lib;
|
||||
if (uv_dlopen(path, &lib)) {
|
||||
snprintf((char *)IObuff, IOSIZE, "Failed to load parser: uv_dlopen: %s",
|
||||
snprintf(IObuff, IOSIZE, "Failed to load parser: uv_dlopen: %s",
|
||||
uv_dlerror(&lib));
|
||||
uv_dlclose(&lib);
|
||||
lua_pushstring(L, (char *)IObuff);
|
||||
lua_pushstring(L, IObuff);
|
||||
return lua_error(L);
|
||||
}
|
||||
|
||||
TSLanguage *(*lang_parser)(void);
|
||||
if (uv_dlsym(&lib, symbol_buf, (void **)&lang_parser)) {
|
||||
snprintf((char *)IObuff, IOSIZE, "Failed to load parser: uv_dlsym: %s",
|
||||
snprintf(IObuff, IOSIZE, "Failed to load parser: uv_dlsym: %s",
|
||||
uv_dlerror(&lib));
|
||||
uv_dlclose(&lib);
|
||||
lua_pushstring(L, (char *)IObuff);
|
||||
lua_pushstring(L, IObuff);
|
||||
return lua_error(L);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user