Skip to content

Commit

Permalink
fix @builtin
Browse files Browse the repository at this point in the history
  • Loading branch information
Azq2 committed Jun 8, 2024
1 parent 1e9dcc5 commit 1ff80bf
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 29 deletions.
4 changes: 2 additions & 2 deletions swilib/include/swilib/explorer.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ __swi_end(0x08C, RegExplorerExt, (ext));
* Unregister extension from the NativeExplorer.
* @param ext extension definition structure, see #REGEXPLEXT
* @return number of registered extensions
* @builtin X75|SG
* @builtin X75, SG
* */
__swi_begin(0x095)
int UnRegExplorerExt(const REGEXPLEXT *ext)
Expand All @@ -133,7 +133,7 @@ __swi_end(0x095, UnRegExplorerExt, (ext));
/**
* Get a pointer to the explorer extensions.
* @return pointer
* @builtin ELKA|NSG|X75|SG
* @builtin ELKA, NSG, X75, SG
* */
__swi_begin(0x81B8)
TREGEXPLEXT *EXT_TOP(void)
Expand Down
4 changes: 2 additions & 2 deletions swilib/include/swilib/file.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ __swi_end(0x00A, sys_open, (path, mode, permission, err));
* @param length maximum size for read
* @param[out] err error code
* @return count of read bytes or error (< 0)
* @builtin X75|SG
* @builtin X75, SG
* */
__swi_begin(0x00B)
int sys_read(int fd, void *buffer, int length, uint32_t *err)
Expand All @@ -211,7 +211,7 @@ __swi_end(0x00B, sys_read, (fd, buffer, length, err));
* @param length maximum size for write
* @param[out] err error code
* @return count of written bytes or error (< 0)
* @builtin X75|SG
* @builtin X75, SG
* */
__swi_begin(0x00C)
int sys_write(int fd, const void *buffer, int length, uint32_t *err)
Expand Down
8 changes: 4 additions & 4 deletions swilib/include/swilib/gui.h
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ __swi_end(0x21F, UnfocusGUI, ());
* Request redraw of the GUI.
*
* @note Platform independent function. Use it where possible.
* @builtin ELKA|NSG|X75|SG
* @builtin ELKA, NSG, X75, SG
* */
__swi_begin(0x172)
void REDRAW(void)
Expand Down Expand Up @@ -773,7 +773,7 @@ __swi_end(0x141, PendedRedrawGUI, ());
/**
* Add global keyhook to the beginning of the list.
* @param callback int callback(int submsg, int msg)
* @builtin X75|SG
* @builtin X75, SG
* */
__swi_begin(0x12B)
void AddKeybMsgHook(KeybMsgHookProc callback)
Expand All @@ -783,7 +783,7 @@ __swi_end(0x12B, AddKeybMsgHook, (callback));
* Add global keyhook to the end of the list.
* @param callback int callback(int submsg, int msg)
* @return 1: success, 0: error
* @builtin X75|SG
* @builtin X75, SG
* */
__swi_begin(0x12C)
int AddKeybMsgHook_end(KeybMsgHookProc callback)
Expand All @@ -792,7 +792,7 @@ __swi_end(0x12C, AddKeybMsgHook_end, (callback));
/**
* Remove global keyhook from the list.
* @param callback int callback(int submsg, int msg)
* @builtin X75|SG
* @builtin X75, SG
* */
__swi_begin(0x12D)
void RemoveKeybMsgHook(KeybMsgHookProc callback)
Expand Down
4 changes: 2 additions & 2 deletions swilib/include/swilib/image.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ enum ThemeCacheImageID {
/**
* Get a pointer to the PNG list (PIT overrides).
* @return pointer
* @builtin ELKA|NSG|X75|SG
* @builtin ELKA, NSG, X75, SG
* */
__swi_begin(0x81B9)
PNGTOP_DESC *PNG_TOP(void)
Expand Down Expand Up @@ -147,7 +147,7 @@ __swi_end(0x022, GetImgWidth, (picture));
* Load PNG image from the filesystem.
* @param path path ot the filename
* @param type unknown, set to 0
* @builtin ELKA|NSG|X75|SG
* @builtin ELKA, NSG, X75, SG
* */
__swi_begin(0x1E9)
IMGHDR *CreateIMGHDRFromPngFile(const char *path, int type)
Expand Down
16 changes: 8 additions & 8 deletions swilib/include/swilib/libc.h
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ __swi_end(0x3AB, bsearch, (key, first, nitems, size, comparator));
* @param value new value for the variable
* @param replace allow overwriting already existing variables
* @return 0 or error
* @builtin ELKA|NSG|X75|SG
* @builtin ELKA, NSG, X75, SG
* */
__swi_begin(0x2F2)
int setenv(const char *name, const char *value, int replace)
Expand All @@ -567,7 +567,7 @@ __swi_end(0x2F2, setenv, (name, value, replace));
* Remove environment variable.
* @param name name of the variable
* @return 0 or error
* @builtin ELKA|NSG|X75|SG
* @builtin ELKA, NSG, X75, SG
* */
__swi_begin(0x2F3)
int unsetenv(const char *name)
Expand All @@ -577,7 +577,7 @@ __swi_end(0x2F3, unsetenv, (name));
* Get value for the environment variable.
* @param name name of the variable
* @return C-string
* @builtin ELKA|NSG|X75|SG
* @builtin ELKA, NSG, X75, SG
* */
__swi_begin(0x2F4)
char *getenv(const char *name)
Expand All @@ -586,7 +586,7 @@ __swi_end(0x2F4, getenv, (name));
/**
* Remove all environment variables.
* @return 0 or error
* @builtin ELKA|NSG|X75|SG
* @builtin ELKA, NSG, X75, SG
* */
__swi_begin(0x2F5)
int clearenv(void)
Expand All @@ -603,7 +603,7 @@ __swi_end(0x2F5, clearenv, ());
* Load the dynamic shared object (.so).
* @param name path to the `.so` file or only name (`libNAME.so`)
* @return 0 or error
* @builtin ELKA|NSG|X75|SG
* @builtin ELKA, NSG, X75, SG
* */
__swi_begin(0x2EF)
int dlopen(const char *name)
Expand All @@ -614,7 +614,7 @@ __swi_end(0x2EF, dlopen, (name));
* @param handle descriptor obtained from _dlopen
* @param name name of the symbol
* @return pointer to the symbol
* @builtin ELKA|NSG|X75|SG
* @builtin ELKA, NSG, X75, SG
* */
__swi_begin(0x2F0)
void *dlsym(int handle, const char *name)
Expand All @@ -624,7 +624,7 @@ __swi_end(0x2F0, dlsym, (handle, name));
* Close previously loaded dynamic object.
* @param handle descriptor obtained from _dlopen
* @return 0 or error
* @builtin ELKA|NSG|X75|SG
* @builtin ELKA, NSG, X75, SG
* */
__swi_begin(0x2F1)
int dlclose(int handle)
Expand All @@ -633,7 +633,7 @@ __swi_end(0x2F1, dlclose, (handle));
/**
* Get a string representation of the last error in _dlopen.
* @return C-string
* @builtin ELKA|NSG|X75|SG
* @builtin ELKA, NSG, X75, SG
* */
__swi_begin(0x2F7)
const char *dlerror()
Expand Down
20 changes: 10 additions & 10 deletions swilib/include/swilib/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ __swi_end(0x81B5, isnewSGold, ());
* You can pass up to two additional (32 bit) parameters that are passed to the callback.
* Callbacks will be called in the RAP queue instead of the MMI.
* @param callback pointer to the callback
* @builtin ELKA|NSG|X75|SG
* @builtin ELKA, NSG, X75, SG
*
* ```C
* void test_func(int p1, int p2) {
Expand Down Expand Up @@ -144,7 +144,7 @@ __swi_end(0x80FF, AddrLibrary, ());
/**
* Get a pointer to the loaded blib.
* @return pointer
* @builtin ELKA|NSG|X75|SG
* @builtin ELKA, NSG, X75, SG
* */
__swi_begin(0x81BA)
void *LIB_TOP(void)
Expand All @@ -153,7 +153,7 @@ __swi_end(0x81BA, LIB_TOP, ());
/**
* Get a pointer to the list of loaded shared libs.
* @return pointer to the first element of the linked-list
* @builtin ELKA|NSG|X75|SG
* @builtin ELKA, NSG, X75, SG
* @note Only for Elfloader 3.0+
* */
__swi_begin(0x2F9)
Expand All @@ -163,7 +163,7 @@ __swi_end(0x2F9, SHARED_TOP, ());
/**
* Get a pointer to a list of environment variables.
* @return pointer to the C-like array of strings
* @builtin ELKA|NSG|X75|SG
* @builtin ELKA, NSG, X75, SG
* @note Only for Elfloader 3.0+
* */
__swi_begin(0x2F6)
Expand All @@ -174,7 +174,7 @@ __swi_end(0x2F6, getBaseEnviron, ());
* Close ELF.
* @param ex pointer to the opened ELF
* @return 0 or error
* @builtin ELKA|NSG|X75|SG
* @builtin ELKA, NSG, X75, SG
* @note Only for Elfloader 3.0+
* */
__swi_begin(0x2EE)
Expand Down Expand Up @@ -208,7 +208,7 @@ extern void kill_data(void *p, void (*func_p)(void *));
* Load the dynamic shared object (.so).
* @param name path to the `.so` file or only name (`libNAME.so`)
* @return 0 or error
* @builtin ELKA|NSG|X75|SG
* @builtin ELKA, NSG, X75, SG
* @note Only for Elfloader 3.0+
* */
__swi_begin(0x2EF)
Expand All @@ -220,7 +220,7 @@ __swi_end(0x2EF, _dlopen, (name));
* @param handle descriptor obtained from _dlopen
* @param name name of the symbol
* @return pointer to the symbol
* @builtin ELKA|NSG|X75|SG
* @builtin ELKA, NSG, X75, SG
* @note Only for Elfloader 3.0+
* */
__swi_begin(0x2F0)
Expand All @@ -231,7 +231,7 @@ __swi_end(0x2F0, _dlsym, (handle, name));
* Close previously loaded dynamic object.
* @param handle descriptor obtained from _dlopen
* @return 0 or error
* @builtin ELKA|NSG|X75|SG
* @builtin ELKA, NSG, X75, SG
* @note Only for Elfloader 3.0+
* */
__swi_begin(0x2F1)
Expand All @@ -241,7 +241,7 @@ __swi_end(0x2F1, _dlclose, (handle));
/**
* Get a string representation of the last error in _dlopen.
* @return C-string
* @builtin ELKA|NSG|X75|SG
* @builtin ELKA, NSG, X75, SG
* @note Only for Elfloader 3.0+
* */
__swi_begin(0x2F7)
Expand All @@ -251,7 +251,7 @@ __swi_end(0x2F7, _dlerror, ());
/**
* Call the garbage collector for the loaded dynamic objects.
* @return 0 or error
* @builtin ELKA|NSG|X75|SG
* @builtin ELKA, NSG, X75, SG
* @note Only for Elfloader 3.0+
* */
__swi_begin(0x2F8)
Expand Down
2 changes: 1 addition & 1 deletion swilib/include/swilib/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ __swilib_begin
* @param data data passed to the next_in_seq
* @param next_in_seq destructor
* @param data_to_kill pointer to be freed
* @builtin ELKA|NSG|X75|SG
* @builtin ELKA, NSG, X75, SG
*
* Strange function with unknown purpose.
* ```C
Expand Down

0 comments on commit 1ff80bf

Please sign in to comment.