projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Namespace struct stream_pos
[babeltrace.git]
/
formats
/
ctf
/
types
/
float.c
diff --git
a/formats/ctf/types/float.c
b/formats/ctf/types/float.c
index 0cf9caeb6c7795212c53dc7d540c1a9fdd53b36e..f46e26aee2e8dabdbdea6b7d0544ed87ff4d8900 100644
(file)
--- a/
formats/ctf/types/float.c
+++ b/
formats/ctf/types/float.c
@@
-96,9
+96,9
@@
static void float_unlock(void)
assert(!ret);
}
assert(!ret);
}
-
int _ctf_float_copy(struct
stream_pos *destp,
+
static int _ctf_float_copy(struct bt_
stream_pos *destp,
struct definition_float *dest_definition,
struct definition_float *dest_definition,
- struct stream_pos *srcp,
+ struct
bt_
stream_pos *srcp,
const struct definition_float *src_definition)
{
int ret;
const struct definition_float *src_definition)
{
int ret;
@@
-165,7
+165,7
@@
int _ctf_float_copy(struct stream_pos *destp,
return 0;
}
return 0;
}
-int ctf_float_read(struct stream_pos *ppos, struct definition *definition)
+int ctf_float_read(struct
bt_
stream_pos *ppos, struct definition *definition)
{
struct definition_float *float_definition =
container_of(definition, struct definition_float, p);
{
struct definition_float *float_definition =
container_of(definition, struct definition_float, p);
@@
-216,13
+216,13
@@
int ctf_float_read(struct stream_pos *ppos, struct definition *definition)
}
end_unref:
}
end_unref:
- definition_unref(tmpdef);
+
bt_
definition_unref(tmpdef);
end:
float_unlock();
return ret;
}
end:
float_unlock();
return ret;
}
-int ctf_float_write(struct stream_pos *ppos, struct definition *definition)
+int ctf_float_write(struct
bt_
stream_pos *ppos, struct definition *definition)
{
struct definition_float *float_definition =
container_of(definition, struct definition_float, p);
{
struct definition_float *float_definition =
container_of(definition, struct definition_float, p);
@@
-272,28
+272,30
@@
int ctf_float_write(struct stream_pos *ppos, struct definition *definition)
ret = _ctf_float_copy(ppos, float_definition, &srcp.parent, tmpfloat);
end_unref:
ret = _ctf_float_copy(ppos, float_definition, &srcp.parent, tmpfloat);
end_unref:
- definition_unref(tmpdef);
+
bt_
definition_unref(tmpdef);
end:
float_unlock();
return ret;
}
end:
float_unlock();
return ret;
}
+static
void __attribute__((constructor)) ctf_float_init(void)
{
static_float_declaration =
void __attribute__((constructor)) ctf_float_init(void)
{
static_float_declaration =
- float_declaration_new(FLT_MANT_DIG,
+
bt_
float_declaration_new(FLT_MANT_DIG,
sizeof(float) * CHAR_BIT - FLT_MANT_DIG,
BYTE_ORDER,
__alignof__(float));
static_double_declaration =
sizeof(float) * CHAR_BIT - FLT_MANT_DIG,
BYTE_ORDER,
__alignof__(float));
static_double_declaration =
- float_declaration_new(DBL_MANT_DIG,
+
bt_
float_declaration_new(DBL_MANT_DIG,
sizeof(double) * CHAR_BIT - DBL_MANT_DIG,
BYTE_ORDER,
__alignof__(double));
}
sizeof(double) * CHAR_BIT - DBL_MANT_DIG,
BYTE_ORDER,
__alignof__(double));
}
+static
void __attribute__((destructor)) ctf_float_fini(void)
{
void __attribute__((destructor)) ctf_float_fini(void)
{
- declaration_unref(&static_float_declaration->p);
- declaration_unref(&static_double_declaration->p);
+
bt_
declaration_unref(&static_float_declaration->p);
+
bt_
declaration_unref(&static_double_declaration->p);
}
}
This page took
0.024941 seconds
and
4
git commands to generate.