aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-06-09 17:57:57 +0200
committerCharles <sircharlesaze@gmail.com>2020-06-09 17:57:57 +0200
commit4e81fb861a79c9373b070176649bc0f4f8dfa850 (patch)
tree7586abc6d769edbba10d10bf4cc419ca85471862 /include
parent5ade92701836ce5ee1d39fc8d486b7709547058e (diff)
downloadminishell-4e81fb861a79c9373b070176649bc0f4f8dfa850.tar.gz
minishell-4e81fb861a79c9373b070176649bc0f4f8dfa850.tar.bz2
minishell-4e81fb861a79c9373b070176649bc0f4f8dfa850.zip
Fixing 2 leaks in preprocessor and norming it
Diffstat (limited to 'include')
-rw-r--r--include/lexer.h1
-rw-r--r--include/ms_glob.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/include/lexer.h b/include/lexer.h
index e20e0e7..9377807 100644
--- a/include/lexer.h
+++ b/include/lexer.h
@@ -16,6 +16,7 @@ typedef struct
} t_token;
t_token *token_new(enum e_token_tag tag, char *content);
+void token_destroy(t_token *token);
//////////////////////////////////////
char **lexer(char *input);
diff --git a/include/ms_glob.h b/include/ms_glob.h
index 774d3be..2eb16f1 100644
--- a/include/ms_glob.h
+++ b/include/ms_glob.h
@@ -6,7 +6,7 @@
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/04/05 11:45:11 by charles #+# #+# */
-/* Updated: 2020/04/05 13:05:10 by charles ### ########.fr */
+/* Updated: 2020/06/09 17:51:34 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -28,5 +28,6 @@ struct s_glob_param
t_ftvec *glob_matches(char *pattern);
char *ms_glob(char *pattern);
+char *ms_globf(char *pattern);
#endif