mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-14 23:38:08 +02:00
trace: Use an unsigned char for the annotation type
This brings the array entry size down to 24 bytes, and we do allocate a lot of them. I've lazily fixed a tabs vs spaces style issue at the same time. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
parent
a8d6a3ead5
commit
2e07871e88
1 changed files with 7 additions and 7 deletions
|
|
@ -47,13 +47,13 @@ enum weston_debug_annotation_type {
|
|||
};
|
||||
|
||||
struct weston_debug_annotation {
|
||||
const char *key;
|
||||
enum weston_debug_annotation_type type;
|
||||
union {
|
||||
int ivalue;
|
||||
float fvalue;
|
||||
const char *svalue;
|
||||
};
|
||||
const char *key;
|
||||
union {
|
||||
int ivalue;
|
||||
float fvalue;
|
||||
const char *svalue;
|
||||
};
|
||||
unsigned char type;
|
||||
unsigned char parent;
|
||||
unsigned char key_size;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue