projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add bt_common_abort() and use it instead of abort() directly
[babeltrace.git]
/
src
/
lib
/
graph
/
iterator.c
diff --git
a/src/lib/graph/iterator.c
b/src/lib/graph/iterator.c
index d70514bdb2ad3ab3e2fd3b398cd2bdc750cf65e0..121e4bd9a8ed4ca70eb4d6971b83d0d9cd97ea27 100644
(file)
--- a/
src/lib/graph/iterator.c
+++ b/
src/lib/graph/iterator.c
@@
-60,6
+60,7
@@
#include "lib/assert-post.h"
#include <stdint.h>
#include <inttypes.h>
#include "lib/assert-post.h"
#include <stdint.h>
#include <inttypes.h>
+#include <stdbool.h>
#include <stdlib.h>
#include "component-class.h"
#include <stdlib.h>
#include "component-class.h"
@@
-190,7
+191,7
@@
void bt_self_component_port_input_message_iterator_try_finalize(
/* Finalizing */
BT_LIB_LOGF("Message iterator is already being finalized: "
"%!+i", iterator);
/* Finalizing */
BT_LIB_LOGF("Message iterator is already being finalized: "
"%!+i", iterator);
- abort();
+
bt_common_
abort();
default:
break;
}
default:
break;
}
@@
-221,7
+222,7
@@
void bt_self_component_port_input_message_iterator_try_finalize(
}
default:
/* Unreachable */
}
default:
/* Unreachable */
- abort();
+
bt_common_
abort();
}
if (method) {
}
if (method) {
@@
-427,7
+428,7
@@
int create_self_component_input_port_message_iterator(
break;
}
default:
break;
}
default:
- abort();
+
bt_common_
abort();
}
if (iterator->methods.seek_ns_from_origin &&
}
if (iterator->methods.seek_ns_from_origin &&
@@
-465,7
+466,7
@@
int create_self_component_input_port_message_iterator(
}
default:
/* Unreachable */
}
default:
/* Unreachable */
- abort();
+
bt_common_
abort();
}
if (init_method) {
}
if (init_method) {
@@
-935,7
+936,7
@@
bt_self_component_port_input_message_iterator_next(
goto end;
default:
/* Unknown non-error status */
goto end;
default:
/* Unknown non-error status */
- abort();
+
bt_common_
abort();
}
end:
}
end:
@@
-1100,7
+1101,7
@@
void set_iterator_state_after_seeking(
new_state = BT_SELF_COMPONENT_PORT_INPUT_MESSAGE_ITERATOR_STATE_ENDED;
break;
default:
new_state = BT_SELF_COMPONENT_PORT_INPUT_MESSAGE_ITERATOR_STATE_ENDED;
break;
default:
- abort();
+
bt_common_
abort();
}
set_self_comp_port_input_msg_iterator_state(iterator, new_state);
}
set_self_comp_port_input_msg_iterator_state(iterator, new_state);
@@
-1384,7
+1385,7
@@
int auto_seek_handle_message(
break;
}
default:
break;
}
default:
- abort();
+
bt_common_
abort();
}
BT_ASSERT_DBG(clk_snapshot);
}
BT_ASSERT_DBG(clk_snapshot);
@@
-1588,7
+1589,7
@@
int find_message_ge_ns_from_origin(
case BT_FUNC_STATUS_END:
goto end;
default:
case BT_FUNC_STATUS_END:
goto end;
default:
- abort();
+
bt_common_
abort();
}
for (i = 0; i < user_count; i++) {
}
for (i = 0; i < user_count; i++) {
@@
-1798,7
+1799,7
@@
bt_self_component_port_input_message_iterator_seek_ns_from_origin(
case BT_FUNC_STATUS_AGAIN:
goto end;
default:
case BT_FUNC_STATUS_AGAIN:
goto end;
default:
- abort();
+
bt_common_
abort();
}
/*
}
/*
@@
-1942,7
+1943,7
@@
bt_self_component_port_input_message_iterator_seek_ns_from_origin(
case BT_FUNC_STATUS_AGAIN:
goto end;
default:
case BT_FUNC_STATUS_AGAIN:
goto end;
default:
- abort();
+
bt_common_
abort();
}
}
}
}
This page took
0.026592 seconds
and
4
git commands to generate.