125 |
|
|
126 |
/* |
/* |
127 |
* Common processing for each XARGS_XXXX type. |
* Common processing for each XARGS_XXXX type. |
|
* |
|
|
* o Always ignore path names which start with a blank. |
|
128 |
*/ |
*/ |
129 |
#define APPEND_ARGUMENT(p) {\ |
#define APPEND_ARGUMENT(p) {\ |
130 |
char *path = (p);\ |
char *path = (p);\ |
|
int skip = 0;\ |
|
131 |
length = strlen(path);\ |
length = strlen(path);\ |
132 |
if (*path == ' ')\ |
if (*path == ' ') {\ |
133 |
|
if (!test("b", ++path))\ |
134 |
|
gpath_put(path, 1);\ |
135 |
continue;\ |
continue;\ |
136 |
|
}\ |
137 |
if (strbuf_getlen(comline) + length > limit)\ |
if (strbuf_getlen(comline) + length > limit)\ |
138 |
break;\ |
break;\ |
139 |
xp->seqno++;\ |
xp->seqno++;\ |
140 |
if (xp->put_gpath)\ |
if (xp->put_gpath)\ |
141 |
gpath_put(path);\ |
gpath_put(path, 0);\ |
142 |
if (xp->skip_assembly && locatestring(path, ".s", MATCH_AT_LAST|IGNORE_CASE) != NULL)\ |
if (xp->skip_assembly && locatestring(path, ".s", MATCH_AT_LAST|IGNORE_CASE) != NULL) {\ |
143 |
skip = 1;\ |
if (xp->verbose)\ |
144 |
if (xp->verbose)\ |
xp->verbose(path + 2, xp->seqno, 1);\ |
145 |
xp->verbose(path + 2, xp->seqno, skip);\ |
} else {\ |
146 |
if (!skip) {\ |
if (xp->verbose)\ |
147 |
|
xp->verbose(path + 2, xp->seqno, 0);\ |
148 |
strbuf_putc(comline, ' ');\ |
strbuf_putc(comline, ' ');\ |
149 |
strbuf_puts(comline, path);\ |
strbuf_puts(comline, path);\ |
150 |
count++;\ |
count++;\ |