diff --git a/test/absolute_test.c b/test/absolute_test.c index 9f646c1..a0feaa9 100755 --- a/test/absolute_test.c +++ b/test/absolute_test.c @@ -6,7 +6,7 @@ #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) -int absolute_check() +int absolute_check(void) { const char *relative_paths[] = {"..", "test", "test/test", "../another_test", "./simple", ".././simple"}; @@ -31,7 +31,7 @@ int absolute_check() return EXIT_SUCCESS; } -int absolute_too_far() +int absolute_too_far(void) { char buffer[FILENAME_MAX]; size_t length; @@ -51,7 +51,7 @@ int absolute_too_far() return EXIT_SUCCESS; } -int absolute_normalization() +int absolute_normalization(void) { char buffer[FILENAME_MAX]; size_t length; @@ -71,7 +71,7 @@ int absolute_normalization() return EXIT_SUCCESS; } -int absolute_mixed() +int absolute_mixed(void) { char buffer[FILENAME_MAX]; size_t length; @@ -91,7 +91,7 @@ int absolute_mixed() return EXIT_SUCCESS; } -int absolute_unix_relative_base() +int absolute_unix_relative_base(void) { char buffer[FILENAME_MAX]; size_t length; @@ -110,7 +110,7 @@ int absolute_unix_relative_base() return EXIT_SUCCESS; } -int absolute_windows_relative_base() +int absolute_windows_relative_base(void) { char buffer[FILENAME_MAX]; size_t length; @@ -129,7 +129,7 @@ int absolute_windows_relative_base() return EXIT_SUCCESS; } -int absolute_absolute_path() +int absolute_absolute_path(void) { char buffer[FILENAME_MAX]; size_t length; @@ -149,7 +149,7 @@ int absolute_absolute_path() return EXIT_SUCCESS; } -int absolute_simple() +int absolute_simple(void) { char buffer[FILENAME_MAX]; size_t length; @@ -169,7 +169,7 @@ int absolute_simple() } -int absolute_buffer_reuse() +int absolute_buffer_reuse(void) { char path[FILENAME_MAX]; diff --git a/test/basename_test.c b/test/basename_test.c index a45c2aa..5a6a291 100755 --- a/test/basename_test.c +++ b/test/basename_test.c @@ -4,7 +4,7 @@ #include #include -int basename_change_trim_only_root() +int basename_change_trim_only_root(void) { size_t n; char buffer[FILENAME_MAX]; @@ -24,7 +24,7 @@ int basename_change_trim_only_root() return EXIT_SUCCESS; } -int basename_change_trim() +int basename_change_trim(void) { size_t n; char buffer[FILENAME_MAX]; @@ -44,7 +44,7 @@ int basename_change_trim() return EXIT_SUCCESS; } -int basename_change_relative() +int basename_change_relative(void) { size_t n; char buffer[FILENAME_MAX]; @@ -64,7 +64,7 @@ int basename_change_relative() return EXIT_SUCCESS; } -int basename_change_empty_basename() +int basename_change_empty_basename(void) { size_t n; char buffer[FILENAME_MAX]; @@ -83,7 +83,7 @@ int basename_change_empty_basename() return EXIT_SUCCESS; } -int basename_change_only_root() +int basename_change_only_root(void) { size_t n; char buffer[FILENAME_MAX]; @@ -102,7 +102,7 @@ int basename_change_only_root() return EXIT_SUCCESS; } -int basename_change_empty_path() +int basename_change_empty_path(void) { size_t n; char buffer[FILENAME_MAX]; @@ -121,7 +121,7 @@ int basename_change_empty_path() return EXIT_SUCCESS; } -int basename_change_simple() +int basename_change_simple(void) { size_t n; char buffer[FILENAME_MAX]; @@ -141,7 +141,7 @@ int basename_change_simple() return EXIT_SUCCESS; } -int basename_windows() +int basename_windows(void) { const char *path, *basename; size_t length; @@ -161,7 +161,7 @@ int basename_windows() return EXIT_SUCCESS; } -int basename_root() +int basename_root(void) { const char *path, *basename; size_t length; @@ -181,7 +181,7 @@ int basename_root() return EXIT_SUCCESS; } -int basename_special_directories() +int basename_special_directories(void) { const char *path, *basename; size_t length; @@ -212,7 +212,7 @@ int basename_special_directories() return EXIT_SUCCESS; } -int basename_no_separators() +int basename_no_separators(void) { const char *path, *basename; size_t length; @@ -232,7 +232,7 @@ int basename_no_separators() return EXIT_SUCCESS; } -int basename_trailing_separators() +int basename_trailing_separators(void) { const char *path, *basename; size_t length; @@ -252,7 +252,7 @@ int basename_trailing_separators() return EXIT_SUCCESS; } -int basename_trailing_separator() +int basename_trailing_separator(void) { const char *path, *basename; size_t length; @@ -272,7 +272,7 @@ int basename_trailing_separator() return EXIT_SUCCESS; } -int basename_empty() +int basename_empty(void) { const char *path, *basename; size_t length; @@ -292,7 +292,7 @@ int basename_empty() return EXIT_SUCCESS; } -int basename_simple() +int basename_simple(void) { const char *path, *basename; size_t length; diff --git a/test/dirname_test.c b/test/dirname_test.c index 9a14200..042cfef 100755 --- a/test/dirname_test.c +++ b/test/dirname_test.c @@ -2,7 +2,7 @@ #include #include -int dirname_relative() +int dirname_relative(void) { const char *path; size_t length; @@ -18,7 +18,7 @@ int dirname_relative() return EXIT_SUCCESS; } -int dirname_three_segments() +int dirname_three_segments(void) { const char *path; size_t length; @@ -34,7 +34,7 @@ int dirname_three_segments() return EXIT_SUCCESS; } -int dirname_root() +int dirname_root(void) { const char *path; size_t length; @@ -50,7 +50,7 @@ int dirname_root() return EXIT_SUCCESS; } -int dirname_special_directories() +int dirname_special_directories(void) { const char *path; size_t length; @@ -73,7 +73,7 @@ int dirname_special_directories() return EXIT_SUCCESS; } -int dirname_no_separators() +int dirname_no_separators(void) { const char *path; size_t length; @@ -89,7 +89,7 @@ int dirname_no_separators() return EXIT_SUCCESS; } -int dirname_trailing_separators() +int dirname_trailing_separators(void) { const char *path; size_t length; @@ -105,7 +105,7 @@ int dirname_trailing_separators() return EXIT_SUCCESS; } -int dirname_trailing_separator() +int dirname_trailing_separator(void) { const char *path; size_t length; @@ -121,7 +121,7 @@ int dirname_trailing_separator() return EXIT_SUCCESS; } -int dirname_empty() +int dirname_empty(void) { const char *path; size_t length; @@ -137,7 +137,7 @@ int dirname_empty() return EXIT_SUCCESS; } -int dirname_simple() +int dirname_simple(void) { const char *path; size_t length; diff --git a/test/extension_test.c b/test/extension_test.c index df06583..0e67de3 100755 --- a/test/extension_test.c +++ b/test/extension_test.c @@ -4,7 +4,7 @@ #include #include -int extension_change_with_trailing_slash() +int extension_change_with_trailing_slash(void) { char buffer[FILENAME_MAX] = "/folder/file.txt/"; size_t n; @@ -23,7 +23,7 @@ int extension_change_with_trailing_slash() return EXIT_SUCCESS; } -int extension_change_hidden_file() +int extension_change_hidden_file(void) { char buffer[FILENAME_MAX] = "/folder/.hidden_file.txt"; size_t n; @@ -42,7 +42,7 @@ int extension_change_hidden_file() return EXIT_SUCCESS; } -int extension_change_overlap_long() +int extension_change_overlap_long(void) { char buffer[FILENAME_MAX] = "/test.txt/"; size_t n; @@ -61,7 +61,7 @@ int extension_change_overlap_long() return EXIT_SUCCESS; } -int extension_change_overlap() +int extension_change_overlap(void) { char buffer[FILENAME_MAX] = "/test.txt/"; size_t n; @@ -80,7 +80,7 @@ int extension_change_overlap() return EXIT_SUCCESS; } -int extension_change_with_dot() +int extension_change_with_dot(void) { char buffer[FILENAME_MAX]; size_t n; @@ -99,7 +99,7 @@ int extension_change_with_dot() return EXIT_SUCCESS; } -int extension_change_remove() +int extension_change_remove(void) { char buffer[FILENAME_MAX]; size_t n; @@ -118,7 +118,7 @@ int extension_change_remove() return EXIT_SUCCESS; } -int extension_change_no_extension() +int extension_change_no_extension(void) { char buffer[FILENAME_MAX] = "C:\\file"; size_t n; @@ -137,7 +137,7 @@ int extension_change_no_extension() return EXIT_SUCCESS; } -int extension_change_no_basename() +int extension_change_no_basename(void) { char buffer[FILENAME_MAX] = "C:\\"; size_t n; @@ -156,7 +156,7 @@ int extension_change_no_basename() return EXIT_SUCCESS; } -int extension_change_simple() +int extension_change_simple(void) { char buffer[FILENAME_MAX]; size_t n; @@ -175,7 +175,7 @@ int extension_change_simple() return EXIT_SUCCESS; } -int extension_check_without() +int extension_check_without(void) { cwk_path_set_style(CWK_STYLE_UNIX); if (cwk_path_has_extension("/my/path")) { @@ -185,7 +185,7 @@ int extension_check_without() return EXIT_SUCCESS; } -int extension_check_empty() +int extension_check_empty(void) { cwk_path_set_style(CWK_STYLE_UNIX); if (cwk_path_has_extension("")) { @@ -195,7 +195,7 @@ int extension_check_empty() return EXIT_SUCCESS; } -int extension_check_simple() +int extension_check_simple(void) { cwk_path_set_style(CWK_STYLE_UNIX); if (!cwk_path_has_extension("/my/path.txt")) { @@ -205,7 +205,7 @@ int extension_check_simple() return EXIT_SUCCESS; } -int extension_get_multiple() +int extension_get_multiple(void) { const char *path, *extension; size_t length; @@ -227,7 +227,7 @@ int extension_get_multiple() return EXIT_SUCCESS; } -int extension_get_last() +int extension_get_last(void) { const char *path, *extension; size_t length; @@ -249,7 +249,7 @@ int extension_get_last() return EXIT_SUCCESS; } -int extension_get_first() +int extension_get_first(void) { const char *path, *extension; size_t length; @@ -271,7 +271,7 @@ int extension_get_first() return EXIT_SUCCESS; } -int extension_get_without() +int extension_get_without(void) { const char *path, *extension; size_t length; @@ -285,7 +285,7 @@ int extension_get_without() return EXIT_SUCCESS; } -int extension_get_simple() +int extension_get_simple(void) { const char *path, *extension; size_t length; diff --git a/test/guess_test.c b/test/guess_test.c index 6be6446..9815a32 100644 --- a/test/guess_test.c +++ b/test/guess_test.c @@ -1,7 +1,7 @@ #include #include -int guess_empty_string() +int guess_empty_string(void) { if (cwk_path_guess_style("") != CWK_STYLE_UNIX) { return EXIT_FAILURE; @@ -10,7 +10,7 @@ int guess_empty_string() return EXIT_SUCCESS; } -int guess_unguessable() +int guess_unguessable(void) { if (cwk_path_guess_style("myfile") != CWK_STYLE_UNIX) { return EXIT_FAILURE; @@ -19,7 +19,7 @@ int guess_unguessable() return EXIT_SUCCESS; } -int guess_extension() +int guess_extension(void) { if (cwk_path_guess_style("myfile.txt") != CWK_STYLE_WINDOWS) { return EXIT_FAILURE; @@ -32,7 +32,7 @@ int guess_extension() return EXIT_SUCCESS; } -int guess_hidden_file() +int guess_hidden_file(void) { if (cwk_path_guess_style(".my_hidden_file") != CWK_STYLE_UNIX) { return EXIT_FAILURE; @@ -45,7 +45,7 @@ int guess_hidden_file() return EXIT_SUCCESS; } -int guess_unix_separator() +int guess_unix_separator(void) { if (cwk_path_guess_style("/directory/other") != CWK_STYLE_UNIX) { return EXIT_FAILURE; @@ -58,7 +58,7 @@ int guess_unix_separator() return EXIT_SUCCESS; } -int guess_windows_separator() +int guess_windows_separator(void) { if (cwk_path_guess_style("\\directory\\other") != CWK_STYLE_WINDOWS) { return EXIT_FAILURE; @@ -70,7 +70,7 @@ int guess_windows_separator() return EXIT_SUCCESS; } -int guess_unix_root() +int guess_unix_root(void) { if (cwk_path_guess_style("/directory") != CWK_STYLE_UNIX) { return EXIT_FAILURE; @@ -79,7 +79,7 @@ int guess_unix_root() return EXIT_SUCCESS; } -int guess_windows_root() +int guess_windows_root(void) { if (cwk_path_guess_style("C:\\test") != CWK_STYLE_WINDOWS) { return EXIT_FAILURE; diff --git a/test/intersection_test.c b/test/intersection_test.c index 0bfdae8..cd7ca36 100755 --- a/test/intersection_test.c +++ b/test/intersection_test.c @@ -1,7 +1,7 @@ #include #include -int intersection_skipped_end() +int intersection_skipped_end(void) { cwk_path_set_style(CWK_STYLE_UNIX); @@ -12,7 +12,7 @@ int intersection_skipped_end() return EXIT_SUCCESS; } -int intersection_relative_other() +int intersection_relative_other(void) { cwk_path_set_style(CWK_STYLE_UNIX); @@ -23,7 +23,7 @@ int intersection_relative_other() return EXIT_SUCCESS; } -int intersection_relative_base() +int intersection_relative_base(void) { cwk_path_set_style(CWK_STYLE_UNIX); @@ -35,7 +35,7 @@ int intersection_relative_base() return EXIT_SUCCESS; } -int intersection_one_root_only() +int intersection_one_root_only(void) { cwk_path_set_style(CWK_STYLE_WINDOWS); @@ -46,7 +46,7 @@ int intersection_one_root_only() return EXIT_SUCCESS; } -int intersection_same_roots() +int intersection_same_roots(void) { cwk_path_set_style(CWK_STYLE_WINDOWS); @@ -57,7 +57,7 @@ int intersection_same_roots() return EXIT_SUCCESS; } -int intersection_relative_absolute_mix() +int intersection_relative_absolute_mix(void) { cwk_path_set_style(CWK_STYLE_UNIX); @@ -68,7 +68,7 @@ int intersection_relative_absolute_mix() return EXIT_SUCCESS; } -int intersection_unequal_roots() +int intersection_unequal_roots(void) { cwk_path_set_style(CWK_STYLE_WINDOWS); @@ -79,7 +79,7 @@ int intersection_unequal_roots() return EXIT_SUCCESS; } -int intersection_empty() +int intersection_empty(void) { cwk_path_set_style(CWK_STYLE_UNIX); @@ -90,7 +90,7 @@ int intersection_empty() return EXIT_SUCCESS; } -int intersection_double_separator() +int intersection_double_separator(void) { cwk_path_set_style(CWK_STYLE_UNIX); if (cwk_path_get_intersection("/this///is/a//test", "/this//is/a///file") != @@ -101,7 +101,7 @@ int intersection_double_separator() return EXIT_SUCCESS; } -int intersection_trailing_separator() +int intersection_trailing_separator(void) { cwk_path_set_style(CWK_STYLE_UNIX); if (cwk_path_get_intersection("/this/is/a/test", "/this/is/a/") != 10) { @@ -111,7 +111,7 @@ int intersection_trailing_separator() return EXIT_SUCCESS; } -int intersection_truncated() +int intersection_truncated(void) { cwk_path_set_style(CWK_STYLE_UNIX); if (cwk_path_get_intersection("/this/is/a/test", "/this/is/a") != 10) { @@ -121,7 +121,7 @@ int intersection_truncated() return EXIT_SUCCESS; } -int intersection_simple() +int intersection_simple(void) { cwk_path_set_style(CWK_STYLE_UNIX); if (cwk_path_get_intersection("/this/is/a/test", "/this/is/a/string") != 10) { diff --git a/test/is_absolute_test.c b/test/is_absolute_test.c index 4bcc528..f20d437 100755 --- a/test/is_absolute_test.c +++ b/test/is_absolute_test.c @@ -1,7 +1,7 @@ #include #include -int is_absolute_relative_windows() +int is_absolute_relative_windows(void) { cwk_path_set_style(CWK_STYLE_WINDOWS); @@ -12,7 +12,7 @@ int is_absolute_relative_windows() return EXIT_SUCCESS; } -int is_absolute_relative_drive() +int is_absolute_relative_drive(void) { cwk_path_set_style(CWK_STYLE_WINDOWS); @@ -23,7 +23,7 @@ int is_absolute_relative_drive() return EXIT_SUCCESS; } -int is_absolute_device_question_mark() +int is_absolute_device_question_mark(void) { cwk_path_set_style(CWK_STYLE_WINDOWS); @@ -34,7 +34,7 @@ int is_absolute_device_question_mark() return EXIT_SUCCESS; } -int is_absolute_device_dot() +int is_absolute_device_dot(void) { cwk_path_set_style(CWK_STYLE_WINDOWS); cwk_path_is_absolute("\\\\.\\mydevice\\test"); @@ -46,7 +46,7 @@ int is_absolute_device_dot() return EXIT_SUCCESS; } -int is_absolute_device_unc() +int is_absolute_device_unc(void) { cwk_path_set_style(CWK_STYLE_WINDOWS); @@ -57,7 +57,7 @@ int is_absolute_device_unc() return EXIT_SUCCESS; } -int is_absolute_unc() +int is_absolute_unc(void) { cwk_path_set_style(CWK_STYLE_WINDOWS); @@ -68,7 +68,7 @@ int is_absolute_unc() return EXIT_SUCCESS; } -int is_absolute_absolute_drive() +int is_absolute_absolute_drive(void) { cwk_path_set_style(CWK_STYLE_WINDOWS); @@ -79,7 +79,7 @@ int is_absolute_absolute_drive() return EXIT_SUCCESS; } -int is_absolute_unix_drive() +int is_absolute_unix_drive(void) { cwk_path_set_style(CWK_STYLE_UNIX); @@ -90,7 +90,7 @@ int is_absolute_unix_drive() return EXIT_SUCCESS; } -int is_absolute_unix_backslash() +int is_absolute_unix_backslash(void) { cwk_path_set_style(CWK_STYLE_UNIX); @@ -101,7 +101,7 @@ int is_absolute_unix_backslash() return EXIT_SUCCESS; } -int is_absolute_windows_slash() +int is_absolute_windows_slash(void) { cwk_path_set_style(CWK_STYLE_WINDOWS); @@ -112,7 +112,7 @@ int is_absolute_windows_slash() return EXIT_SUCCESS; } -int is_absolute_windows_backslash() +int is_absolute_windows_backslash(void) { cwk_path_set_style(CWK_STYLE_WINDOWS); @@ -123,7 +123,7 @@ int is_absolute_windows_backslash() return EXIT_SUCCESS; } -int is_absolute_relative() +int is_absolute_relative(void) { cwk_path_set_style(CWK_STYLE_UNIX); @@ -134,7 +134,7 @@ int is_absolute_relative() return EXIT_SUCCESS; } -int is_absolute_absolute() +int is_absolute_absolute(void) { cwk_path_set_style(CWK_STYLE_UNIX); if (!cwk_path_is_absolute("/test.txt")) { @@ -144,7 +144,7 @@ int is_absolute_absolute() return EXIT_SUCCESS; } -int is_absolute_root() +int is_absolute_root(void) { cwk_path_set_style(CWK_STYLE_UNIX); if (!cwk_path_is_absolute("/")) { @@ -154,7 +154,7 @@ int is_absolute_root() return EXIT_SUCCESS; } -int is_absolute_dir() +int is_absolute_dir(void) { cwk_path_set_style(CWK_STYLE_UNIX); if (!cwk_path_is_absolute("/dir")) { diff --git a/test/is_relative_test.c b/test/is_relative_test.c index 569570f..7abf849 100755 --- a/test/is_relative_test.c +++ b/test/is_relative_test.c @@ -1,7 +1,7 @@ #include #include -int is_relative_relative_windows() +int is_relative_relative_windows(void) { cwk_path_set_style(CWK_STYLE_WINDOWS); @@ -12,7 +12,7 @@ int is_relative_relative_windows() return EXIT_SUCCESS; } -int is_relative_relative_drive() +int is_relative_relative_drive(void) { cwk_path_set_style(CWK_STYLE_WINDOWS); @@ -23,7 +23,7 @@ int is_relative_relative_drive() return EXIT_SUCCESS; } -int is_relative_device_question_mark() +int is_relative_device_question_mark(void) { cwk_path_set_style(CWK_STYLE_WINDOWS); @@ -34,7 +34,7 @@ int is_relative_device_question_mark() return EXIT_SUCCESS; } -int is_relative_device_dot() +int is_relative_device_dot(void) { cwk_path_set_style(CWK_STYLE_WINDOWS); cwk_path_is_absolute("\\\\.\\mydevice\\test"); @@ -46,7 +46,7 @@ int is_relative_device_dot() return EXIT_SUCCESS; } -int is_relative_device_unc() +int is_relative_device_unc(void) { cwk_path_set_style(CWK_STYLE_WINDOWS); @@ -57,7 +57,7 @@ int is_relative_device_unc() return EXIT_SUCCESS; } -int is_relative_unc() +int is_relative_unc(void) { cwk_path_set_style(CWK_STYLE_WINDOWS); @@ -68,7 +68,7 @@ int is_relative_unc() return EXIT_SUCCESS; } -int is_relative_absolute_drive() +int is_relative_absolute_drive(void) { cwk_path_set_style(CWK_STYLE_WINDOWS); @@ -79,7 +79,7 @@ int is_relative_absolute_drive() return EXIT_SUCCESS; } -int is_relative_unix_drive() +int is_relative_unix_drive(void) { cwk_path_set_style(CWK_STYLE_UNIX); @@ -90,7 +90,7 @@ int is_relative_unix_drive() return EXIT_SUCCESS; } -int is_relative_unix_backslash() +int is_relative_unix_backslash(void) { cwk_path_set_style(CWK_STYLE_UNIX); @@ -101,7 +101,7 @@ int is_relative_unix_backslash() return EXIT_SUCCESS; } -int is_relative_windows_slash() +int is_relative_windows_slash(void) { cwk_path_set_style(CWK_STYLE_WINDOWS); @@ -112,7 +112,7 @@ int is_relative_windows_slash() return EXIT_SUCCESS; } -int is_relative_windows_backslash() +int is_relative_windows_backslash(void) { cwk_path_set_style(CWK_STYLE_WINDOWS); @@ -123,7 +123,7 @@ int is_relative_windows_backslash() return EXIT_SUCCESS; } -int is_relative_relative() +int is_relative_relative(void) { cwk_path_set_style(CWK_STYLE_UNIX); @@ -134,7 +134,7 @@ int is_relative_relative() return EXIT_SUCCESS; } -int is_relative_absolute() +int is_relative_absolute(void) { cwk_path_set_style(CWK_STYLE_UNIX); if (cwk_path_is_relative("/test.txt")) { diff --git a/test/join_test.c b/test/join_test.c index 66604f5..c380dba 100644 --- a/test/join_test.c +++ b/test/join_test.c @@ -4,7 +4,7 @@ #include #include -int join_multiple() +int join_multiple(void) { char buffer[FILENAME_MAX]; const char *paths[3]; @@ -29,7 +29,7 @@ int join_multiple() return EXIT_SUCCESS; } -int join_relative_back_after_root() +int join_relative_back_after_root(void) { char buffer[FILENAME_MAX]; size_t length; @@ -49,7 +49,7 @@ int join_relative_back_after_root() return EXIT_SUCCESS; } -int join_back_after_root() +int join_back_after_root(void) { char buffer[FILENAME_MAX]; size_t length; @@ -69,7 +69,7 @@ int join_back_after_root() return EXIT_SUCCESS; } -int join_with_two_roots() +int join_with_two_roots(void) { char buffer[FILENAME_MAX]; size_t length; @@ -89,7 +89,7 @@ int join_with_two_roots() return EXIT_SUCCESS; } -int join_two_unc() +int join_two_unc(void) { char buffer[FILENAME_MAX]; size_t length; @@ -109,7 +109,7 @@ int join_two_unc() return EXIT_SUCCESS; } -int join_two_absolute() +int join_two_absolute(void) { char buffer[FILENAME_MAX]; size_t length; @@ -128,7 +128,7 @@ int join_two_absolute() return EXIT_SUCCESS; } -int join_empty() +int join_empty(void) { char buffer[FILENAME_MAX]; size_t length; @@ -147,7 +147,7 @@ int join_empty() return EXIT_SUCCESS; } -int join_navigate_back() +int join_navigate_back(void) { char buffer[FILENAME_MAX]; size_t length; @@ -166,7 +166,7 @@ int join_navigate_back() return EXIT_SUCCESS; } -int join_simple() +int join_simple(void) { char buffer[FILENAME_MAX]; size_t length; diff --git a/test/normalize_test.c b/test/normalize_test.c index 4c7a99d..1d9afb5 100644 --- a/test/normalize_test.c +++ b/test/normalize_test.c @@ -6,7 +6,7 @@ #include #include -int normalize_forward_slashes() +int normalize_forward_slashes(void) { size_t count; char result[FILENAME_MAX]; @@ -25,7 +25,7 @@ int normalize_forward_slashes() return EXIT_SUCCESS; } -int normalize_back_after_root() +int normalize_back_after_root(void) { size_t count; char result[FILENAME_MAX]; @@ -44,7 +44,7 @@ int normalize_back_after_root() return EXIT_SUCCESS; } -int normalize_only_separators() +int normalize_only_separators(void) { size_t count; char result[FILENAME_MAX]; @@ -63,7 +63,7 @@ int normalize_only_separators() return EXIT_SUCCESS; } -int normalize_empty() +int normalize_empty(void) { size_t count; char result[FILENAME_MAX]; @@ -82,7 +82,7 @@ int normalize_empty() return EXIT_SUCCESS; } -int normalize_overlap() +int normalize_overlap(void) { size_t count; char result[FILENAME_MAX]; @@ -101,7 +101,7 @@ int normalize_overlap() return EXIT_SUCCESS; } -int normalize_mixed() +int normalize_mixed(void) { size_t count; char result[FILENAME_MAX]; @@ -119,7 +119,7 @@ int normalize_mixed() return EXIT_SUCCESS; } -int normalize_remove_current() +int normalize_remove_current(void) { size_t count; char result[FILENAME_MAX]; @@ -137,7 +137,7 @@ int normalize_remove_current() return EXIT_SUCCESS; } -int normalize_double_separator() +int normalize_double_separator(void) { size_t count; char result[FILENAME_MAX]; @@ -155,7 +155,7 @@ int normalize_double_separator() return EXIT_SUCCESS; } -int normalize_terminated() +int normalize_terminated(void) { size_t count; char result[FILENAME_MAX]; @@ -188,7 +188,7 @@ int normalize_terminated() return EXIT_SUCCESS; } -int normalize_relative_too_far() +int normalize_relative_too_far(void) { size_t count; char result[FILENAME_MAX]; @@ -206,7 +206,7 @@ int normalize_relative_too_far() return EXIT_SUCCESS; } -int normalize_absolute_too_far() +int normalize_absolute_too_far(void) { size_t count; char result[FILENAME_MAX]; @@ -224,7 +224,7 @@ int normalize_absolute_too_far() return EXIT_SUCCESS; } -int normalize_navigate_back() +int normalize_navigate_back(void) { size_t count; char result[FILENAME_MAX]; @@ -242,7 +242,7 @@ int normalize_navigate_back() return EXIT_SUCCESS; } -int normalize_do_nothing() +int normalize_do_nothing(void) { size_t count; char result[FILENAME_MAX]; diff --git a/test/relative_test.c b/test/relative_test.c index 18a047d..b93799c 100755 --- a/test/relative_test.c +++ b/test/relative_test.c @@ -6,7 +6,7 @@ #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) -int relative_root_forward_slashes() +int relative_root_forward_slashes(void) { char result[FILENAME_MAX]; size_t length; @@ -26,7 +26,7 @@ int relative_root_forward_slashes() return EXIT_SUCCESS; } -int relative_root_path_windows() +int relative_root_path_windows(void) { char result[FILENAME_MAX]; size_t length; @@ -46,7 +46,7 @@ int relative_root_path_windows() return EXIT_SUCCESS; } -int relative_root_path_unix() +int relative_root_path_unix(void) { char result[FILENAME_MAX]; size_t length; @@ -66,7 +66,7 @@ int relative_root_path_unix() return EXIT_SUCCESS; } -int relative_check() +int relative_check(void) { const char *relative_paths[] = {"..", "test", "test/test", "../another_test", "./simple", ".././simple"}; @@ -91,7 +91,7 @@ int relative_check() return EXIT_SUCCESS; } -int relative_relative_and_absolute() +int relative_relative_and_absolute(void) { char result[FILENAME_MAX]; size_t length; @@ -113,7 +113,7 @@ int relative_relative_and_absolute() return EXIT_SUCCESS; } -int relative_different_roots() +int relative_different_roots(void) { char result[FILENAME_MAX]; size_t length; @@ -136,7 +136,7 @@ int relative_different_roots() return EXIT_SUCCESS; } -int relative_skip_all() +int relative_skip_all(void) { char result[FILENAME_MAX]; size_t length; @@ -155,7 +155,7 @@ int relative_skip_all() return EXIT_SUCCESS; } -int relative_target_div_skipped_end() +int relative_target_div_skipped_end(void) { char result[FILENAME_MAX]; size_t length; @@ -175,7 +175,7 @@ int relative_target_div_skipped_end() return EXIT_SUCCESS; } -int relative_base_div_skipped_end() +int relative_base_div_skipped_end(void) { char result[FILENAME_MAX]; size_t length; @@ -195,7 +195,7 @@ int relative_base_div_skipped_end() return EXIT_SUCCESS; } -int relative_target_skipped_end() +int relative_target_skipped_end(void) { char result[FILENAME_MAX]; size_t length; @@ -215,7 +215,7 @@ int relative_target_skipped_end() return EXIT_SUCCESS; } -int relative_base_skipped_end() +int relative_base_skipped_end(void) { char result[FILENAME_MAX]; size_t length; @@ -235,7 +235,7 @@ int relative_base_skipped_end() return EXIT_SUCCESS; } -int relative_equal() +int relative_equal(void) { char result[FILENAME_MAX]; size_t length; @@ -255,7 +255,7 @@ int relative_equal() return EXIT_SUCCESS; } -int relative_same_base() +int relative_same_base(void) { char result[FILENAME_MAX]; size_t length; @@ -275,7 +275,7 @@ int relative_same_base() return EXIT_SUCCESS; } -int relative_long_target() +int relative_long_target(void) { char result[FILENAME_MAX]; size_t length; @@ -295,7 +295,7 @@ int relative_long_target() return EXIT_SUCCESS; } -int relative_long_base() +int relative_long_base(void) { char result[FILENAME_MAX]; size_t length; @@ -315,7 +315,7 @@ int relative_long_base() return EXIT_SUCCESS; } -int relative_relative() +int relative_relative(void) { char result[FILENAME_MAX]; size_t length; @@ -335,7 +335,7 @@ int relative_relative() return EXIT_SUCCESS; } -int relative_simple() +int relative_simple(void) { char result[FILENAME_MAX]; size_t length; diff --git a/test/root_test.c b/test/root_test.c index f6f2415..585091b 100755 --- a/test/root_test.c +++ b/test/root_test.c @@ -4,7 +4,7 @@ #include #include -int root_change_without_root() +int root_change_without_root(void) { size_t length; char buffer[FILENAME_MAX] = "hello\\world.txt"; @@ -24,7 +24,7 @@ int root_change_without_root() return EXIT_SUCCESS; } -int root_change_overlapping() +int root_change_overlapping(void) { size_t length; char buffer[FILENAME_MAX] = "C:\\hello\\world.txt"; @@ -44,7 +44,7 @@ int root_change_overlapping() return EXIT_SUCCESS; } -int root_change_separators() +int root_change_separators(void) { size_t length; char buffer[FILENAME_MAX]; @@ -64,7 +64,7 @@ int root_change_separators() return EXIT_SUCCESS; } -int root_change_empty() +int root_change_empty(void) { size_t length; char buffer[FILENAME_MAX]; @@ -84,7 +84,7 @@ int root_change_empty() return EXIT_SUCCESS; } -int root_change_simple() +int root_change_simple(void) { size_t length; char buffer[FILENAME_MAX]; @@ -104,7 +104,7 @@ int root_change_simple() return EXIT_SUCCESS; } -int root_relative_windows() +int root_relative_windows(void) { size_t length; @@ -118,7 +118,7 @@ int root_relative_windows() return EXIT_SUCCESS; } -int root_relative_drive() +int root_relative_drive(void) { size_t length; @@ -132,7 +132,7 @@ int root_relative_drive() return EXIT_SUCCESS; } -int root_device_question_mark() +int root_device_question_mark(void) { size_t length; @@ -146,7 +146,7 @@ int root_device_question_mark() return EXIT_SUCCESS; } -int root_device_dot() +int root_device_dot(void) { size_t length; @@ -160,7 +160,7 @@ int root_device_dot() return EXIT_SUCCESS; } -int root_device_unc() +int root_device_unc(void) { size_t length; @@ -174,7 +174,7 @@ int root_device_unc() return EXIT_SUCCESS; } -int root_unc() +int root_unc(void) { size_t length; @@ -188,7 +188,7 @@ int root_unc() return EXIT_SUCCESS; } -int root_absolute_drive() +int root_absolute_drive(void) { size_t length; @@ -202,7 +202,7 @@ int root_absolute_drive() return EXIT_SUCCESS; } -int root_unix_drive() +int root_unix_drive(void) { size_t length; @@ -216,7 +216,7 @@ int root_unix_drive() return EXIT_SUCCESS; } -int root_unix_backslash() +int root_unix_backslash(void) { size_t length; @@ -230,7 +230,7 @@ int root_unix_backslash() return EXIT_SUCCESS; } -int root_windows_slash() +int root_windows_slash(void) { size_t length; @@ -244,7 +244,7 @@ int root_windows_slash() return EXIT_SUCCESS; } -int root_windows_backslash() +int root_windows_backslash(void) { size_t length; @@ -258,7 +258,7 @@ int root_windows_backslash() return EXIT_SUCCESS; } -int root_relative() +int root_relative(void) { size_t length; @@ -272,7 +272,7 @@ int root_relative() return EXIT_SUCCESS; } -int root_absolute() +int root_absolute(void) { size_t length; diff --git a/test/segment_test.c b/test/segment_test.c index 2b124b1..9f564c8 100644 --- a/test/segment_test.c +++ b/test/segment_test.c @@ -4,7 +4,7 @@ #include #include -int segment_change_overlap() +int segment_change_overlap(void) { char buffer[FILENAME_MAX] = "C:\\this\\cool\\path\\"; struct cwk_segment segment; @@ -28,7 +28,7 @@ int segment_change_overlap() return EXIT_SUCCESS; } -int segment_change_with_separator() +int segment_change_with_separator(void) { const char *path; char buffer[FILENAME_MAX]; @@ -54,7 +54,7 @@ int segment_change_with_separator() return EXIT_SUCCESS; } -int segment_change_empty() +int segment_change_empty(void) { const char *path; char buffer[FILENAME_MAX]; @@ -80,7 +80,7 @@ int segment_change_empty() return EXIT_SUCCESS; } -int segment_change_trim() +int segment_change_trim(void) { const char *path; char buffer[FILENAME_MAX]; @@ -106,7 +106,7 @@ int segment_change_trim() return EXIT_SUCCESS; } -int segment_change_last() +int segment_change_last(void) { const char *path; char buffer[FILENAME_MAX]; @@ -139,7 +139,7 @@ int segment_change_last() return EXIT_SUCCESS; } -int segment_change_first() +int segment_change_first(void) { const char *path; char buffer[FILENAME_MAX]; @@ -172,7 +172,7 @@ int segment_change_first() return EXIT_SUCCESS; } -int segment_change_simple() +int segment_change_simple(void) { const char *path; char buffer[FILENAME_MAX]; @@ -198,7 +198,7 @@ int segment_change_simple() return EXIT_SUCCESS; } -int segment_back_with_root() +int segment_back_with_root(void) { const char *path; struct cwk_segment segment; @@ -229,7 +229,7 @@ int segment_back_with_root() return EXIT_SUCCESS; } -int segment_type() +int segment_type(void) { const char *path; struct cwk_segment segment; @@ -281,7 +281,7 @@ int segment_type() return EXIT_SUCCESS; } -int segment_previous_too_far_root() +int segment_previous_too_far_root(void) { const char *path; struct cwk_segment segment; @@ -313,7 +313,7 @@ int segment_previous_too_far_root() return EXIT_SUCCESS; } -int segment_previous_too_far() +int segment_previous_too_far(void) { const char *path; struct cwk_segment segment; @@ -345,7 +345,7 @@ int segment_previous_too_far() return EXIT_SUCCESS; } -int segment_previous_relative() +int segment_previous_relative(void) { const char *path; struct cwk_segment segment; @@ -385,7 +385,7 @@ int segment_previous_relative() return EXIT_SUCCESS; } -int segment_previous_absolute() +int segment_previous_absolute(void) { const char *path; struct cwk_segment segment; @@ -425,7 +425,7 @@ int segment_previous_absolute() return EXIT_SUCCESS; } -int segment_previous_relative_one_char_first() +int segment_previous_relative_one_char_first(void) { const char *path; struct cwk_segment segment; @@ -497,7 +497,7 @@ int segment_previous_relative_one_char_first() return EXIT_SUCCESS; } -int segment_previous_absolute_one_char_first() +int segment_previous_absolute_one_char_first(void) { const char *path; struct cwk_segment segment; @@ -569,7 +569,7 @@ int segment_previous_absolute_one_char_first() return EXIT_SUCCESS; } -int segment_next_too_far() +int segment_next_too_far(void) { const char *path; struct cwk_segment segment; @@ -597,7 +597,7 @@ int segment_next_too_far() return EXIT_SUCCESS; } -int segment_next() +int segment_next(void) { const char *path; struct cwk_segment segment; @@ -629,7 +629,7 @@ int segment_next() return EXIT_SUCCESS; } -int segment_last() +int segment_last(void) { const char *path; struct cwk_segment segment; @@ -659,7 +659,7 @@ int segment_last() return EXIT_SUCCESS; } -int segment_first() +int segment_first(void) { const char *path; struct cwk_segment segment; diff --git a/test/windows_test.c b/test/windows_test.c index ae75771..b674268 100755 --- a/test/windows_test.c +++ b/test/windows_test.c @@ -3,7 +3,7 @@ #include #include -int windows_root_empty() +int windows_root_empty(void) { size_t size; cwk_path_set_style(CWK_STYLE_WINDOWS); @@ -16,7 +16,7 @@ int windows_root_empty() return EXIT_SUCCESS; } -int windows_root_backslash() +int windows_root_backslash(void) { size_t size; cwk_path_set_style(CWK_STYLE_WINDOWS); @@ -29,7 +29,7 @@ int windows_root_backslash() return EXIT_SUCCESS; } -int windows_intersection_case() +int windows_intersection_case(void) { cwk_path_set_style(CWK_STYLE_WINDOWS); @@ -41,7 +41,7 @@ int windows_intersection_case() return EXIT_SUCCESS; } -int windows_get_root_relative() +int windows_get_root_relative(void) { size_t size; cwk_path_set_style(CWK_STYLE_WINDOWS); @@ -54,7 +54,7 @@ int windows_get_root_relative() return EXIT_SUCCESS; } -int windows_get_root_separator() +int windows_get_root_separator(void) { size_t size; cwk_path_set_style(CWK_STYLE_WINDOWS); @@ -67,7 +67,7 @@ int windows_get_root_separator() return EXIT_SUCCESS; } -int windows_get_unc_root() +int windows_get_unc_root(void) { size_t size; @@ -81,7 +81,7 @@ int windows_get_unc_root() return EXIT_SUCCESS; } -int windows_get_root() +int windows_get_root(void) { size_t size; @@ -95,7 +95,7 @@ int windows_get_root() return EXIT_SUCCESS; } -int windows_change_style() +int windows_change_style(void) { enum cwk_path_style style;