projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Namespace the struct definition
[babeltrace.git]
/
types
/
enum.c
diff --git
a/types/enum.c
b/types/enum.c
index 6d3371395621a9e3a78737509788d069b1b38502..e967e14d17da58dc8b68b0250622c2cf245ac21d 100644
(file)
--- a/
types/enum.c
+++ b/
types/enum.c
@@
-41,12
+41,12
@@
#endif
static
#endif
static
-struct definition *_enum_definition_new(struct declaration *declaration,
+struct
bt_
definition *_enum_definition_new(struct declaration *declaration,
struct definition_scope *parent_scope,
GQuark field_name, int index,
const char *root_name);
static
struct definition_scope *parent_scope,
GQuark field_name, int index,
const char *root_name);
static
-void _enum_definition_free(struct definition *definition);
+void _enum_definition_free(struct
bt_
definition *definition);
static
void enum_range_set_free(void *ptr)
static
void enum_range_set_free(void *ptr)
@@
-417,7
+417,7
@@
struct declaration_enum *
}
static
}
static
-struct definition *
+struct
bt_
definition *
_enum_definition_new(struct declaration *declaration,
struct definition_scope *parent_scope,
GQuark field_name, int index,
_enum_definition_new(struct declaration *declaration,
struct definition_scope *parent_scope,
GQuark field_name, int index,
@@
-426,7
+426,7
@@
struct definition *
struct declaration_enum *enum_declaration =
container_of(declaration, struct declaration_enum, p);
struct definition_enum *_enum;
struct declaration_enum *enum_declaration =
container_of(declaration, struct declaration_enum, p);
struct definition_enum *_enum;
- struct definition *definition_integer_parent;
+ struct
bt_
definition *definition_integer_parent;
int ret;
_enum = g_new(struct definition_enum, 1);
int ret;
_enum = g_new(struct definition_enum, 1);
@@
-440,10
+440,10
@@
struct definition *
*/
_enum->p.index = root_name ? INT_MAX : index;
_enum->p.name = field_name;
*/
_enum->p.index = root_name ? INT_MAX : index;
_enum->p.name = field_name;
- _enum->p.path = new_definition_path(parent_scope, field_name, root_name);
- _enum->p.scope = new_definition_scope(parent_scope, field_name, root_name);
+ _enum->p.path =
bt_
new_definition_path(parent_scope, field_name, root_name);
+ _enum->p.scope =
bt_
new_definition_scope(parent_scope, field_name, root_name);
_enum->value = NULL;
_enum->value = NULL;
- ret = register_field_definition(field_name, &_enum->p,
+ ret =
bt_
register_field_definition(field_name, &_enum->p,
parent_scope);
assert(!ret);
definition_integer_parent =
parent_scope);
assert(!ret);
definition_integer_parent =
@@
-456,13
+456,13
@@
struct definition *
}
static
}
static
-void _enum_definition_free(struct definition *definition)
+void _enum_definition_free(struct
bt_
definition *definition)
{
struct definition_enum *_enum =
container_of(definition, struct definition_enum, p);
bt_definition_unref(&_enum->integer->p);
{
struct definition_enum *_enum =
container_of(definition, struct definition_enum, p);
bt_definition_unref(&_enum->integer->p);
- free_definition_scope(_enum->p.scope);
+
bt_
free_definition_scope(_enum->p.scope);
bt_declaration_unref(_enum->p.declaration);
if (_enum->value)
g_array_unref(_enum->value);
bt_declaration_unref(_enum->p.declaration);
if (_enum->value)
g_array_unref(_enum->value);
This page took
0.024673 seconds
and
4
git commands to generate.