yait

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 0ef8ca973cfaa0ac00aabe9325ffb6459eb81ced
parent c48809aea91c738f96bfd3eb68d012c409ad70c3
Author: vx-clutch <[email protected]>
Date:   Sun,  3 Aug 2025 20:43:36 -0400

save

Diffstat:
Dc-out/bin/yait | 0
Dc-out/obj/main.o | 0
Dconfig.mak | 4----
Mcore/file.h | 18------------------
Mcore/print.c | 2+-
Mcore/print.h | 11+----------
Mcore/standard.c | 8--------
Mcore/standard.h | 15---------------
Myait/main.c | 1-
9 files changed, 2 insertions(+), 57 deletions(-)

diff --git a/c-out/bin/yait b/c-out/bin/yait Binary files differ. diff --git a/c-out/obj/main.o b/c-out/obj/main.o Binary files differ. diff --git a/config.mak b/config.mak @@ -1,4 +0,0 @@ -PREFIX=/usr/bin/ -CFLAGS=-Wall -Wextra -ggdb -LDFLAGS= -CC=clang diff --git a/core/file.h b/core/file.h @@ -15,28 +15,10 @@ #define DEFAULT_DIR_PERMISSIONS 0755 #define MAX_PATH_LENGTH 1024 -/** - * Create directory and change into it - * @param dirname Directory name to create and enter - * @return 0 on success, errno on failure - */ int create_and_enter_directory (const char *dirname); -/** - * Create a file with formatted content - * @param path File path to create - * @param format Format string for file content - * @param ... Variable arguments for formatting - * @return 0 on success, -1 on failure - */ int create_file_with_content (char *path, char *format, ...); -/** - * Create a directory with formatted path - * @param format Format string for directory path - * @param ... Variable arguments for formatting - * @return 0 on success, errno on failure - */ int create_directory (char *format, ...); #endif diff --git a/core/print.c b/core/print.c @@ -11,7 +11,7 @@ #include <stdio.h> int -print_error_with_prefix (char *format, ...) +printfn (char *format, ...) { int len; va_list args; diff --git a/core/print.h b/core/print.h @@ -12,15 +12,6 @@ #include <stdarg.h> #include <stdio.h> -/** - * Print a formatted message to stderr with program prefix and newline - * @param format Format string (printf-style) - * @param ... Variable arguments for formatting - * @return Number of characters printed - */ -int print_error_with_prefix (char *format, ...); - -/* Legacy function name for backward compatibility */ -#define printfn print_error_with_prefix +int printfn (char *format, ...); #endif diff --git a/core/standard.c b/core/standard.c @@ -38,11 +38,3 @@ parse_standard_options (void (*usage) (int), int argc, char **argv) } return HELP_REQUESTED; } - -int -initialize_main (int *argc, char ***argv) -{ - (*argc)--; - (*argv)++; - return 0; -} diff --git a/core/standard.h b/core/standard.h @@ -9,21 +9,6 @@ #ifndef STANDARD_H #define STANDARD_H -/** - * Parse standard command line options (--help, --version) - * @param usage_func Function pointer to usage display function - * @param argc Argument count - * @param argv Argument vector - * @return 0 on success, 1 if help/version requested, errno on error - */ int parse_standard_options (void (*usage_func) (), int argc, char **argv); -/** - * Setup the program - * @param argc Argument count - * @param argv Argument vector - * @return 0 on success, 1 if something fails - */ -int initialize_main (int *, char ***); - #endif diff --git a/yait/main.c b/yait/main.c @@ -385,7 +385,6 @@ main (int argc, char **argv) return 1; } - status = initialize_main (&argc, &argv); status = parse_standard_options (usage, argc, argv); if (status && status != HELP_REQUESTED)