diff options
author | Jon Purdy <evincarofautumn@gmail.com> | 2015-05-01 23:35:11 +0300 |
---|---|---|
committer | Jon Purdy <evincarofautumn@gmail.com> | 2015-05-01 23:35:57 +0300 |
commit | 3b0df7898be0fd7357b9aceca98bfe5f73af109c (patch) | |
tree | b7bfac07238521009c4138f5f2555596e92dd531 /tools | |
parent | 9de07d8eb4f16dcedb2e6a08fa68778fd0c68711 (diff) |
[tools] Support Booleans in sgen-grep-binprot.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/sgen/sgen-grep-binprot.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/sgen/sgen-grep-binprot.c b/tools/sgen/sgen-grep-binprot.c index ae3b4227979..ead56195aa0 100644 --- a/tools/sgen/sgen-grep-binprot.c +++ b/tools/sgen/sgen-grep-binprot.c @@ -207,6 +207,7 @@ typedef struct { #define TYPE_LONGLONG 1 #define TYPE_SIZE 2 #define TYPE_POINTER 3 +#define TYPE_BOOL 4 static void print_entry_content (int entries_size, PrintEntry *entries, gboolean color_output) @@ -230,6 +231,9 @@ print_entry_content (int entries_size, PrintEntry *entries, gboolean color_outpu case TYPE_POINTER: printf ("%p", *(gpointer*) entries [i].data); break; + case TYPE_BOOL: + printf ("%s", *(gboolean*) entries [i].data ? "true" : "false"); + break; default: assert (0); } |