diff options
| author | Egor Tensin <egor@tensin.name> | 2026-07-25 15:12:44 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-07-25 15:16:54 +0200 |
| commit | f17d7015dc4df17e75ad39786fca3e7c4207bbee (patch) | |
| tree | 1a5eaf5ccf1d2c8241c7bb8be0e1b103ce676ca3 /src | |
| parent | Merge pull request #11 from egor-tensin/dependabot/github_actions/actions/set... (diff) | |
| download | cimple-f17d7015dc4df17e75ad39786fca3e7c4207bbee.tar.gz cimple-f17d7015dc4df17e75ad39786fca3e7c4207bbee.zip | |
remove clang-format off directives
Diffstat (limited to 'src')
| -rw-r--r-- | src/ci.c | 6 | ||||
| -rw-r--r-- | src/client_main.c | 18 | ||||
| -rw-r--r-- | src/server_main.c | 18 | ||||
| -rw-r--r-- | src/worker_main.c | 18 |
4 files changed, 26 insertions, 34 deletions
@@ -17,8 +17,7 @@ #include <stddef.h> #include <stdlib.h> -/* clang-format off */ -static const char *ci_scripts[] = { +static const char* ci_scripts[] = { "./.ci.sh", "./.ci", "./ci.sh", @@ -26,12 +25,11 @@ static const char *ci_scripts[] = { NULL, }; -static const char *ci_env[] = { +static const char* ci_env[] = { "CI=y", "CIMPLE=y", NULL, }; -/* clang-format on */ static int ci_run_script(const char* script, struct process_output* result) { const char* args[] = {script, NULL}; diff --git a/src/client_main.c b/src/client_main.c index 6419157..87161b4 100644 --- a/src/client_main.c +++ b/src/client_main.c @@ -33,16 +33,14 @@ static int parse_settings(struct settings* settings, int argc, char* argv[]) { *settings = default_settings(); - /* clang-format off */ - static struct option long_options[] = { - {"help", no_argument, 0, 'h'}, - {"version", no_argument, 0, 'V'}, - {"verbose", no_argument, 0, 'v'}, - {"host", required_argument, 0, 'H'}, - {"port", required_argument, 0, 'p'}, - {0, 0, 0, 0}, - }; - /* clang-format on */ + static struct option long_options[] = { + {"help", no_argument, 0, 'h'}, + {"version", no_argument, 0, 'V'}, + {"verbose", no_argument, 0, 'v'}, + {"host", required_argument, 0, 'H'}, + {"port", required_argument, 0, 'p'}, + {0, 0, 0, 0}, + }; while ((opt = getopt_long(argc, argv, "hVvH:p:", long_options, &longind)) != -1) { switch (opt) { diff --git a/src/server_main.c b/src/server_main.c index 14bc3f5..b4c2491 100644 --- a/src/server_main.c +++ b/src/server_main.c @@ -30,16 +30,14 @@ static int parse_settings(struct settings* settings, int argc, char* argv[]) { *settings = default_settings(); - /* clang-format off */ - static struct option long_options[] = { - {"help", no_argument, 0, 'h'}, - {"version", no_argument, 0, 'V'}, - {"verbose", no_argument, 0, 'v'}, - {"port", required_argument, 0, 'p'}, - {"sqlite", required_argument, 0, 's'}, - {0, 0, 0, 0}, - }; - /* clang-format on */ + static struct option long_options[] = { + {"help", no_argument, 0, 'h'}, + {"version", no_argument, 0, 'V'}, + {"verbose", no_argument, 0, 'v'}, + {"port", required_argument, 0, 'p'}, + {"sqlite", required_argument, 0, 's'}, + {0, 0, 0, 0}, + }; while ((opt = getopt_long(argc, argv, "hVvp:s:", long_options, &longind)) != -1) { switch (opt) { diff --git a/src/worker_main.c b/src/worker_main.c index 7d076c7..6562b7f 100644 --- a/src/worker_main.c +++ b/src/worker_main.c @@ -30,16 +30,14 @@ static int parse_settings(struct settings* settings, int argc, char* argv[]) { *settings = default_settings(); - /* clang-format off */ - static struct option long_options[] = { - {"help", no_argument, 0, 'h'}, - {"version", no_argument, 0, 'V'}, - {"verbose", no_argument, 0, 'v'}, - {"host", required_argument, 0, 'H'}, - {"port", required_argument, 0, 'p'}, - {0, 0, 0, 0}, - }; - /* clang-format on */ + static struct option long_options[] = { + {"help", no_argument, 0, 'h'}, + {"version", no_argument, 0, 'V'}, + {"verbose", no_argument, 0, 'v'}, + {"host", required_argument, 0, 'H'}, + {"port", required_argument, 0, 'p'}, + {0, 0, 0, 0}, + }; while ((opt = getopt_long(argc, argv, "hVvH:p:", long_options, &longind)) != -1) { switch (opt) { |
