diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-15 19:59:41 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-15 19:59:41 +0200 |
commit | ca2e36781039eb7e9901ccde395600e7af87ff4f (patch) | |
tree | 8a9d85433e943fbbd079bc55700e048a54d9bf24 /src/p_line.c | |
parent | type builtin fix (diff) | |
download | 42-minishell-ca2e36781039eb7e9901ccde395600e7af87ff4f.tar.gz 42-minishell-ca2e36781039eb7e9901ccde395600e7af87ff4f.tar.bz2 42-minishell-ca2e36781039eb7e9901ccde395600e7af87ff4f.tar.xz 42-minishell-ca2e36781039eb7e9901ccde395600e7af87ff4f.tar.zst 42-minishell-ca2e36781039eb7e9901ccde395600e7af87ff4f.zip |
Huge fixes and stack stuff
Diffstat (limited to '')
-rw-r--r-- | src/p_line.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/p_line.c b/src/p_line.c index cdb2fd4..c8381c8 100644 --- a/src/p_line.c +++ b/src/p_line.c @@ -21,26 +21,6 @@ #include "s_struct.h" #include "u_utils.h" -static void - p_delete_comments(char line[]) -{ - char *ptr; - - ptr = line; - while (*ptr != '\0') - { - if (*ptr == '#') - { - if ((ptr - line) == 0 || ft_iswhitespace(*(ptr - 1)) == TRUE) - { - *ptr = '\0'; - return ; - } - } - ptr++; - } -} - static t_bool p_check_whitespaces_only(char line[]) { @@ -61,7 +41,6 @@ static t_bool void p_line(char line[], t_msh *msh) { - p_delete_comments(line); if (p_check_whitespaces_only(line) == TRUE) { return ; |