diff --git a/c-out/bin/yait b/c-out/bin/yait deleted file mode 100755 index 45bcda4..0000000 Binary files a/c-out/bin/yait and /dev/null differ diff --git a/c-out/obj/main.o b/c-out/obj/main.o deleted file mode 100644 index 8523098..0000000 Binary files a/c-out/obj/main.o and /dev/null differ diff --git a/config.mak b/config.mak deleted file mode 100644 index fcef174..0000000 --- a/config.mak +++ /dev/null @@ -1,4 +0,0 @@ -PREFIX=/usr/bin/ -CFLAGS=-Wall -Wextra -ggdb -LDFLAGS= -CC=clang diff --git a/core/file.h b/core/file.h index 8dc95d9..e34655a 100644 --- 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 index ede816d..593e23a 100644 --- a/core/print.c +++ b/core/print.c @@ -11,7 +11,7 @@ #include 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 index facda00..81e990b 100644 --- a/core/print.h +++ b/core/print.h @@ -12,15 +12,6 @@ #include #include -/** - * 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 index 970bafa..3ecf863 100644 --- 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 index 5e5450c..5a76539 100644 --- 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 index f310ab3..0b0c15f 100644 --- 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)