Style: fix indendation of VarModify().
Patch: 7.107 Submitted by: Max Okumoto <okumoto@ucsd.edu>
This commit is contained in:
parent
44c51b91c7
commit
559a7bb274
@ -600,25 +600,25 @@ Var_Value(const char *name, GNode *ctxt, char **frp)
|
|||||||
static char *
|
static char *
|
||||||
VarModify(char *str, VarModifyProc *modProc, void *datum)
|
VarModify(char *str, VarModifyProc *modProc, void *datum)
|
||||||
{
|
{
|
||||||
Buffer *buf; /* Buffer for the new string */
|
Buffer *buf; /* Buffer for the new string */
|
||||||
Boolean addSpace; /* TRUE if need to add a space to the
|
Boolean addSpace; /* TRUE if need to add a space to the buffer
|
||||||
* buffer before adding the trimmed
|
* before adding the trimmed word */
|
||||||
* word */
|
char **av; /* word list [first word does not count] */
|
||||||
char **av; /* word list [first word does not count] */
|
int ac;
|
||||||
int ac, i;
|
int i;
|
||||||
|
|
||||||
buf = Buf_Init(0);
|
buf = Buf_Init(0);
|
||||||
addSpace = FALSE;
|
addSpace = FALSE;
|
||||||
|
|
||||||
av = brk_string(str, &ac, FALSE);
|
av = brk_string(str, &ac, FALSE);
|
||||||
|
|
||||||
for (i = 1; i < ac; i++)
|
for (i = 1; i < ac; i++)
|
||||||
addSpace = (*modProc)(av[i], addSpace, buf, datum);
|
addSpace = (*modProc)(av[i], addSpace, buf, datum);
|
||||||
|
|
||||||
Buf_AddByte(buf, '\0');
|
Buf_AddByte(buf, '\0');
|
||||||
str = (char *)Buf_GetAll(buf, (size_t *)NULL);
|
str = (char *)Buf_GetAll(buf, (size_t *)NULL);
|
||||||
Buf_Destroy(buf, FALSE);
|
Buf_Destroy(buf, FALSE);
|
||||||
return (str);
|
return (str);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
|
Loading…
x
Reference in New Issue
Block a user