mirror of
https://github.com/Leonmmcoset/cleonos.git
synced 2026-04-24 19:34:01 +00:00
style: auto-format C/C++ sources with clang-format
This commit is contained in:
committed by
github-actions[bot]
parent
14b86d50bd
commit
42159d1af8
@@ -9,33 +9,33 @@
|
||||
|
||||
typedef long long i64;
|
||||
|
||||
#define USH_CMD_MAX 32ULL
|
||||
#define USH_ARG_MAX 160ULL
|
||||
#define USH_LINE_MAX 192ULL
|
||||
#define USH_PATH_MAX 192ULL
|
||||
#define USH_CAT_MAX 512ULL
|
||||
#define USH_SCRIPT_MAX 1024ULL
|
||||
#define USH_CLEAR_LINES 56ULL
|
||||
#define USH_HISTORY_MAX 16ULL
|
||||
#define USH_CMD_MAX 32ULL
|
||||
#define USH_ARG_MAX 160ULL
|
||||
#define USH_LINE_MAX 192ULL
|
||||
#define USH_PATH_MAX 192ULL
|
||||
#define USH_CAT_MAX 512ULL
|
||||
#define USH_SCRIPT_MAX 1024ULL
|
||||
#define USH_CLEAR_LINES 56ULL
|
||||
#define USH_HISTORY_MAX 16ULL
|
||||
|
||||
#define USH_KEY_LEFT ((char)0x01)
|
||||
#define USH_KEY_RIGHT ((char)0x02)
|
||||
#define USH_KEY_UP ((char)0x03)
|
||||
#define USH_KEY_DOWN ((char)0x04)
|
||||
#define USH_KEY_HOME ((char)0x05)
|
||||
#define USH_KEY_END ((char)0x06)
|
||||
#define USH_KEY_DELETE ((char)0x07)
|
||||
#define USH_KEY_LEFT ((char)0x01)
|
||||
#define USH_KEY_RIGHT ((char)0x02)
|
||||
#define USH_KEY_UP ((char)0x03)
|
||||
#define USH_KEY_DOWN ((char)0x04)
|
||||
#define USH_KEY_HOME ((char)0x05)
|
||||
#define USH_KEY_END ((char)0x06)
|
||||
#define USH_KEY_DELETE ((char)0x07)
|
||||
#define USH_KEY_SELECT_ALL ((char)0x10)
|
||||
#define USH_KEY_COPY ((char)0x11)
|
||||
#define USH_KEY_PASTE ((char)0x12)
|
||||
#define USH_KEY_COPY ((char)0x11)
|
||||
#define USH_KEY_PASTE ((char)0x12)
|
||||
#define USH_KEY_SHIFT_LEFT ((char)0x13)
|
||||
#define USH_KEY_SHIFT_RIGHT ((char)0x14)
|
||||
#define USH_KEY_SHIFT_HOME ((char)0x15)
|
||||
#define USH_KEY_SHIFT_END ((char)0x16)
|
||||
#define USH_KEY_SHIFT_END ((char)0x16)
|
||||
|
||||
#define USH_CMD_CTX_PATH "/temp/.ush_cmd_ctx.bin"
|
||||
#define USH_CMD_RET_PATH "/temp/.ush_cmd_ret.bin"
|
||||
#define USH_CMD_RET_FLAG_CWD 0x1ULL
|
||||
#define USH_CMD_RET_FLAG_CWD 0x1ULL
|
||||
#define USH_CMD_RET_FLAG_EXIT 0x2ULL
|
||||
|
||||
typedef struct ush_state {
|
||||
@@ -112,13 +112,7 @@ void ush_command_ret_reset(void);
|
||||
int ush_command_ret_write(const ush_cmd_ret *ret);
|
||||
int ush_command_ret_read(ush_cmd_ret *out_ret);
|
||||
int ush_try_exec_external(ush_state *sh, const char *cmd, const char *arg, int *out_success);
|
||||
int ush_try_exec_external_with_fds(ush_state *sh,
|
||||
const char *cmd,
|
||||
const char *arg,
|
||||
u64 stdin_fd,
|
||||
u64 stdout_fd,
|
||||
u64 stderr_fd,
|
||||
int *out_success);
|
||||
int ush_try_exec_external_with_fds(ush_state *sh, const char *cmd, const char *arg, u64 stdin_fd, u64 stdout_fd,
|
||||
u64 stderr_fd, int *out_success);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user