projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bt2: ignore comparison to None flake8 warnings in test_value.py
[babeltrace.git]
/
src
/
ctf-writer
/
utils.c
diff --git
a/src/ctf-writer/utils.c
b/src/ctf-writer/utils.c
index 5ac824754772576fa97c174d64cde09fb59baba8..5c951ea99fbe2b6ee46f104076bf878848d88279 100644
(file)
--- a/
src/ctf-writer/utils.c
+++ b/
src/ctf-writer/utils.c
@@
-32,8
+32,8
@@
#include <glib.h>
#include <stdlib.h>
#include <glib.h>
#include <stdlib.h>
-#include <babeltrace2
/
ctf-writer/utils.h>
-#include <babeltrace2
/
ctf-writer/object.h>
+#include <babeltrace2
-
ctf-writer/utils.h>
+#include <babeltrace2
-
ctf-writer/object.h>
#include "common/assert.h"
#include "common/assert.h"
@@
-82,29
+82,29
@@
void trace_finalize(void)
}
}
}
}
-bt_bool bt_ctf_identifier_is_valid(const char *identifier)
+bt_
ctf_
bool bt_ctf_identifier_is_valid(const char *identifier)
{
{
- bt_
bool is_valid = BT
_TRUE;
+ bt_
ctf_bool is_valid = BT_CTF
_TRUE;
char *string = NULL;
char *save_ptr, *token;
if (!identifier) {
BT_LOGT_STR("Invalid parameter: input string is NULL.");
char *string = NULL;
char *save_ptr, *token;
if (!identifier) {
BT_LOGT_STR("Invalid parameter: input string is NULL.");
- is_valid = BT_FALSE;
+ is_valid = BT_
CTF_
FALSE;
goto end;
}
try_init_reserved_keywords();
if (identifier[0] == '\0') {
goto end;
}
try_init_reserved_keywords();
if (identifier[0] == '\0') {
- is_valid = BT_FALSE;
+ is_valid = BT_
CTF_
FALSE;
goto end;
}
string = strdup(identifier);
if (!string) {
BT_LOGE("strdup() failed.");
goto end;
}
string = strdup(identifier);
if (!string) {
BT_LOGE("strdup() failed.");
- is_valid = BT_FALSE;
+ is_valid = BT_
CTF_
FALSE;
goto end;
}
goto end;
}
@@
-113,7
+113,7
@@
bt_bool bt_ctf_identifier_is_valid(const char *identifier)
if (g_hash_table_lookup_extended(reserved_keywords_set,
GINT_TO_POINTER(g_quark_from_string(token)),
NULL, NULL)) {
if (g_hash_table_lookup_extended(reserved_keywords_set,
GINT_TO_POINTER(g_quark_from_string(token)),
NULL, NULL)) {
- is_valid = BT_FALSE;
+ is_valid = BT_
CTF_
FALSE;
goto end;
}
goto end;
}
This page took
0.024998 seconds
and
4
git commands to generate.