From fe892e6c615dcb3b1cbfad2cebb33734c0f0f934 Mon Sep 17 00:00:00 2001 From: savalet Date: Sat, 3 May 2025 21:59:51 +0200 Subject: [PATCH] Change globbing file name to args.c --- src/{globbing.c => args.c} | 4 ++-- src/{globbing.h => args.h} | 0 src/exec.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/{globbing.c => args.c} (94%) rename src/{globbing.h => args.h} (100%) 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"