Arjan Opmeer
2004-01-22 02:23:37 UTC
Hi,
I was wondering why the SLang_RLine_Info_Type.root pointer is never
initialised.
I imagine it is supposed to point to the start of the linked list of lines
saved with SLang_rline_save_line. It would be useful for maintaining a
history of lines with a fixed number of entries. Each time a new line is
saved to the tail the oldest entry pointed to by root could be discarded.
So I think something like this is missing from SLang_rline_save_line:
if (rli->root == NULL)
{
rli->root = rl;
}
What do you think...?
Arjan
I was wondering why the SLang_RLine_Info_Type.root pointer is never
initialised.
I imagine it is supposed to point to the start of the linked list of lines
saved with SLang_rline_save_line. It would be useful for maintaining a
history of lines with a fixed number of entries. Each time a new line is
saved to the tail the oldest entry pointed to by root could be discarded.
So I think something like this is missing from SLang_rline_save_line:
if (rli->root == NULL)
{
rli->root = rl;
}
What do you think...?
Arjan