|
#define | NOBDEF |
#define | NOB_ASSERT assert |
#define | NOB_REALLOC realloc |
#define | NOB_FREE free |
#define | NOB_LINE_END "\n" |
#define | NOB_PRINTF_FORMAT(STRING_INDEX, FIRST_TO_CHECK) |
#define | NOB_UNUSED(value) |
#define | NOB_TODO(message) |
#define | NOB_UNREACHABLE(message) |
#define | NOB_ARRAY_LEN(array) |
#define | NOB_ARRAY_GET(array, index) |
#define | nob_shift(xs, xs_sz) |
#define | nob_shift_args(argc, argv) |
#define | nob_return_defer(value) |
#define | NOB_DA_INIT_CAP 256 |
#define | nob_da_reserve(da, expected_capacity) |
#define | nob_da_append(da, item) |
#define | nob_da_free(da) |
#define | nob_da_append_many(da, new_items, new_items_count) |
#define | nob_da_resize(da, new_size) |
#define | nob_da_last(da) |
#define | nob_da_remove_unordered(da, i) |
#define | nob_da_foreach(Type, it, da) |
#define | nob_sb_append_buf(sb, buf, size) |
#define | nob_sb_append_cstr(sb, cstr) |
#define | nob_sb_append_null(sb) |
#define | nob_sb_free(sb) |
#define | NOB_INVALID_PROC (-1) |
#define | NOB_INVALID_FD (-1) |
#define | nob_cmd_append(cmd, ...) |
#define | nob_cmd_extend(cmd, other_cmd) |
#define | nob_cmd_free(cmd) |
#define | nob_cmd_run_async(cmd) |
#define | NOB_TEMP_CAPACITY (8*1024*1024) |
#define | nob_cc(cmd) |
#define | nob_cc_flags(cmd) |
#define | nob_cc_output(cmd, output_path) |
#define | nob_cc_inputs(cmd, ...) |
#define | NOB_REBUILD_URSELF(binary_path, source_path) |
#define | NOB_GO_REBUILD_URSELF(argc, argv) |
#define | NOB_GO_REBUILD_URSELF_PLUS(argc, argv, ...) |
#define | nob_sb_to_sv(sb) |
#define | SV_Fmt "%.*s" |
#define | SV_Arg(sv) |
#define | NOB_STRIP_PREFIX_GUARD_ |
|
NOBDEF void | nob_log (Nob_Log_Level level, const char *fmt,...) NOB_PRINTF_FORMAT(2 |
NOBDEF bool | nob_mkdir_if_not_exists (const char *path) |
NOBDEF bool | nob_copy_file (const char *src_path, const char *dst_path) |
NOBDEF bool | nob_copy_directory_recursively (const char *src_path, const char *dst_path) |
NOBDEF bool | nob_read_entire_dir (const char *parent, Nob_File_Paths *children) |
NOBDEF bool | nob_write_entire_file (const char *path, const void *data, size_t size) |
NOBDEF Nob_File_Type | nob_get_file_type (const char *path) |
NOBDEF bool | nob_delete_file (const char *path) |
NOBDEF bool | nob_read_entire_file (const char *path, Nob_String_Builder *sb) |
NOBDEF int | nob_sb_appendf (Nob_String_Builder *sb, const char *fmt,...) NOB_PRINTF_FORMAT(2 |
NOBDEF Nob_Fd | nob_fd_open_for_read (const char *path) |
NOBDEF Nob_Fd | nob_fd_open_for_write (const char *path) |
NOBDEF void | nob_fd_close (Nob_Fd fd) |
NOBDEF bool | nob_proc_wait (Nob_Proc proc) |
NOBDEF bool | nob_procs_wait (Nob_Procs procs) |
NOBDEF bool | nob_procs_wait_and_reset (Nob_Procs *procs) |
NOBDEF bool | nob_procs_append_with_flush (Nob_Procs *procs, Nob_Proc proc, size_t max_procs_count) |
NOBDEF void | nob_cmd_render (Nob_Cmd cmd, Nob_String_Builder *render) |
NOBDEF Nob_Proc | nob_cmd_run_async_and_reset (Nob_Cmd *cmd) |
NOBDEF Nob_Proc | nob_cmd_run_async_redirect (Nob_Cmd cmd, Nob_Cmd_Redirect redirect) |
NOBDEF Nob_Proc | nob_cmd_run_async_redirect_and_reset (Nob_Cmd *cmd, Nob_Cmd_Redirect redirect) |
NOBDEF bool | nob_cmd_run_sync (Nob_Cmd cmd) |
NOBDEF bool | nob_cmd_run_sync_and_reset (Nob_Cmd *cmd) |
NOBDEF bool | nob_cmd_run_sync_redirect (Nob_Cmd cmd, Nob_Cmd_Redirect redirect) |
NOBDEF bool | nob_cmd_run_sync_redirect_and_reset (Nob_Cmd *cmd, Nob_Cmd_Redirect redirect) |
NOBDEF char * | nob_temp_strdup (const char *cstr) |
NOBDEF void * | nob_temp_alloc (size_t size) |
NOBDEF char * | nob_temp_sprintf (const char *format,...) NOB_PRINTF_FORMAT(1 |
NOBDEF char NOBDEF void | nob_temp_reset (void) |
NOBDEF size_t | nob_temp_save (void) |
NOBDEF void | nob_temp_rewind (size_t checkpoint) |
NOBDEF const char * | nob_path_name (const char *path) |
NOBDEF bool | nob_rename (const char *old_path, const char *new_path) |
NOBDEF int | nob_needs_rebuild (const char *output_path, const char **input_paths, size_t input_paths_count) |
NOBDEF int | nob_needs_rebuild1 (const char *output_path, const char *input_path) |
NOBDEF int | nob_file_exists (const char *file_path) |
NOBDEF const char * | nob_get_current_dir_temp (void) |
NOBDEF bool | nob_set_current_dir (const char *path) |
NOBDEF void | nob__go_rebuild_urself (int argc, char **argv, const char *source_path,...) |
NOBDEF const char * | nob_temp_sv_to_cstr (Nob_String_View sv) |
NOBDEF Nob_String_View | nob_sv_chop_by_delim (Nob_String_View *sv, char delim) |
NOBDEF Nob_String_View | nob_sv_chop_left (Nob_String_View *sv, size_t n) |
NOBDEF Nob_String_View | nob_sv_trim (Nob_String_View sv) |
NOBDEF Nob_String_View | nob_sv_trim_left (Nob_String_View sv) |
NOBDEF Nob_String_View | nob_sv_trim_right (Nob_String_View sv) |
NOBDEF bool | nob_sv_eq (Nob_String_View a, Nob_String_View b) |
NOBDEF bool | nob_sv_end_with (Nob_String_View sv, const char *cstr) |
NOBDEF bool | nob_sv_starts_with (Nob_String_View sv, Nob_String_View expected_prefix) |
NOBDEF Nob_String_View | nob_sv_from_cstr (const char *cstr) |
NOBDEF Nob_String_View | nob_sv_from_parts (const char *data, size_t count) |