From 72f5b6487cb4ebc7674ea404a613fa3b64794e71 Mon Sep 17 00:00:00 2001 From: Thomas Jensen Date: Sun, 22 Sep 2024 14:34:55 +0200 Subject: [PATCH] Remove remaining EOF comments from source files --- Makefile | 3 --- boxes-config | 2 +- boxes.vim | 2 +- src/Makefile | 3 --- src/boxes.c | 2 +- src/cmdline.c | 2 +- src/cmdline.h | 2 +- src/config.h | 3 --- src/discovery.c | 2 +- src/discovery.h | 2 +- src/generate.h | 2 +- src/input.h | 2 +- src/lexer.l | 2 +- src/list.c | 2 +- src/list.h | 2 +- src/parsecode.h | 2 +- src/parser.y | 2 +- src/parsing.h | 2 +- src/query.c | 2 +- src/query.h | 2 +- src/regulex.h | 2 +- src/shape.h | 2 +- test/123_data/.config/boxes/boxes-config | 2 +- test/test-config-unused.cfg | 2 +- test/testrunner.sh | 2 -- utest/cmdline_test.c | 2 +- utest/cmdline_test.h | 2 +- utest/global_mock.c | 2 +- utest/global_mock.h | 2 +- utest/main.c | 2 +- utest/regulex_test.c | 2 +- utest/regulex_test.h | 2 +- utest/utest_tools.h | 2 +- 33 files changed, 29 insertions(+), 40 deletions(-) diff --git a/Makefile b/Makefile index 5eb96eee..d1e38b13 100644 --- a/Makefile +++ b/Makefile @@ -251,6 +251,3 @@ clean: cleanall: clean rm -rf vendor - - -#EOF diff --git a/boxes-config b/boxes-config index b9aa4368..e7784bca 100644 --- a/boxes-config +++ b/boxes-config @@ -3541,4 +3541,4 @@ END dragon # ============================================================================ -#EOF vim: set ai sw=4 expandtab syn=boxes: +# vim: set ai sw=4 expandtab syn=boxes: diff --git a/boxes.vim b/boxes.vim index daf2faf8..deb3bc41 100644 --- a/boxes.vim +++ b/boxes.vim @@ -225,4 +225,4 @@ let b:current_syntax = "boxes" -"EOF vim: sw=4 nowrap: +" vim: sw=4 nowrap: diff --git a/src/Makefile b/src/Makefile index 62dd390b..59c432e6 100644 --- a/src/Makefile +++ b/src/Makefile @@ -136,6 +136,3 @@ package: $(BOXES_EXECUTABLE_NAME) clean: rm -rf $(OUT_DIR) rm -f core - - -#EOF diff --git a/src/boxes.c b/src/boxes.c index 13d7867e..7125fdf8 100644 --- a/src/boxes.c +++ b/src/boxes.c @@ -539,4 +539,4 @@ int main(int argc, char *argv[]) return EXIT_SUCCESS; } -/*EOF*/ /* vim: set sw=4: */ +/* vim: set sw=4: */ diff --git a/src/cmdline.c b/src/cmdline.c index 4085b2f4..d2656d07 100644 --- a/src/cmdline.c +++ b/src/cmdline.c @@ -909,4 +909,4 @@ opt_t *process_commandline(int argc, char *argv[]) } -/*EOF*/ /* vim: set sw=4: */ +/* vim: set sw=4: */ diff --git a/src/cmdline.h b/src/cmdline.h index 4edd549f..7da461e0 100644 --- a/src/cmdline.h +++ b/src/cmdline.h @@ -53,4 +53,4 @@ opt_t *process_commandline(int argc, char *argv[]); #endif -/*EOF*/ /* vim: set cindent sw=4: */ +/* vim: set cindent sw=4: */ diff --git a/src/config.h b/src/config.h index fd8979fd..ce1c41f7 100644 --- a/src/config.h +++ b/src/config.h @@ -55,6 +55,3 @@ #endif /*CONFIG_H*/ - - -/*EOF*/ diff --git a/src/discovery.c b/src/discovery.c index 015c2cb0..e92e5dd9 100644 --- a/src/discovery.c +++ b/src/discovery.c @@ -311,4 +311,4 @@ bxstr_t *discover_config_file(const int global_only) } -/*EOF*/ /* vim: set cindent sw=4: */ +/* vim: set cindent sw=4: */ diff --git a/src/discovery.h b/src/discovery.h index 36f66895..bd334345 100644 --- a/src/discovery.h +++ b/src/discovery.h @@ -28,4 +28,4 @@ bxstr_t *discover_config_file(const int global_only); #endif /* BOXES_DISCOVERY_H */ -/*EOF*/ /* vim: set cindent sw=4: */ +/* vim: set cindent sw=4: */ diff --git a/src/generate.h b/src/generate.h index ed1ef2a2..d3dec430 100644 --- a/src/generate.h +++ b/src/generate.h @@ -28,4 +28,4 @@ int output_box(const sentry_t *thebox); #endif /*GENERATE_H*/ -/*EOF*/ /* vim: set cindent sw=4: */ +/* vim: set cindent sw=4: */ diff --git a/src/input.h b/src/input.h index cc59b057..2089a2d8 100644 --- a/src/input.h +++ b/src/input.h @@ -51,4 +51,4 @@ int apply_substitutions(input_t *input_data, const int mode); #endif -/*EOF*/ /* vim: set cindent sw=4: */ +/* vim: set cindent sw=4: */ diff --git a/src/lexer.l b/src/lexer.l index 360b5085..e8f14f17 100644 --- a/src/lexer.l +++ b/src/lexer.l @@ -514,4 +514,4 @@ static int change_string_delimiters(pass_to_flex *extra, char *delim_expr) } -/*EOF*/ /* vim: set cindent sw=4: */ +/* vim: set cindent sw=4: */ diff --git a/src/list.c b/src/list.c index 0dbe523d..70360c55 100644 --- a/src/list.c +++ b/src/list.c @@ -400,4 +400,4 @@ int list_designs() } -/*EOF*/ /* vim: set sw=4: */ +/* vim: set sw=4: */ diff --git a/src/list.h b/src/list.h index 6a7824b6..35f5146a 100644 --- a/src/list.h +++ b/src/list.h @@ -40,4 +40,4 @@ int list_designs(); #endif -/*EOF*/ /* vim: set cindent sw=4: */ +/* vim: set cindent sw=4: */ diff --git a/src/parsecode.h b/src/parsecode.h index 48044ad1..a1e72bc4 100644 --- a/src/parsecode.h +++ b/src/parsecode.h @@ -195,4 +195,4 @@ int action_add_shape_line(pass_to_bison *bison_args, sentry_t *shape, bxstr_t *l #endif -/*EOF*/ /* vim: set cindent sw=4: */ +/* vim: set cindent sw=4: */ diff --git a/src/parser.y b/src/parser.y index 6e3ec5ad..7c540186 100644 --- a/src/parser.y +++ b/src/parser.y @@ -418,4 +418,4 @@ wlist_entry: ASCII_ID YNUMBER %% -/*EOF*/ /* vim: set sw=4 cindent: */ +/* vim: set sw=4 cindent: */ diff --git a/src/parsing.h b/src/parsing.h index 71e4c4b7..bf3327de 100644 --- a/src/parsing.h +++ b/src/parsing.h @@ -51,4 +51,4 @@ design_t *parse_config_files(bxstr_t *first_config_file, size_t *r_num_designs); #endif -/*EOF*/ /* vim: set cindent sw=4: */ +/* vim: set cindent sw=4: */ diff --git a/src/query.c b/src/query.c index 772425c6..22938062 100644 --- a/src/query.c +++ b/src/query.c @@ -172,4 +172,4 @@ int query_by_tag() } -/*EOF*/ /* vim: set sw=4: */ +/* vim: set sw=4: */ diff --git a/src/query.h b/src/query.h index b419a039..52522d23 100644 --- a/src/query.h +++ b/src/query.h @@ -38,4 +38,4 @@ int query_by_tag(); #endif -/*EOF*/ /* vim: set cindent sw=4: */ +/* vim: set cindent sw=4: */ diff --git a/src/regulex.h b/src/regulex.h index 96c0f942..3377a5fe 100644 --- a/src/regulex.h +++ b/src/regulex.h @@ -102,4 +102,4 @@ uint32_t *u32_regex_replace(pcre2_code *search, uint32_t *replace, uint32_t *inp #endif -/*EOF*/ /* vim: set cindent sw=4: */ +/* vim: set cindent sw=4: */ diff --git a/src/shape.h b/src/shape.h index 05d0364b..12627dd0 100644 --- a/src/shape.h +++ b/src/shape.h @@ -76,4 +76,4 @@ void debug_print_shape(sentry_t *shape); #endif /*SHAPE_H*/ -/*EOF*/ /* vim: set cindent sw=4: */ +/* vim: set cindent sw=4: */ diff --git a/test/123_data/.config/boxes/boxes-config b/test/123_data/.config/boxes/boxes-config index f6d8dbc3..59ce6da5 100644 --- a/test/123_data/.config/boxes/boxes-config +++ b/test/123_data/.config/boxes/boxes-config @@ -24,4 +24,4 @@ elastic (n,s,e, w) END test1 -#EOF vim: set ai sw=4: +# vim: set ai sw=4: diff --git a/test/test-config-unused.cfg b/test/test-config-unused.cfg index 37f6d3da..92c78578 100644 --- a/test/test-config-unused.cfg +++ b/test/test-config-unused.cfg @@ -81,4 +81,4 @@ END retest # ============================================================================ -#EOF vim: set ai sw=4: +# vim: set ai sw=4: diff --git a/test/testrunner.sh b/test/testrunner.sh index a8104956..b2750ef4 100755 --- a/test/testrunner.sh +++ b/test/testrunner.sh @@ -331,5 +331,3 @@ rm "${testOutputFile}" echo " OK" exit 0 - -#EOF diff --git a/utest/cmdline_test.c b/utest/cmdline_test.c index f3f273e6..14a3f867 100644 --- a/utest/cmdline_test.c +++ b/utest/cmdline_test.c @@ -478,4 +478,4 @@ void test_version_requested(void **state) } -/*EOF*/ /* vim: set cindent sw=4: */ +/* vim: set cindent sw=4: */ diff --git a/utest/cmdline_test.h b/utest/cmdline_test.h index b71e84d4..1ff0e7fa 100644 --- a/utest/cmdline_test.h +++ b/utest/cmdline_test.h @@ -67,4 +67,4 @@ void test_version_requested(void **state); #endif -/*EOF*/ /* vim: set cindent sw=4: */ +/* vim: set cindent sw=4: */ diff --git a/utest/global_mock.c b/utest/global_mock.c index f4a2a9af..05a858c2 100644 --- a/utest/global_mock.c +++ b/utest/global_mock.c @@ -111,4 +111,4 @@ void teardown() } -/*EOF*/ /* vim: set cindent sw=4: */ +/* vim: set cindent sw=4: */ diff --git a/utest/global_mock.h b/utest/global_mock.h index bffd4509..ec80b603 100644 --- a/utest/global_mock.h +++ b/utest/global_mock.h @@ -36,4 +36,4 @@ void teardown(); #endif -/*EOF*/ /* vim: set cindent sw=4: */ +/* vim: set cindent sw=4: */ diff --git a/utest/main.c b/utest/main.c index 60dfb3d5..f7cadd10 100644 --- a/utest/main.c +++ b/utest/main.c @@ -252,4 +252,4 @@ int main(void) } -/*EOF*/ /* vim: set cindent sw=4: */ +/* vim: set cindent sw=4: */ diff --git a/utest/regulex_test.c b/utest/regulex_test.c index 61e3fe96..14b15e5c 100644 --- a/utest/regulex_test.c +++ b/utest/regulex_test.c @@ -110,4 +110,4 @@ void test_regex_replace_error(void **state) } -/*EOF*/ /* vim: set cindent sw=4: */ +/* vim: set cindent sw=4: */ diff --git a/utest/regulex_test.h b/utest/regulex_test.h index dd8a8674..db506ebc 100644 --- a/utest/regulex_test.h +++ b/utest/regulex_test.h @@ -32,4 +32,4 @@ void test_regex_replace_error(void **state); #endif -/*EOF*/ /* vim: set cindent sw=4: */ +/* vim: set cindent sw=4: */ diff --git a/utest/utest_tools.h b/utest/utest_tools.h index dbf92d2e..714f8337 100644 --- a/utest/utest_tools.h +++ b/utest/utest_tools.h @@ -41,4 +41,4 @@ void print_array_s(size_t p_array[], size_t p_len); #endif -/*EOF*/ /* vim: set cindent sw=4: */ +/* vim: set cindent sw=4: */