diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2026-04-24 18:12:37 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2026-04-24 18:12:37 -0400 |
| commit | 8b222c9e59a41220ef69d2244544c13ca7f88c60 (patch) | |
| tree | 5e95cfd3b454f7c9b0dbfcca4afe9b9899266158 /spreed.c | |
| parent | a4f4ee9420857e385c6aca00526ae881afcca640 (diff) | |
Diffstat (limited to 'spreed.c')
| -rw-r--r--[-rwxr-xr-x] | spreed.c | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -1,9 +1,5 @@ -#if 0 -${CC:-gcc} -s -O2 -std=c99 -Wall -o ${SPREED_INSTALL_DIR:-.}/spreed spreed.c -exit -#endif -#define _POSIX_C_SOURCE 200809L +#include "config.h" #include <locale.h> // setlocale #include <stdio.h> // getchar, stdin/out/err @@ -13,10 +9,6 @@ exit #include <wchar.h> // fwide, mbrtowc, putwchar #include <wctype.h> // iswprint, iswspace, iswalnum -#define SPRD_VER L"0.1" -#define CLR_FG L"\033[31m" -#define CLR_RESET L"\033[0m" -#define SPRD_CLOCK CLOCK_MONOTONIC #define MS_PER_MIN (60ll * 1000000000ll) #define SPRD_CLOCK_DIFF(t1, t2) ((((long int)t1.tv_sec * 1000000000ll) + (long int)t1.tv_nsec) - (((long int)t2.tv_sec * 1000000000ll) + (long int)t2.tv_nsec)) @@ -53,7 +45,7 @@ int main(int argc, char *argv[]) if (argc > 1) { if (strstr(argv[1], "-v") || strstr(argv[1], "--v") || strstr(argv[1], "-V") || strstr(argv[1], "--V")) { - c = fputws(L"spreed version " SPRD_VER L"\n", stdout); + c = fputws(L"spreed version " LVERSION L"\n", stdout); if (c == EOF) { perror("fputws()"); } |
