summaryrefslogtreecommitdiff
path: root/std_printers.c
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-06-02 21:46:07 +1000
committerquou <quou@disroot.org>2024-06-02 21:47:26 +1000
commit62b4a3ededd237f4b4850d91c052585e2f687499 (patch)
tree25bf590a634c6c71f399cf9b1d620500f06b8b9f /std_printers.c
parent2e761bdb8badecdbda2925a056a6d5aa3e3cac83 (diff)
Switched to luigi, parsing out FLAC metadata.
Diffstat (limited to 'std_printers.c')
-rw-r--r--std_printers.c56
1 files changed, 0 insertions, 56 deletions
diff --git a/std_printers.c b/std_printers.c
deleted file mode 100644
index abb111a..0000000
--- a/std_printers.c
+++ /dev/null
@@ -1,56 +0,0 @@
-#include <stdarg.h>
-#include <stdio.h>
-#include <unistd.h>
-
-extern int fileno(FILE*);
-
-void print(const char* fmt, ...) {
- va_list args;
- va_start(args, fmt);
- vfprintf(stdout, fmt, args);
- va_end(args);
-}
-
-void print_err(const char* fmt, ...) {
- va_list args;
- va_start(args, fmt);
-
- if (isatty(fileno(stderr))) {
- fprintf(stderr, "\033[31;31m");
- }
-
- vfprintf(stderr, fmt, args);
-
- if (isatty(fileno(stderr))) {
- fprintf(stderr, "\033[0m");
- }
-
- va_end(args);
-}
-
-void print_war(const char* fmt, ...) {
- va_list args;
- va_start(args, fmt);
-
- if (isatty(fileno(stderr))) {
- fprintf(stderr, "\033[31;35m");
- }
-
- vfprintf(stderr, fmt, args);
-
- if (isatty(fileno(stderr))) {
- fprintf(stderr, "\033[0m");
- }
-
- va_end(args);
-}
-
-void pbreak(Error code) {
-#if defined(DEBUG) && defined(plat_x86)
- __asm__("int3;");
- (void)code;
-#else
- exit(code);
-#endif
-}
-