From: yangxx Date: Wed, 6 Aug 2003 12:49:26 +0000 (+0000) Subject: git-svn-id: http://ltt.polymtl.ca/svn@168 04897980-b3bd-0310-b5e0-8ef037075253 X-Git-Tag: v0.12.20~3321 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=02007847f865c0d2f50979b5ceecbdeec5ef7b97;p=lttv.git git-svn-id: ltt.polymtl.ca/svn@168 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/ltt/type.c b/ltt/branches/poly/ltt/type.c index b34627c1..21636c24 100644 --- a/ltt/branches/poly/ltt/type.c +++ b/ltt/branches/poly/ltt/type.c @@ -239,10 +239,11 @@ unsigned ltt_type_member_number(LttType *t) * LttType * : the type of structure member ****************************************************************************/ -LttType *ltt_type_member_type(LttType *t, unsigned i) +LttType *ltt_type_member_type(LttType *t, unsigned i, char ** name) { - if(t->type_class != LTT_STRUCT) return NULL; - if(i >= t->element_number || i < 0 ) return NULL; + if(t->type_class != LTT_STRUCT){*name == NULL; return NULL;} + if(i >= t->element_number || i < 0 ){*name = NULL; return NULL;} + *name = t->element_name; return t->element_type[i]; }