From d513977a3566b14d9357906615d045d71741537f Mon Sep 17 00:00:00 2001 From: Thorsten Töpper Date: Wed, 18 Feb 2026 21:51:53 +0100 Subject: squash initial implementation --- include/options.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 include/options.h (limited to 'include/options.h') diff --git a/include/options.h b/include/options.h new file mode 100644 index 0000000..5a7747e --- /dev/null +++ b/include/options.h @@ -0,0 +1,31 @@ +/* SPDX-License-Identifier: Apache-2.0 */ + +/* Copyright 2026 Thorsten Töpper + * + * vim:ts=4:sw=4:expandtab + */ + +#ifndef OPTIONS_H +#define OPTIONS_H + +#include + +/* === DEFINITIONS === */ +/* TODO: if ported to other platforms, those precompiler checks need to be extended */ +#ifndef PATH_SEP +#define PATH_SEP '/' +#endif + + +/* === GLOBAL VARIABLES === */ + +extern bool option_quiet; +extern bool option_show_hidden_entries; + + +int parse_arguments(int argc, char **argv); +void set_option(const char *option_name, char *option_argument); +void usage(char *executable); + +#endif + -- cgit v1.3