Skip to content

Commit abec22b

Browse files
committed
refactor: move evdev.linux.sys to evdev.util
1 parent 779b2e9 commit abec22b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
local ffi = require("ffi")
22

3-
local function octal(s)
4-
return tonumber(s, 8)
5-
end
6-
73
ffi.cdef([[
84
int printf(const char *__restrict __format, ...);
95
int open(const char *__file, int __oflag, ...);
106
extern char *strerror (int __errnum);
117
]])
128

9+
local function octal(s)
10+
return tonumber(s, 8)
11+
end
12+
1313
local mod = {
1414
O_RDONLY = octal("0000"),
1515
O_WRONLY = octal("0001"),

0 commit comments

Comments
 (0)