Makefile.in (write_entries_to_file): Quote words.

* Makefile.in (write_entries_to_file): Quote words.
        * gengtype.c: (read_input_line): Skip over leading white-space.

From-SVN: r138812
This commit is contained in:
Michael Matz 2008-08-06 16:10:22 +00:00 committed by Michael Matz
parent c660f13207
commit 1b77ee033f
3 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-08-06 Michael Matz <matz@suse.de>
* Makefile.in (write_entries_to_file): Quote words.
* gengtype.c: (read_input_line): Skip over leading white-space.
2008-08-06 Marc Gauthier <marc@tensilica.com>
* config.gcc: Match more processor names for Xtensa.

View File

@ -259,8 +259,8 @@ write_entries_to_file = $(shell rm -f $(2) || :) $(shell touch $(2)) \
$(foreach range, \
$(shell i=1; while test $$i -le $(words $(1)); do \
echo $$i; i=`expr $$i + $(write_entries_to_file_split)`; done), \
$(shell echo $(wordlist $(range), \
$(shell expr $(range) + $(write_entries_to_file_split) - 1), $(1)) \
$(shell echo "$(wordlist $(range), \
$(shell expr $(range) + $(write_entries_to_file_split) - 1), $(1))" \
| tr ' ' '\n' >> $(2)))
# --------

View File

@ -314,6 +314,10 @@ read_input_line (FILE *list, char **herep, char **linep,
char *line;
int c = getc (list);
/* Read over whitespace. */
while (c == '\n' || c == ' ')
c = getc (list);
if (c == EOF)
{
*linep = 0;