a998f6b981
Release / release (push) Successful in 8s
## Summary Standardize naming conventions across the entire wizapp-stdlib codebase by replacing inconsistent prefixes and snake_case with a unified `wp` prefix + CamelCase scheme. ## Changes ### Naming convention applied | Pattern | Before | After | |---|---|---| | Public functions | `wapp_module_function` | `wpModuleFunction` | | Public types | `GenericXxx`, bare `Xxx` | `WpXxx` | | Constants / enum values | `WAPP_XXX`, `SHELL_XXX` | `WP_XXX`, `WP_SHELL_XXX` | | Internal functions | `_module_function` | `_moduleFunction` | | Storage-class macros | `wapp_extern`, `wapp_intern` | `wp_extern`, `wp_intern` | ### Modules affected All 20 modules were renamed: `arena`, `array`, `dbl_list`, `queue`, `str8`, `mem_allocator`, `mem_utils`, `mem_os`, `file`, `cpath`, `log`, `shell_commander`, `shell_termcolour`, `shell_utils`, `prng/xorshift`, `uuid`, `tester`, `aliases`, `assert`, `misc_utils`, `platform` — plus their test files. ### Backward compatibility Added `src/oldnames.h` with `#define OLD_NAME NEW_NAME` for every renamed symbol, organized by module under Constants → Types → Functions sections. Existing code that includes this file will compile without changes. Reviewed-on: #12 Co-authored-by: Abdelrahman <said.abdelrahman89@gmail.com> Co-committed-by: Abdelrahman <said.abdelrahman89@gmail.com>
43 lines
902 B
C
43 lines
902 B
C
// vim:fileencoding=utf-8:foldmethod=marker
|
|
|
|
#ifndef COMMANDER_OUTPUT_H
|
|
#define COMMANDER_OUTPUT_H
|
|
|
|
#include "../../../common/aliases/aliases.h"
|
|
#include "../../../common/platform/platform.h"
|
|
#include "../../../common/misc/misc_utils.h"
|
|
|
|
#ifdef WP_PLATFORM_CPP
|
|
BEGIN_C_LINKAGE
|
|
#endif // !WP_PLATFORM_CPP
|
|
|
|
typedef enum {
|
|
WP_SHELL_OUTPUT_DISCARD,
|
|
WP_SHELL_OUTPUT_PRINT,
|
|
WP_SHELL_OUTPUT_CAPTURE,
|
|
} WpCmdOutHandling;
|
|
|
|
typedef enum {
|
|
WP_SHELL_ERR_NO_ERROR,
|
|
WP_SHELL_ERR_INVALID_ARGS,
|
|
WP_SHELL_ERR_ALLOCATION_FAIL,
|
|
WP_SHELL_ERR_PROC_START_FAIL,
|
|
WP_SHELL_ERR_OUT_BUF_FULL,
|
|
WP_SHELL_ERR_PROC_EXIT_FAIL,
|
|
} WpCmdError;
|
|
|
|
typedef struct WpCmdResult WpCmdResult;
|
|
struct WpCmdResult {
|
|
i32 exit_code;
|
|
WpCmdError error;
|
|
b8 exited;
|
|
|
|
wpMiscUtilsReservePadding(sizeof(b8) + sizeof(i32) + sizeof(WpCmdError));
|
|
};
|
|
|
|
#ifdef WP_PLATFORM_CPP
|
|
END_C_LINKAGE
|
|
#endif // !WP_PLATFORM_CPP
|
|
|
|
#endif // !COMMANDER_OUTPUT_H
|