projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix compare
[lttv.git]
/
ltt
/
branches
/
poly
/
ltt
/
type.c
diff --git
a/ltt/branches/poly/ltt/type.c
b/ltt/branches/poly/ltt/type.c
index a1563d04a494e776f5195e9b51074dd5b09aca18..d759f325d4a121bba3a78174671bce4bb10d093b 100644
(file)
--- a/
ltt/branches/poly/ltt/type.c
+++ b/
ltt/branches/poly/ltt/type.c
@@
-146,10
+146,14
@@
size_t ltt_type_size(LttTrace * trace, LttType *t)
size_t size;
switch(t->type_class) {
size_t size;
switch(t->type_class) {
-
+ case LTT_INT_FIXED:
+ case LTT_UINT_FIXED:
+ case LTT_CHAR:
+ case LTT_UCHAR:
+ case LTT_SHORT:
+ case LTT_USHORT:
case LTT_INT:
case LTT_UINT:
case LTT_INT:
case LTT_UINT:
- case LTT_SEQUENCE:
case LTT_ENUM:
if(likely(t->size < INT_SIZES_NUMBER))
size = intSizes[t->size];
case LTT_ENUM:
if(likely(t->size < INT_SIZES_NUMBER))
size = intSizes[t->size];
@@
-167,11
+171,13
@@
size_t ltt_type_size(LttTrace * trace, LttType *t)
case LTT_ULONG:
case LTT_SIZE_T:
case LTT_SSIZE_T:
case LTT_ULONG:
case LTT_SIZE_T:
case LTT_SSIZE_T:
+ case LTT_SEQUENCE:
case LTT_OFF_T:
case LTT_STRING:
case LTT_ARRAY:
case LTT_STRUCT:
case LTT_UNION:
case LTT_OFF_T:
case LTT_STRING:
case LTT_ARRAY:
case LTT_STRUCT:
case LTT_UNION:
+ case LTT_NONE:
goto error;
break;
}
goto error;
break;
}
@@
-371,7
+377,7
@@
int ltt_field_size(LttField * f)
guint ltt_eventtype_num_fields(LttEventType *event_type)
{
guint ltt_eventtype_num_fields(LttEventType *event_type)
{
- if(unlikely(!event_type)) return
NULL
;
+ if(unlikely(!event_type)) return
0
;
return event_type->fields->len;
return event_type->fields->len;
This page took
0.022875 seconds
and
4
git commands to generate.