*
* BabelTrace - Integer Type Converter
*
- * Copyright 2010, 2011 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ * Copyright 2010-2011 EfficiOS Inc. and Linux Foundation
+ *
+ * Author: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
struct declaration_integer *
integer_declaration_new(size_t len, int byte_order,
- int signedness, size_t alignment, int base)
+ int signedness, size_t alignment, int base,
+ enum ctf_string_encoding encoding)
{
struct declaration_integer *integer_declaration;
integer_declaration->byte_order = byte_order;
integer_declaration->signedness = signedness;
integer_declaration->base = base;
+ integer_declaration->encoding = encoding;
return integer_declaration;
}
integer->p.name = field_name;
integer->p.path = new_definition_path(parent_scope, field_name,
root_name);
+ integer->p.scope = NULL;
integer->value._unsigned = 0;
ret = register_field_definition(field_name, &integer->p,
parent_scope);