[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Groff] understanding groff's source code
From: |
Ulrich Lauther |
Subject: |
[Groff] understanding groff's source code |
Date: |
Mon, 29 Sep 2014 00:46:32 +0200 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
Hi,
I am trying to read and understand groff source code, which is - at least for
me - not easy.
In case of questions, should one ask on the list or are there specialists who
are able and willing to help?
An example:
In input.cpp there is a linked list class "node_list".
Member functions are not commented, but what length(), append(), constructor and
destructor do is obvious.
However, not so for extract(). One would expect that an element of the list
is extracted - as the list is singly linked, the first element - and that the
rest
of the list stays intact. However, head and tail are set to zero, i.e. the list
becomes empty. But what happens to the other elements? Are memory leaks
generated?
Why is delete_node_list() not called? And btw. why is node_list in input.cpp but
delete_node_list() in node.cpp?
As I remarked in an earlier post, a short explanation explaining the idea of a
class
would be VERY helpful. E.g., what does a node-object represent? Here the reader
is left in the dark.
Cheers,
ulrich
- [Groff] understanding groff's source code,
Ulrich Lauther <=