mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
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:
committed by
Søren Sandmann Pedersen
parent
0b718ee95c
commit
cce917856b
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user