From 1ff80bf13df3d882790c7c679e7f5355547317f5 Mon Sep 17 00:00:00 2001 From: Kirill Zhumarin Date: Sat, 8 Jun 2024 09:47:17 +0000 Subject: [PATCH] fix `@builtin` --- swilib/include/swilib/explorer.h | 4 ++-- swilib/include/swilib/file.h | 4 ++-- swilib/include/swilib/gui.h | 8 ++++---- swilib/include/swilib/image.h | 4 ++-- swilib/include/swilib/libc.h | 16 ++++++++-------- swilib/include/swilib/system.h | 20 ++++++++++---------- swilib/include/swilib/utils.h | 2 +- 7 files changed, 29 insertions(+), 29 deletions(-) diff --git a/swilib/include/swilib/explorer.h b/swilib/include/swilib/explorer.h index 5e5b75a2..99edc138 100644 --- a/swilib/include/swilib/explorer.h +++ b/swilib/include/swilib/explorer.h @@ -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) @@ -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) diff --git a/swilib/include/swilib/file.h b/swilib/include/swilib/file.h index 43c92069..8286ded3 100644 --- a/swilib/include/swilib/file.h +++ b/swilib/include/swilib/file.h @@ -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) @@ -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) diff --git a/swilib/include/swilib/gui.h b/swilib/include/swilib/gui.h index 7fe11918..c6c85ab8 100644 --- a/swilib/include/swilib/gui.h +++ b/swilib/include/swilib/gui.h @@ -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) @@ -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) @@ -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) @@ -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) diff --git a/swilib/include/swilib/image.h b/swilib/include/swilib/image.h index c4609fed..3901e63a 100644 --- a/swilib/include/swilib/image.h +++ b/swilib/include/swilib/image.h @@ -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) @@ -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) diff --git a/swilib/include/swilib/libc.h b/swilib/include/swilib/libc.h index ab7f069f..af6e4d42 100644 --- a/swilib/include/swilib/libc.h +++ b/swilib/include/swilib/libc.h @@ -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) @@ -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) @@ -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) @@ -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) @@ -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) @@ -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) @@ -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) @@ -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() diff --git a/swilib/include/swilib/system.h b/swilib/include/swilib/system.h index afd63e93..23551fbe 100644 --- a/swilib/include/swilib/system.h +++ b/swilib/include/swilib/system.h @@ -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) { @@ -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) @@ -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) @@ -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) @@ -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) @@ -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) @@ -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) @@ -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) @@ -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) @@ -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) diff --git a/swilib/include/swilib/utils.h b/swilib/include/swilib/utils.h index 4acd2514..df4320dc 100644 --- a/swilib/include/swilib/utils.h +++ b/swilib/include/swilib/utils.h @@ -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