findsubname(), use skip_back_ws()
This commit is contained in:
parent
270e0b6154
commit
cbd38fdc9c
|
|
@ -161,10 +161,8 @@ findsubname(dico_t *dico, SPICE_DSTRINGPTR dstr_p)
|
||||||
while (p > s) {
|
while (p > s) {
|
||||||
|
|
||||||
/* skip space, then non-space */
|
/* skip space, then non-space */
|
||||||
while ((p > s) && (p[-1] <= ' '))
|
char *p_end = p = skip_back_ws(p, s); /* at p_end: space */
|
||||||
p--;
|
|
||||||
|
|
||||||
char *p_end = p; /* at p_end: space */
|
|
||||||
while ((p > s) && (p[-1] > ' ')) {
|
while ((p > s) && (p[-1] > ' ')) {
|
||||||
|
|
||||||
if (p[-1] == '}') {
|
if (p[-1] == '}') {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue