projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename "declaration" to "definition"
[babeltrace.git]
/
types
/
float.c
diff --git
a/types/float.c
b/types/float.c
index ae23a96c261ef92ce62404b40e1cac2e69e70def..c120ae3a756a2ec5f626f0a67f7c6b0742232dbd 100644
(file)
--- a/
types/float.c
+++ b/
types/float.c
@@
-20,19
+20,19
@@
#include <babeltrace/format.h>
static
#include <babeltrace/format.h>
static
-struct de
claration *_float_declara
tion_new(struct type *type,
- struct de
clara
tion_scope *parent_scope);
+struct de
finition *_float_defini
tion_new(struct type *type,
+ struct de
fini
tion_scope *parent_scope);
static
static
-void _float_de
claration_free(struct declaration *declara
tion);
+void _float_de
finition_free(struct definition *defini
tion);
void float_copy(struct stream_pos *destp,
const struct format *fdest,
struct stream_pos *srcp,
const struct format *fsrc,
void float_copy(struct stream_pos *destp,
const struct format *fdest,
struct stream_pos *srcp,
const struct format *fsrc,
- struct de
claration *declara
tion)
+ struct de
finition *defini
tion)
{
{
- struct de
clara
tion_float *_float =
- container_of(de
claration, struct declara
tion_float, p);
+ struct de
fini
tion_float *_float =
+ container_of(de
finition, struct defini
tion_float, p);
struct type_float *float_type = _float->type;
if (fsrc->float_copy == fdest->float_copy) {
struct type_float *float_type = _float->type;
if (fsrc->float_copy == fdest->float_copy) {
@@
-66,12
+66,13
@@
struct type_float *
float_type = g_new(struct type_float, 1);
type = &float_type->p;
float_type = g_new(struct type_float, 1);
type = &float_type->p;
+ type->id = CTF_TYPE_FLOAT;
type->name = g_quark_from_string(name);
type->alignment = alignment;
type->copy = float_copy;
type->type_free = _float_type_free;
type->name = g_quark_from_string(name);
type->alignment = alignment;
type->copy = float_copy;
type->type_free = _float_type_free;
- type->de
claration_new = _float_declara
tion_new;
- type->de
claration_free = _float_declara
tion_free;
+ type->de
finition_new = _float_defini
tion_new;
+ type->de
finition_free = _float_defini
tion_free;
type->ref = 1;
float_type->byte_order = byte_order;
type->ref = 1;
float_type->byte_order = byte_order;
@@
-85,15
+86,15
@@
struct type_float *
}
static
}
static
-struct de
clara
tion *
- _float_de
clara
tion_new(struct type *type,
-
struct declara
tion_scope *parent_scope)
+struct de
fini
tion *
+ _float_de
fini
tion_new(struct type *type,
+
struct defini
tion_scope *parent_scope)
{
struct type_float *float_type =
container_of(type, struct type_float, p);
{
struct type_float *float_type =
container_of(type, struct type_float, p);
- struct de
clara
tion_float *_float;
+ struct de
fini
tion_float *_float;
- _float = g_new(struct de
clara
tion_float, 1);
+ _float = g_new(struct de
fini
tion_float, 1);
type_ref(&float_type->p);
_float->p.type= type;
_float->type= float_type;
type_ref(&float_type->p);
_float->p.type= type;
_float->type= float_type;
@@
-103,10
+104,10
@@
struct declaration *
}
static
}
static
-void _float_de
claration_free(struct declaration *declara
tion)
+void _float_de
finition_free(struct definition *defini
tion)
{
{
- struct de
clara
tion_float *_float =
- container_of(de
claration, struct declara
tion_float, p);
+ struct de
fini
tion_float *_float =
+ container_of(de
finition, struct defini
tion_float, p);
type_unref(_float->p.type);
g_free(_float);
type_unref(_float->p.type);
g_free(_float);
This page took
0.026555 seconds
and
4
git commands to generate.