1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 13:09:22 +00:00

No need any more to NUL terminate keys.

This commit is contained in:
Bruno Haible
2000-08-21 08:54:19 +00:00
parent 8df0d1ea87
commit d22dd3f6e6

View File

@@ -213,7 +213,7 @@ Key_List::set_output_types (void)
/* Extracts a key from an input line and creates a new List_Node for it. */
static List_Node *
parse_line (char *line, const char *delimiters)
parse_line (const char *line, const char *delimiters)
{
if (*line == '"')
{
@@ -342,12 +342,8 @@ parse_line (char *line, const char *delimiters)
if (line[len] == '\0')
rest = "";
else
{
/* Quick hack to separate the key from the rest, killing the first
delimiter. */
line[len] = '\0';
/* Skip the first delimiter. */
rest = &line[len + 1];
}
return new List_Node (line, len, option[TYPE] ? rest : "");
}
}