Skip to content

Commit

Permalink
Merge pull request #5 from Egor00f/add-documentation-and-update-syscalls
Browse files Browse the repository at this point in the history
create documentation for syscalls && small updates in syscalls
  • Loading branch information
Egor00f authored Jan 3, 2025
2 parents 3aab1d2 + 84270c3 commit 2fb7b98
Show file tree
Hide file tree
Showing 8 changed files with 1,112 additions and 188 deletions.
46 changes: 46 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,50 @@
"lprefix.h": "c"
},
"editor.formatOnSave": false,
"cSpell.enabled": true,
"cSpell.words": [
"KolibriOS",
"ksys",
"ksys_oskey_t",
"_ksys_get_mouse_eventstate",
"KSYS_EVENT_IRQBEGIN",
"KSYS_MOUSE_LBUTTON_PRESSED",
"KSYS_MOUSE_RBUTTON_PRESSED",
"KSYS_MOUSE_MBUTTON_PRESSED",
"KSYS_MOUSE_4BUTTON_PRESSED",
"KSYS_MOUSE_5BUTTON_PRESSED",
"KSYS_SCANCODE_LSHIFT",
"KSYS_SCANCODE_RSHIFT",
"KSYS_SCANCODE_LALT",
"KSYS_SCANCODE_EXT_RALT",
"KSYS_SCANCODE_LCTRL",
"KSYS_SCANCODE_EXT_RCTRL",
"KSYS_SCANCODE_CAPSLOCK",
"KSYS_SCANCODE_EXT_PGUP",
"KSYS_SCANCODE_EXT_PGDOWN",
"KSYS_SCANCODE_EXT_NUMPAD_ENTER",
"KSYS_SCANCODE_EXT_NUMPAD_DIV",
"KSYS_SCANCODE_NUMLOCK",
"KSYS_SCANCODE_NUMPAD_MULT",
"KSYS_SCANCODE_NUMPAD_MINUS",
"KSYS_SCANCODE_NUMPAD_PLUS",
"lua_pushstring",
"lua_pushnumber",
"lua_pushinteger",
"lua_pushnil",
"lua_pushboolean",
"luaL_pushfail",
"luaL_checknumber",
"luaL_checkinteger",
"luaL_checkstring",
"luaL_newlib",
"lua_createtable",
"lua_setfield",
"lua_getfield",
"lua_settop",
"luaL_checktype",
"LUA_TTABLE",
"LUALIB_API",
"luaopen_"
],
}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ V= 5.4
R= $V.7


all help test clean:
shared static help test clean:
@cd src && $(MAKE) $@

install: dummy
Expand Down
77 changes: 73 additions & 4 deletions doc/contents.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<H1>
<A HREF="https://www.lua.org/"><IMG SRC="logo.gif" ALT="Lua"></A>
Lua 5.4 Reference Manual
KolibriOS Lua 5.4 Reference Manual
</H1>

<P>
Expand Down Expand Up @@ -131,6 +131,7 @@ <H2><A NAME="contents">Contents</A></H2>
<LI><A HREF="manual.html#6.8">6.8 &ndash; Input and Output Facilities</A>
<LI><A HREF="manual.html#6.9">6.9 &ndash; Operating System Facilities</A>
<LI><A HREF="manual.html#6.10">6.10 &ndash; The Debug Library</A>
<LI><A HREF="manual.html#6.11">6.11 &ndash; Syscalls</A></LI>
</UL>
<P>
<LI><A HREF="manual.html#7">7 &ndash; Lua Standalone</A>
Expand Down Expand Up @@ -234,9 +235,7 @@ <H3><A NAME="functions">Lua functions</A></H3>
<A HREF="manual.html#pdf-file:setvbuf">file:setvbuf</A><BR>
<A HREF="manual.html#pdf-file:write">file:write</A><BR>

</TD>
<TD>
<H3>&nbsp;</H3>

<P>
<A HREF="manual.html#6.7">math</A><BR>
<A HREF="manual.html#pdf-math.abs">math.abs</A><BR>
Expand Down Expand Up @@ -281,6 +280,10 @@ <H3>&nbsp;</H3>
<A HREF="manual.html#pdf-os.time">os.time</A><BR>
<A HREF="manual.html#pdf-os.tmpname">os.tmpname</A><BR>

</TD>
<TD>
<H3>&nbsp;</H3>

<P>
<A HREF="manual.html#6.3">package</A><BR>
<A HREF="manual.html#pdf-package.config">package.config</A><BR>
Expand Down Expand Up @@ -331,6 +334,72 @@ <H3>&nbsp;</H3>
<A HREF="manual.html#pdf-utf8.len">utf8.len</A><BR>
<A HREF="manual.html#pdf-utf8.offset">utf8.offset</A><BR>

<P>
<A HREF="manual.html#6.11">Syscalls</A><BR>

<A HREF="manual.html#Syscalls.createWindow">Syscalls.createWindow</A><BR>
<A HREF="manual.html#Syscalls.startRedraw">Syscalls.startRedraw</A><BR>
<A HREF="manual.html#Syscalls.endRedraw">Syscalls.endRedraw</A><BR>
<A HREF="manual.html#Syscalls.changeWindow">Syscalls.changeWindow</A><BR>
<A HREF="manual.html#Syscalls.unfocusWindow">Syscalls.unfocusWindow</A><BR>
<A HREF="manual.html#Syscalls.setWindowTitle">Syscalls.setWindowTitle</A><BR>

<A HREF="manual.html#Syscalls.defineButton">Syscalls.defineButton</A><BR>
<A HREF="manual.html#Syscalls.deleteButton">Syscalls.deleteButton</A><BR>
<A HREF="manual.html#Syscalls.getButton">Syscalls.getButton</A><BR>

<A HREF="manual.html#Syscalls.waitEvent">Syscalls.waitEvent</A><BR>
<A HREF="manual.html#Syscalls.checkEvent">Syscalls.checkEvent</A><BR>
<A HREF="manual.html#Syscalls.waitEventTimeout">Syscalls.waitEventTimeout</A><BR>

<A HREF="manual.html#Syscalls.backgroundSetSize">Syscalls.backgroundSetSize</A><BR>
<A HREF="manual.html#Syscalls.backgroundPutPixel">Syscalls.backgroundPutPixel</A><BR>
<A HREF="manual.html#Syscalls.backgroundRedraw">Syscalls.backgroundRedraw</A><BR>

<A HREF="manual.html#Syscalls.getRamSize">Syscalls.getRamSize</A><BR>
<A HREF="manual.html#Syscalls.getFreeRam">Syscalls.getFreeRam</A><BR>
<A HREF="manual.html#Syscalls.getCPUClock">Syscalls.getCPUClock</A><BR>
<A HREF="manual.html#Syscalls.shutdownPowerOff">Syscalls.shutdownPowerOff</A><BR>
<A HREF="manual.html#Syscalls.shutdownReboot">Syscalls.shutdownReboot</A><BR>
<A HREF="manual.html#Syscalls.shutdownRestartKernel">Syscalls.shutdownRestartKernel</A><BR>
<A HREF="manual.html#Syscalls.getSystemColors">Syscalls.getSystemColors</A><BR>
<A HREF="manual.html#Syscalls.screenSize">Syscalls.screenSize</A><BR>
<A HREF="manual.html#Syscalls.drawLine">Syscalls.drawLine</A><BR>
<A HREF="manual.html#Syscalls.drawPixel">Syscalls.drawPixel</A><BR>
<A HREF="manual.html#Syscalls.drawText">Syscalls.drawText</A><BR>
<A HREF="manual.html#Syscalls.drawRectangle">Syscalls.drawRectangle</A><BR>
<A HREF="manual.html#Syscalls.setKeyInputMode">Syscalls.setKeyInputMode</A><BR>
<A HREF="manual.html#Syscalls.getKey">Syscalls.getKey</A><BR>
<A HREF="manual.html#Syscalls.getControlKeyState">Syscalls.getControlKeyState</A><BR>

<A HREF="manual.html#Syscalls.threadInfo">Syscalls.threadInfo</A><BR>
<A HREF="manual.html#Syscalls.killBySlot">Syscalls.killBySlot</A><BR>

<A HREF="manual.html#Syscalls.getMouseButtons">Syscalls.getMouseButtons</A><BR>
<A HREF="manual.html#Syscalls.getMouseEvents">Syscalls.getMouseEvents</A><BR>
<A HREF="manual.html#Syscalls.getMousePositionScreen">Syscalls.getMousePositionScreen</A><BR>
<A HREF="manual.html#Syscalls.getMousePositionWindow">Syscalls.getMousePositionWindow</A><BR>
<A HREF="manual.html#Syscalls.GetMouseSpeed">Syscalls.GetMouseSpeed</A><BR>
<A HREF="manual.html#Syscalls.GetMouseSens">Syscalls.GetMouseSens</A><BR>
<A HREF="manual.html#Syscalls.GetMouseDoubleClickDelay">Syscalls.GetMouseDoubleClickDelay</A><BR>
<A HREF="manual.html#Syscalls.GetMouseSettings">Syscalls.GetMouseSettings</A><BR>
<A HREF="manual.html#Syscalls.MouseSimulateState">Syscalls.MouseSimulateState</A><BR>
<A HREF="manual.html#Syscalls.SetMouseSpeed">Syscalls.SetMouseSpeed</A><BR>
<A HREF="manual.html#Syscalls.SetMouseSens">Syscalls.SetMouseSens</A><BR>
<A HREF="manual.html#Syscalls.SetMousePos">Syscalls.SetMousePos</A><BR>
<A HREF="manual.html#Syscalls.SetMouseDoubleClickDelay">Syscalls.SetMouseDoubleClickDelay</A><BR>
<A HREF="manual.html#Syscalls.SetMouseSettings">Syscalls.SetMouseSettings</A><BR>
<A HREF="manual.html#Syscalls.LoadCursor">Syscalls.LoadCursor</A><BR>
<A HREF="manual.html#Syscalls.SetCursor">Syscalls.SetCursor</A><BR>
<A HREF="manual.html#Syscalls.DeleteCursor">Syscalls.DeleteCursor</A><BR>
<A HREF="manual.html#Syscalls.SetHotKey">Syscalls.Events*</A><BR>
<A HREF="manual.html#Syscalls.DeleteHotKey">Syscalls.Events*</A><BR>
<A HREF="manual.html#Syscalls.Scancodes">Syscalls.Scancodes_*</A><BR>
<A HREF="manual.html#Syscalls.Events">Syscalls.Events*</A><BR>
<A HREF="manual.html#Syscalls.HotKeys">Syscalls.Events*</A><BR>

</P>

<H3><A NAME="metamethods">metamethods</A></H3>
<P>
<A HREF="manual.html#2.4">__add</A><BR>
Expand Down
5 changes: 5 additions & 0 deletions doc/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<html>
<head>
<meta http-equiv="refresh" content="0; url=readme.html" />
</head>
</html>
Loading

0 comments on commit 2fb7b98

Please # to comment.