projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9de07d8
)
[tools] Support Booleans in sgen-grep-binprot.
author
Jon Purdy
<evincarofautumn@gmail.com>
Fri, 1 May 2015 20:35:11 +0000
(13:35 -0700)
committer
Jon Purdy
<evincarofautumn@gmail.com>
Fri, 1 May 2015 20:35:57 +0000
(13:35 -0700)
tools/sgen/sgen-grep-binprot.c
patch
|
blob
|
history
diff --git
a/tools/sgen/sgen-grep-binprot.c
b/tools/sgen/sgen-grep-binprot.c
index ae3b4227979f47da5725d936d1018ff8738123e0..ead56195aa0a778ebf7cc25adddcfde278e0d1d6 100644
(file)
--- 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);
}