Use stack allocated variables to avoid taking addresses of bitfields.

2006-11-19  Soren Sandmann <sandmann@redhat.com>

        * profile.c (profile_load): Use stack allocated variables to avoid
        taking addresses of bitfields.

        * stackstash.h (struct StackNode): Store toplevel as bitfield
This commit is contained in:
Soren Sandmann
2006-11-20 04:11:21 +00:00
committed by Søren Sandmann Pedersen
parent 0b718ee95c
commit cce917856b
3 changed files with 21 additions and 7 deletions

View File

@ -28,16 +28,16 @@ typedef struct StackNode StackNode;
struct StackNode
{
gpointer address;
int total;
int size;
guint total : 32;
guint size : 31;
guint toplevel : 1;
StackNode * parent;
StackNode * siblings;
StackNode * children;
StackNode * next;
gboolean toplevel;
};
typedef void (* StackFunction) (GList *trace,