summaryrefslogtreecommitdiffstats
path: root/src/p_args.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/p_args.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/p_args.c b/src/p_args.c
index f50d52b..6a238ed 100644
--- a/src/p_args.c
+++ b/src/p_args.c
@@ -20,7 +20,7 @@
#include "u_parse.h"
#include "u_utils.h"
-static void p_meet_bs(char *ptr, t_quote_mode mode)
+static void p_meet_bs(char *ptr, t_quote_mode mode)
{
if (mode != Q_SINGLE)
{
@@ -32,7 +32,9 @@ static void p_meet_bs(char *ptr, t_quote_mode mode)
}
}
-static t_bool p_meet_whitespace(char *head, char *ptr, t_quote_mode mode)
+static t_bool p_meet_whitespace(char *head,
+ char *ptr,
+ t_quote_mode mode)
{
if (mode == Q_NONE && u_is_not_escaped(head, ptr) == TRUE)
{
@@ -41,7 +43,7 @@ static t_bool p_meet_whitespace(char *head, char *ptr, t_quote_mode mode)
return (FALSE);
}
-static char *p_skip_whitespace(char *ptr)
+static char *p_skip_whitespace(char *ptr)
{
while (*ptr != C_NUL && ft_iswhitespace(*ptr))
ptr++;
@@ -53,11 +55,11 @@ static char *p_skip_whitespace(char *ptr)
*/
static unsigned short p_count_args(const char word[],
- size_t start[],
- unsigned short count,
- t_quote_mode mode)
+ size_t start[],
+ unsigned short count,
+ t_quote_mode mode)
{
- char *ptr;
+ char *ptr;
ptr = (char *)word;
ptr = p_skip_whitespace(ptr);
@@ -83,10 +85,10 @@ static unsigned short p_count_args(const char word[],
return (count);
}
-char **p_split_args(char word[])
+char **p_split_args(char word[])
{
- size_t start[512];
- char **words;
+ size_t start[512];
+ char **words;
unsigned short argc;
unsigned short to_del;