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

Separate the KeywordExt from the list node that points to it.

This commit is contained in:
Bruno Haible
2002-11-20 12:58:14 +00:00
parent 2cd11405ed
commit befb3d467e
4 changed files with 17 additions and 8 deletions

View File

@@ -299,7 +299,7 @@ parse_line (const char *line, const char *delimiters)
}
lp++;
}
return new KeywordExt_List (key, kp - key, option[TYPE] ? lp : "");
return new KeywordExt_List (new KeywordExt (key, kp - key, option[TYPE] ? lp : ""));
}
else
{
@@ -312,7 +312,7 @@ parse_line (const char *line, const char *delimiters)
else
/* Skip the first delimiter. */
rest = &line[len + 1];
return new KeywordExt_List (line, len, option[TYPE] ? rest : "");
return new KeywordExt_List (new KeywordExt (line, len, option[TYPE] ? rest : ""));
}
}