projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
namespace the int functions
[babeltrace.git]
/
types
/
enum.c
diff --git
a/types/enum.c
b/types/enum.c
index 2ea40ba482449885355ae3dd95f30476e6dc8cb6..6d3371395621a9e3a78737509788d069b1b38502 100644
(file)
--- a/
types/enum.c
+++ b/
types/enum.c
@@
-124,7
+124,7
@@
void enum_val_free(void *ptr)
* Returns a GArray or NULL.
* Caller must release the GArray with g_array_unref().
*/
* Returns a GArray or NULL.
* Caller must release the GArray with g_array_unref().
*/
-GArray *enum_uint_to_quark_set(const struct declaration_enum *enum_declaration,
+GArray *
bt_
enum_uint_to_quark_set(const struct declaration_enum *enum_declaration,
uint64_t v)
{
struct enum_range_to_quark *iter;
uint64_t v)
{
struct enum_range_to_quark *iter;
@@
-171,7
+171,7
@@
GArray *enum_uint_to_quark_set(const struct declaration_enum *enum_declaration,
* Returns a GArray or NULL.
* Caller must release the GArray with g_array_unref().
*/
* Returns a GArray or NULL.
* Caller must release the GArray with g_array_unref().
*/
-GArray *enum_int_to_quark_set(const struct declaration_enum *enum_declaration,
+GArray *
bt_
enum_int_to_quark_set(const struct declaration_enum *enum_declaration,
int64_t v)
{
struct enum_range_to_quark *iter;
int64_t v)
{
struct enum_range_to_quark *iter;
@@
-215,7
+215,7
@@
GArray *enum_int_to_quark_set(const struct declaration_enum *enum_declaration,
}
static
}
static
-void enum_unsigned_insert_value_to_quark_set(struct declaration_enum *enum_declaration,
+void
bt_
enum_unsigned_insert_value_to_quark_set(struct declaration_enum *enum_declaration,
uint64_t v, GQuark q)
{
uint64_t *valuep;
uint64_t v, GQuark q)
{
uint64_t *valuep;
@@
-241,7
+241,7
@@
void enum_unsigned_insert_value_to_quark_set(struct declaration_enum *enum_decla
}
static
}
static
-void enum_signed_insert_value_to_quark_set(struct declaration_enum *enum_declaration,
+void
bt_
enum_signed_insert_value_to_quark_set(struct declaration_enum *enum_declaration,
int64_t v, GQuark q)
{
int64_t *valuep;
int64_t v, GQuark q)
{
int64_t *valuep;
@@
-266,7
+266,7
@@
void enum_signed_insert_value_to_quark_set(struct declaration_enum *enum_declara
}
}
}
}
-GArray *enum_quark_to_range_set(const struct declaration_enum *enum_declaration,
+GArray *
bt_
enum_quark_to_range_set(const struct declaration_enum *enum_declaration,
GQuark q)
{
return g_hash_table_lookup(enum_declaration->table.quark_to_range_set,
GQuark q)
{
return g_hash_table_lookup(enum_declaration->table.quark_to_range_set,
@@
-274,7
+274,7
@@
GArray *enum_quark_to_range_set(const struct declaration_enum *enum_declaration,
}
static
}
static
-void enum_signed_insert_range_to_quark(struct declaration_enum *enum_declaration,
+void
bt_
enum_signed_insert_range_to_quark(struct declaration_enum *enum_declaration,
int64_t start, int64_t end, GQuark q)
{
struct enum_range_to_quark *rtoq;
int64_t start, int64_t end, GQuark q)
{
struct enum_range_to_quark *rtoq;
@@
-287,7
+287,7
@@
void enum_signed_insert_range_to_quark(struct declaration_enum *enum_declaration
}
static
}
static
-void enum_unsigned_insert_range_to_quark(struct declaration_enum *enum_declaration,
+void
bt_
enum_unsigned_insert_range_to_quark(struct declaration_enum *enum_declaration,
uint64_t start, uint64_t end, GQuark q)
{
struct enum_range_to_quark *rtoq;
uint64_t start, uint64_t end, GQuark q)
{
struct enum_range_to_quark *rtoq;
@@
-299,14
+299,14
@@
void enum_unsigned_insert_range_to_quark(struct declaration_enum *enum_declarati
rtoq->quark = q;
}
rtoq->quark = q;
}
-void enum_signed_insert(struct declaration_enum *enum_declaration,
+void
bt_
enum_signed_insert(struct declaration_enum *enum_declaration,
int64_t start, int64_t end, GQuark q)
{
GArray *array;
struct enum_range *range;
if (start == end) {
int64_t start, int64_t end, GQuark q)
{
GArray *array;
struct enum_range *range;
if (start == end) {
- enum_signed_insert_value_to_quark_set(enum_declaration, start, q);
+
bt_
enum_signed_insert_value_to_quark_set(enum_declaration, start, q);
} else {
if (start > end) {
uint64_t tmp;
} else {
if (start > end) {
uint64_t tmp;
@@
-315,7
+315,7
@@
void enum_signed_insert(struct declaration_enum *enum_declaration,
start = end;
end = tmp;
}
start = end;
end = tmp;
}
- enum_signed_insert_range_to_quark(enum_declaration, start, end, q);
+
bt_
enum_signed_insert_range_to_quark(enum_declaration, start, end, q);
}
array = g_hash_table_lookup(enum_declaration->table.quark_to_range_set,
}
array = g_hash_table_lookup(enum_declaration->table.quark_to_range_set,
@@
-333,7
+333,7
@@
void enum_signed_insert(struct declaration_enum *enum_declaration,
range->end._signed = end;
}
range->end._signed = end;
}
-void enum_unsigned_insert(struct declaration_enum *enum_declaration,
+void
bt_
enum_unsigned_insert(struct declaration_enum *enum_declaration,
uint64_t start, uint64_t end, GQuark q)
{
GArray *array;
uint64_t start, uint64_t end, GQuark q)
{
GArray *array;
@@
-341,7
+341,7
@@
void enum_unsigned_insert(struct declaration_enum *enum_declaration,
if (start == end) {
if (start == end) {
- enum_unsigned_insert_value_to_quark_set(enum_declaration, start, q);
+
bt_
enum_unsigned_insert_value_to_quark_set(enum_declaration, start, q);
} else {
if (start > end) {
uint64_t tmp;
} else {
if (start > end) {
uint64_t tmp;
@@
-350,7
+350,7
@@
void enum_unsigned_insert(struct declaration_enum *enum_declaration,
start = end;
end = tmp;
}
start = end;
end = tmp;
}
- enum_unsigned_insert_range_to_quark(enum_declaration, start, end, q);
+
bt_
enum_unsigned_insert_range_to_quark(enum_declaration, start, end, q);
}
array = g_hash_table_lookup(enum_declaration->table.quark_to_range_set,
}
array = g_hash_table_lookup(enum_declaration->table.quark_to_range_set,
@@
-368,7
+368,7
@@
void enum_unsigned_insert(struct declaration_enum *enum_declaration,
range->end._unsigned = end;
}
range->end._unsigned = end;
}
-size_t enum_get_nr_enumerators(struct declaration_enum *enum_declaration)
+size_t
bt_
enum_get_nr_enumerators(struct declaration_enum *enum_declaration)
{
return g_hash_table_size(enum_declaration->table.quark_to_range_set);
}
{
return g_hash_table_size(enum_declaration->table.quark_to_range_set);
}
@@
-391,7
+391,7
@@
void _enum_declaration_free(struct declaration *declaration)
}
struct declaration_enum *
}
struct declaration_enum *
- enum_declaration_new(struct declaration_integer *integer_declaration)
+
bt_
enum_declaration_new(struct declaration_integer *integer_declaration)
{
struct declaration_enum *enum_declaration;
{
struct declaration_enum *enum_declaration;
@@
-461,7
+461,7
@@
void _enum_definition_free(struct definition *definition)
struct definition_enum *_enum =
container_of(definition, struct definition_enum, p);
struct definition_enum *_enum =
container_of(definition, struct definition_enum, p);
- definition_unref(&_enum->integer->p);
+
bt_
definition_unref(&_enum->integer->p);
free_definition_scope(_enum->p.scope);
bt_declaration_unref(_enum->p.declaration);
if (_enum->value)
free_definition_scope(_enum->p.scope);
bt_declaration_unref(_enum->p.declaration);
if (_enum->value)
This page took
0.026742 seconds
and
4
git commands to generate.