186 |
static char *test_for_include (const char *buffer) |
static char *test_for_include (const char *buffer) |
187 |
{ |
{ |
188 |
/* strip out any leading whitespace (if any) */ |
/* strip out any leading whitespace (if any) */ |
189 |
while (isspace ((int) *buffer)) |
while (CTYPE (isspace, *buffer)) |
190 |
buffer++; |
buffer++; |
191 |
|
|
192 |
/* see if the `command' is a .so */ |
/* see if the `command' is a .so */ |
195 |
|
|
196 |
/* strip out any whitespace between the command and |
/* strip out any whitespace between the command and |
197 |
it's argumant */ |
it's argumant */ |
198 |
while (isspace ((int) *buffer)) |
while (CTYPE (isspace, *buffer)) |
199 |
buffer++; |
buffer++; |
200 |
|
|
201 |
/* If .so's argument is an absolute filename, it could be |
/* If .so's argument is an absolute filename, it could be |
209 |
* ultimate source file */ |
* ultimate source file */ |
210 |
if (*buffer != '/') { |
if (*buffer != '/') { |
211 |
const char *end = buffer; |
const char *end = buffer; |
212 |
while (*end && !isspace (*end)) |
while (*end && !CTYPE (isspace, *end)) |
213 |
++end; |
++end; |
214 |
return xstrndup (buffer, end - buffer); |
return xstrndup (buffer, end - buffer); |
215 |
} |
} |