diff --git a/src/globbing.c b/src/args.c similarity index 94% rename from src/globbing.c rename to src/args.c index ba1774c..679d54a 100644 --- a/src/globbing.c +++ b/src/args.c @@ -12,8 +12,8 @@ #include #include +#include "args.h" #include "exec.h" -#include "globbing.h" bool check_glob_result(int val, char *bin_name) { @@ -31,7 +31,7 @@ bool process_globbing(char *pattern, args_t *args, size_t *toks_i) int glob_result; char *vl; - glob_result = glob(pattern, GLOB_ERR, NULL, &globs); + glob_result = glob(pattern, GLOB_ERR, nullptr, &globs); if (!check_glob_result(glob_result, args->args[0])) return false; for (size_t i = 0; i < globs.gl_pathc; i++) { diff --git a/src/globbing.h b/src/args.h similarity index 100% rename from src/globbing.h rename to src/args.h diff --git a/src/exec.c b/src/exec.c index 38ca266..09cba4b 100644 --- a/src/exec.c +++ b/src/exec.c @@ -13,13 +13,13 @@ #include #include +#include "args.h" #include "ast.h" #include "builtins.h" #include "common.h" #include "debug.h" #include "env.h" #include "exec.h" -#include "globbing.h" #include "path.h" #include "repl.h" #include "u_mem.h"