diff options
| author | Thorsten Töpper <atsutane@freethoughts.de> | 2025-06-16 20:20:20 +0200 |
|---|---|---|
| committer | Thorsten Töpper <atsutane@freethoughts.de> | 2025-06-16 20:20:20 +0200 |
| commit | be8f8a9f4caa883e3de98b276cdad55d4fc65c0d (patch) | |
| tree | 40148ab39566cfa614ca9a5e64049ff54cdd1e84 /include/options.h | |
| parent | 62e45906f1ffcaa2e3039a4306c01465c3eadfd8 (diff) | |
| download | dir_monitor-be8f8a9f4caa883e3de98b276cdad55d4fc65c0d.tar.gz dir_monitor-be8f8a9f4caa883e3de98b276cdad55d4fc65c0d.tar.bz2 | |
CMakeLists: hardening flags
Diffstat (limited to 'include/options.h')
| -rw-r--r-- | include/options.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/options.h b/include/options.h index 70f22e4..7f26f4d 100644 --- a/include/options.h +++ b/include/options.h @@ -2,9 +2,6 @@ /* Copyright 2025 Thorsten Töpper * - * dir_monitor - print specified stat() information from entries of a given - * directory to stdout. Call it via watch for repeated output to a terminal. - * * vim:ts=4:sw=4:expandtab */ @@ -19,12 +16,16 @@ /* === DEFINITIONS === */ +/* TODO: if ported to other platforms, those precompiler checks need to be extended */ +#ifndef PATH_SEP #define PATH_SEP '/' +#endif enum esort_type { SORT_BY_SIZE, SORT_BY_TIME }; /* === GLOBAL VARIABLES === */ + extern bool option_sort_reverse_order; extern enum esort_type option_sort_type; extern bool option_show_hidden_entries; @@ -37,8 +38,5 @@ void set_option(const char *option_name, char *option_argument); * containing the options in options.c */ void usage(char *executable); - - - #endif |
