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
/
string.c
diff --git
a/types/string.c
b/types/string.c
index 9a80b0387e0b33f4103af978dda0fe2ca639e29e..71b9f8232a73e3135551be939e5bc0a731bcd267 100644
(file)
--- a/
types/string.c
+++ b/
types/string.c
@@
-21,17
+21,17
@@
#include <babeltrace/format.h>
static
#include <babeltrace/format.h>
static
-struct de
claration *_string_declara
tion_new(struct type *type,
- struct de
clara
tion_scope *parent_scope);
+struct de
finition *_string_defini
tion_new(struct type *type,
+ struct de
fini
tion_scope *parent_scope);
static
static
-void _string_de
claration_free(struct declaration *declara
tion);
+void _string_de
finition_free(struct definition *defini
tion);
void string_copy(struct stream_pos *dest, const struct format *fdest,
struct stream_pos *src, const struct format *fsrc,
void string_copy(struct stream_pos *dest, const struct format *fdest,
struct stream_pos *src, const struct format *fsrc,
- struct de
claration *declara
tion)
+ struct de
finition *defini
tion)
{
{
- struct de
clara
tion_string *string =
- container_of(de
claration, struct declara
tion_string, p);
+ struct de
fini
tion_string *string =
+ container_of(de
finition, struct defini
tion_string, p);
struct type_string *string_type = string->type;
if (fsrc->string_copy == fdest->string_copy) {
struct type_string *string_type = string->type;
if (fsrc->string_copy == fdest->string_copy) {
@@
-63,22
+63,22
@@
struct type_string *string_type_new(const char *name)
string_type->p.alignment = CHAR_BIT;
string_type->p.copy = string_copy;
string_type->p.type_free = _string_type_free;
string_type->p.alignment = CHAR_BIT;
string_type->p.copy = string_copy;
string_type->p.type_free = _string_type_free;
- string_type->p.de
claration_new = _string_declara
tion_new;
- string_type->p.de
claration_free = _string_declara
tion_free;
+ string_type->p.de
finition_new = _string_defini
tion_new;
+ string_type->p.de
finition_free = _string_defini
tion_free;
string_type->p.ref = 1;
return string_type;
}
static
string_type->p.ref = 1;
return string_type;
}
static
-struct de
clara
tion *
- _string_de
clara
tion_new(struct type *type,
-
struct declara
tion_scope *parent_scope)
+struct de
fini
tion *
+ _string_de
fini
tion_new(struct type *type,
+
struct defini
tion_scope *parent_scope)
{
struct type_string *string_type =
container_of(type, struct type_string, p);
{
struct type_string *string_type =
container_of(type, struct type_string, p);
- struct de
clara
tion_string *string;
+ struct de
fini
tion_string *string;
- string = g_new(struct de
clara
tion_string, 1);
+ string = g_new(struct de
fini
tion_string, 1);
type_ref(&string_type->p);
string->p.type = type;
string->type = string_type;
type_ref(&string_type->p);
string->p.type = type;
string->type = string_type;
@@
-88,10
+88,10
@@
struct declaration *
}
static
}
static
-void _string_de
claration_free(struct declaration *declara
tion)
+void _string_de
finition_free(struct definition *defini
tion)
{
{
- struct de
clara
tion_string *string =
- container_of(de
claration, struct declara
tion_string, p);
+ struct de
fini
tion_string *string =
+ container_of(de
finition, struct defini
tion_string, p);
type_unref(string->p.type);
g_free(string->value);
type_unref(string->p.type);
g_free(string->value);
This page took
0.024956 seconds
and
4
git commands to generate.