mirror of
https://github.com/Leonmmcoset/cleonos.git
synced 2026-04-27 05:34:00 +00:00
style: auto-format C/C++ sources with clang-format
This commit is contained in:
committed by
github-actions[bot]
parent
298de5e33f
commit
fcc4e0c3b6
@@ -16,7 +16,7 @@ static int ush_cmd_help(void) {
|
|||||||
ush_writeln(" bmpview <file.bmp> [cols]");
|
ush_writeln(" bmpview <file.bmp> [cols]");
|
||||||
ush_writeln(" qrcode [--ecc <L|M|Q|H>] <text>");
|
ush_writeln(" qrcode [--ecc <L|M|Q|H>] <text>");
|
||||||
ush_writeln(" vim [file] (vim-like editor: normal/insert/:w/:q/:wq)");
|
ush_writeln(" vim [file] (vim-like editor: normal/insert/:w/:q/:wq)");
|
||||||
ush_writeln(" uwm (user-space window manager; Start includes Task Manager)");
|
ush_writeln(" uwm (user-space window manager; Start includes Task Manager)");
|
||||||
ush_writeln(" wavplay <file.wav> [steps] [ticks] / wavplay --stop");
|
ush_writeln(" wavplay <file.wav> [steps] [ticks] / wavplay --stop");
|
||||||
ush_writeln(" fastfetch [--plain]");
|
ush_writeln(" fastfetch [--plain]");
|
||||||
ush_writeln(" doom [wad_path] (framebuffer bootstrap renderer)");
|
ush_writeln(" doom [wad_path] (framebuffer bootstrap renderer)");
|
||||||
@@ -43,7 +43,7 @@ static int ush_cmd_help(void) {
|
|||||||
ush_writeln(" spawn <path|name> [args...] / bg <path|name> [args...]");
|
ush_writeln(" spawn <path|name> [args...] / bg <path|name> [args...]");
|
||||||
ush_writeln(" wait <pid> / fg [pid]");
|
ush_writeln(" wait <pid> / fg [pid]");
|
||||||
ush_writeln(" kill <pid> [signal]");
|
ush_writeln(" kill <pid> [signal]");
|
||||||
ush_writeln(" jobs [-a] / ps [-a] [-u] / procstat [pid|self] [-a]");
|
ush_writeln(" jobs [-a] / ps [-a] [-u] / procstat [pid|self] [-a]");
|
||||||
ush_writeln(" top [--once] [-n loops] [-d ticks] / sysstat [-a] [-n N]");
|
ush_writeln(" top [--once] [-n loops] [-d ticks] / sysstat [-a] [-n N]");
|
||||||
ush_writeln(" kdbg sym <addr> / kdbg bt <rbp> <rip> / kdbg regs");
|
ush_writeln(" kdbg sym <addr> / kdbg bt <rbp> <rip> / kdbg regs");
|
||||||
ush_writeln(" sleep <ticks>");
|
ush_writeln(" sleep <ticks>");
|
||||||
|
|||||||
@@ -574,7 +574,8 @@ static void tm_draw_toolbar(const tm_app *app) {
|
|||||||
tm_fill_rect(app->w, app->h, 0, y + TM_TOOLBAR_H - 1, app->w, 1, TM_COLOR_BORDER);
|
tm_fill_rect(app->w, app->h, 0, y + TM_TOOLBAR_H - 1, app->w, 1, TM_COLOR_BORDER);
|
||||||
tm_draw_text(app->w, app->h, 18, y + 10, "PROCESSES", 2, TM_COLOR_TEXT);
|
tm_draw_text(app->w, app->h, 18, y + 10, "PROCESSES", 2, TM_COLOR_TEXT);
|
||||||
tm_draw_button(app->w, app->h, 164, y + 10, 86, 28, "REFRESH", 0);
|
tm_draw_button(app->w, app->h, 164, y + 10, 86, 28, "REFRESH", 0);
|
||||||
tm_draw_button(app->w, app->h, 260, y + 10, 94, 28, app->include_exited != 0 ? "ALL ON" : "ALL OFF", app->include_exited);
|
tm_draw_button(app->w, app->h, 260, y + 10, 94, 28, app->include_exited != 0 ? "ALL ON" : "ALL OFF",
|
||||||
|
app->include_exited);
|
||||||
if (kill_x > 370) {
|
if (kill_x > 370) {
|
||||||
tm_draw_button(app->w, app->h, kill_x, y + 10, 104, 28, "END TASK", app->selected >= 0);
|
tm_draw_button(app->w, app->h, kill_x, y + 10, 104, 28, "END TASK", app->selected >= 0);
|
||||||
}
|
}
|
||||||
@@ -1057,4 +1058,4 @@ int cleonos_app_main(int argc, char **argv, char **envp) {
|
|||||||
(void)cleonos_sys_wm_destroy(app.window_id);
|
(void)cleonos_sys_wm_destroy(app.window_id);
|
||||||
tm_restore_tty(&app);
|
tm_restore_tty(&app);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -260,10 +260,10 @@ typedef struct cleonos_net_tcp_recv_req {
|
|||||||
#define CLEONOS_SYSCALL_WM_PRESENT 110ULL
|
#define CLEONOS_SYSCALL_WM_PRESENT 110ULL
|
||||||
#define CLEONOS_SYSCALL_WM_POLL_EVENT 111ULL
|
#define CLEONOS_SYSCALL_WM_POLL_EVENT 111ULL
|
||||||
#define CLEONOS_SYSCALL_WM_MOVE 112ULL
|
#define CLEONOS_SYSCALL_WM_MOVE 112ULL
|
||||||
#define CLEONOS_SYSCALL_WM_SET_FOCUS 113ULL
|
#define CLEONOS_SYSCALL_WM_SET_FOCUS 113ULL
|
||||||
#define CLEONOS_SYSCALL_WM_SET_FLAGS 114ULL
|
#define CLEONOS_SYSCALL_WM_SET_FLAGS 114ULL
|
||||||
#define CLEONOS_SYSCALL_WM_RESIZE 115ULL
|
#define CLEONOS_SYSCALL_WM_RESIZE 115ULL
|
||||||
#define CLEONOS_SYSCALL_PTY_OPEN 116ULL
|
#define CLEONOS_SYSCALL_PTY_OPEN 116ULL
|
||||||
|
|
||||||
u64 cleonos_syscall(u64 id, u64 arg0, u64 arg1, u64 arg2);
|
u64 cleonos_syscall(u64 id, u64 arg0, u64 arg1, u64 arg2);
|
||||||
u64 cleonos_sys_log_write(const char *message, u64 length);
|
u64 cleonos_sys_log_write(const char *message, u64 length);
|
||||||
@@ -379,9 +379,9 @@ u64 cleonos_sys_wm_destroy(u64 window_id);
|
|||||||
u64 cleonos_sys_wm_present(const cleonos_wm_present_req *req);
|
u64 cleonos_sys_wm_present(const cleonos_wm_present_req *req);
|
||||||
u64 cleonos_sys_wm_poll_event(u64 window_id, cleonos_wm_event *out_event);
|
u64 cleonos_sys_wm_poll_event(u64 window_id, cleonos_wm_event *out_event);
|
||||||
u64 cleonos_sys_wm_move(const cleonos_wm_move_req *req);
|
u64 cleonos_sys_wm_move(const cleonos_wm_move_req *req);
|
||||||
u64 cleonos_sys_wm_set_focus(u64 window_id);
|
u64 cleonos_sys_wm_set_focus(u64 window_id);
|
||||||
u64 cleonos_sys_wm_set_flags(u64 window_id, u64 flags);
|
u64 cleonos_sys_wm_set_flags(u64 window_id, u64 flags);
|
||||||
u64 cleonos_sys_wm_resize(const cleonos_wm_resize_req *req);
|
u64 cleonos_sys_wm_resize(const cleonos_wm_resize_req *req);
|
||||||
u64 cleonos_sys_pty_open(void);
|
u64 cleonos_sys_pty_open(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -492,10 +492,10 @@ u64 cleonos_sys_wm_set_flags(u64 window_id, u64 flags) {
|
|||||||
return cleonos_syscall(CLEONOS_SYSCALL_WM_SET_FLAGS, window_id, flags, 0ULL);
|
return cleonos_syscall(CLEONOS_SYSCALL_WM_SET_FLAGS, window_id, flags, 0ULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
u64 cleonos_sys_wm_resize(const cleonos_wm_resize_req *req) {
|
u64 cleonos_sys_wm_resize(const cleonos_wm_resize_req *req) {
|
||||||
return cleonos_syscall(CLEONOS_SYSCALL_WM_RESIZE, (u64)req, 0ULL, 0ULL);
|
return cleonos_syscall(CLEONOS_SYSCALL_WM_RESIZE, (u64)req, 0ULL, 0ULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
u64 cleonos_sys_pty_open(void) {
|
u64 cleonos_sys_pty_open(void) {
|
||||||
return cleonos_syscall(CLEONOS_SYSCALL_PTY_OPEN, 0ULL, 0ULL, 0ULL);
|
return cleonos_syscall(CLEONOS_SYSCALL_PTY_OPEN, 0ULL, 0ULL, 0ULL);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user