diff options
author | Paul Smith <psmith@gnu.org> | 1997-08-18 18:11:04 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 1997-08-18 18:11:04 +0000 |
commit | 63dff1e0bcb9e1bdd189e4a3e0d6126389251885 (patch) | |
tree | f8b39c21a6c709622d4fcc18f40539477a5ceb1a /function.c | |
parent | e746a9c9510b2cc83548e8d9108eb24540e7a821 (diff) | |
download | gunmake-63dff1e0bcb9e1bdd189e4a3e0d6126389251885.tar.gz |
Bug fixes and automake changes.
Diffstat (limited to 'function.c')
-rw-r--r-- | function.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1049,8 +1049,15 @@ expand_function (o, function, text, end) text = expand_argument (text, end); p2 = text; - while ((p = find_next_token (&p2, &i)) != 0) + while (*p2 != '\0') { + while (isspace(*p2)) + ++p2; + p = p2; + for (i=0; *p2 != '\0' && !isspace(*p2); ++p2, ++i) + {} + if (!i) + break; o = variable_buffer_output (o, p, i); o = variable_buffer_output (o, " ", 1); doneany = 1; |