* Author: Sebastian Hack
* Created: 29.11.2004
* CVS-ID: $Id$
- * Copyright: (c) 1998-2004 Universität Karlsruhe
+ * Copyright: (c) 1998-2006 Universität Karlsruhe
* Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE.
*/
case symconst_type_tag: /* type tag */
snprintf(tv_buf, sizeof(tv_buf), "<ID:%s>", get_type_name(get_SymConst_type(X)));
break;
- case symconst_size: /* type size */
+ case symconst_type_size: /* type size */
snprintf(tv_buf, sizeof(tv_buf), "<SIZE:%s>", get_type_name(get_SymConst_type(X)));
break;
+ case symconst_type_align: /* type alignment */
+ snprintf(tv_buf, sizeof(tv_buf), "<ALIGN:%s>", get_type_name(get_SymConst_type(X)));
+ break;
case symconst_addr_name: /* linker name */
snprintf(tv_buf, sizeof(tv_buf), "<EXT:%s>", get_id_str(get_SymConst_name(X)));
break;
case symconst_addr_ent: /* entity name */
snprintf(tv_buf, sizeof(tv_buf), "<%s>", get_entity_name(get_SymConst_entity(X)));
break;
+ case symconst_enum_const: /* enumeration constant */
+ snprintf(tv_buf, sizeof(tv_buf), "<ENUM:%s>", get_enumeration_name(get_SymConst_enum(X)));
+ break;
default:
tv_buf[0] = '\0';
}
case 'h':
len_str = "h";
len = len_short;
- if((ch = fmt[++i]) == 'h') {
+ ++i;
+ if((ch = fmt[i]) == 'h') {
len_str = "hh";
len = len_char;
+ ++i;
}
break;
case 'l':
len_str = "l";
len = len_long;
- if((ch = fmt[++i]) == 'l') {
+ ++i;
+ if ((ch = fmt[i]) == 'l') {
len_str = "ll";
len = len_long_long;
+ ++i;
+ }
+ else if ((ch = fmt[i]) == 'u') {
+ len_str = "lu";
+ len = len_long_long;
+ ++i;
}
break;