Function signatures across lines
This commit is contained in:
@@ -31,17 +31,20 @@ static PHistory history;
|
||||
|
||||
void _stringify_input(char *inp, int size, char *string);
|
||||
|
||||
void history_init(void)
|
||||
void
|
||||
history_init(void)
|
||||
{
|
||||
history = p_history_new(MAX_HISTORY);
|
||||
}
|
||||
|
||||
void history_append(char *inp)
|
||||
void
|
||||
history_append(char *inp)
|
||||
{
|
||||
p_history_append(history, inp);
|
||||
}
|
||||
|
||||
char * history_previous(char *inp, int *size)
|
||||
char *
|
||||
history_previous(char *inp, int *size)
|
||||
{
|
||||
char inp_str[*size + 1];
|
||||
_stringify_input(inp, *size, inp_str);
|
||||
@@ -49,7 +52,8 @@ char * history_previous(char *inp, int *size)
|
||||
return p_history_previous(history, inp_str);
|
||||
}
|
||||
|
||||
char *history_next(char *inp, int *size)
|
||||
char *
|
||||
history_next(char *inp, int *size)
|
||||
{
|
||||
char inp_str[*size + 1];
|
||||
_stringify_input(inp, *size, inp_str);
|
||||
@@ -57,7 +61,8 @@ char *history_next(char *inp, int *size)
|
||||
return p_history_next(history, inp_str);
|
||||
}
|
||||
|
||||
void _stringify_input(char *inp, int size, char *string)
|
||||
void
|
||||
_stringify_input(char *inp, int size, char *string)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < size; i++) {
|
||||
@@ -65,5 +70,3 @@ void _stringify_input(char *inp, int size, char *string)
|
||||
}
|
||||
string[size] = '\0';
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user