aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-06-13 09:44:44 -0400
committerAdam Harrison <adamdharrison@gmail.com>2023-06-13 09:44:44 -0400
commitc9c9ab5c5fe1bb699cdfbb062bbc599a01c74d14 (patch)
tree6edafb034dabea697b833846af41d0bd71b45e69 /src
parentdb5c0e1d47d9ba0e177c278b4c52143069b7cfe9 (diff)
downloadlite-xl-plugin-manager-1.0.3.tar.gz
lite-xl-plugin-manager-1.0.3.zip
Updated changelog, README, and manifest to clear up some language, and fix some URLs.v1.0.3
Diffstat (limited to 'src')
-rw-r--r--src/lpm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lpm.c b/src/lpm.c
index 0944963..6dee22e 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -134,7 +134,7 @@ static int lpm_hash(lua_State* L) {
}
-int lpm_symlink(lua_State* L) {
+static int lpm_symlink(lua_State* L) {
#ifndef _WIN32
if (symlink(luaL_checkstring(L, 1), luaL_checkstring(L, 2)))
return luaL_error(L, "can't create symlink %s: %s", luaL_checkstring(L, 2), strerror(errno));
@@ -144,7 +144,7 @@ int lpm_symlink(lua_State* L) {
#endif
}
-int lpm_chmod(lua_State* L) {
+static int lpm_chmod(lua_State* L) {
#ifdef _WIN32
if (_wchmod(lua_toutf16(L, luaL_checkstring(L, 1)), luaL_checkinteger(L, 2)))
#else
@@ -998,7 +998,7 @@ static int lpm_pwd(lua_State* L) {
return 1;
}
-int lpm_flock(lua_State* L) {
+static int lpm_flock(lua_State* L) {
const char* path = luaL_checkstring(L, 1);
luaL_checktype(L, 2, LUA_TFUNCTION);
int error_handler = lua_type(L, 3) == LUA_TFUNCTION ? 3 : 0;
@@ -1048,7 +1048,7 @@ int lpm_flock(lua_State* L) {
return 0;
}
-double get_time() {
+static double get_time() {
#if _WIN32 // Fuck I hate windows jesus chrsit.
LARGE_INTEGER LoggedTime, Frequency;
QueryPerformanceFrequency(&Frequency);
@@ -1061,7 +1061,7 @@ double get_time() {
#endif
}
-int lpm_time(lua_State* L) {
+static int lpm_time(lua_State* L) {
lua_pushnumber(L, get_time());
return 1;
}