diff options
Diffstat (limited to 'src/p_args_escape.c')
-rw-r--r-- | src/p_args_escape.c | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/src/p_args_escape.c b/src/p_args_escape.c index abdf3b3..de00861 100644 --- a/src/p_args_escape.c +++ b/src/p_args_escape.c @@ -16,8 +16,7 @@ #include "d_define.h" #include "u_utils.h" -static t_quote_mode - p_escape_squote(char *ptr, char **p, char word[], t_quote_mode mode) +static t_quote_mode p_escape_squote(char *ptr, char **p, char word[], t_quote_mode mode) { if (mode == Q_NONE) { @@ -43,8 +42,7 @@ static t_quote_mode return (mode); } -static t_quote_mode - p_escape_dquote(char *ptr, char **p, char word[], t_quote_mode mode) +static t_quote_mode p_escape_dquote(char *ptr, char **p, char word[], t_quote_mode mode) { if (mode == Q_NONE) { @@ -70,8 +68,7 @@ static t_quote_mode return (mode); } -static void - p_escape_bs(char *ptr, char word[], t_quote_mode mode) +static void p_escape_bs(char *ptr, char word[], t_quote_mode mode) { if (mode == Q_NONE) { @@ -93,8 +90,7 @@ static void } } -static void - p_escape_arg(char word[]) +static void p_escape_arg(char word[]) { char *ptr; t_quote_mode mode; @@ -113,8 +109,7 @@ static void } } -static void - p_replace_bs(char *ptr) +static void p_replace_bs(char *ptr) { char *head; @@ -131,13 +126,15 @@ static void } } -void - p_args_escape_chars_and_quotes(char *words[]) +/* +** TODO: escape \ +** TODO: escape $# special vars +** TODO: comments ################ +** TODO: escape my life +*/ + +void p_args_escape_chars_and_quotes(char *words[]) { - /* TODO: escape \ */ - /* TODO: escape $# special vars */ - /* TODO: comments ################ */ - /* TODO: escape my life */ char **ptr; ptr = words; |