[CLASSES]: Introduce list heads for definitions and forward declarations
In struct cus, that will be used when rebuilding class definitions for enums, struct pointers, struct definitions, etc, in ctracer for a start. Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
parent
86e083e47b
commit
7d581ce17c
|
@ -1840,8 +1840,11 @@ struct cus *cus__new(void)
|
|||
{
|
||||
struct cus *self = malloc(sizeof(*self));
|
||||
|
||||
if (self != NULL)
|
||||
if (self != NULL) {
|
||||
INIT_LIST_HEAD(&self->cus);
|
||||
INIT_LIST_HEAD(&self->definitions);
|
||||
INIT_LIST_HEAD(&self->fwd_decls);
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
|
||||
struct cus {
|
||||
struct list_head cus;
|
||||
struct list_head definitions;
|
||||
struct list_head fwd_decls;
|
||||
};
|
||||
|
||||
struct cu {
|
||||
|
@ -50,6 +52,7 @@ struct class {
|
|||
struct tag tag;
|
||||
struct cu *cu;
|
||||
struct list_head members;
|
||||
struct list_head node;
|
||||
const char *name;
|
||||
uint64_t size;
|
||||
struct {
|
||||
|
|
Loading…
Reference in New Issue