mirror of
https://github.com/Savapitech/42sh.git
synced 2026-03-18 21:50:35 +01:00
Change globbing file name to args.c
This commit is contained in:
@@ -12,8 +12,8 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#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++) {
|
||||
@@ -13,13 +13,13 @@
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#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"
|
||||
|
||||
Reference in New Issue
Block a user