diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-05-12 22:21:08 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-05-12 22:21:08 +0200 |
commit | 514b10fae7245d10112e7221acedf8016f309b6e (patch) | |
tree | 3aa5b891ad02896a49752984ac3d494017343146 /src/ci_queue.c | |
parent | .build/ -> build/ (diff) | |
download | cimple-514b10fae7245d10112e7221acedf8016f309b6e.tar.gz cimple-514b10fae7245d10112e7221acedf8016f309b6e.zip |
ci_queue: rename a couple of functions
Diffstat (limited to 'src/ci_queue.c')
-rw-r--r-- | src/ci_queue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ci_queue.c b/src/ci_queue.c index 6429580..848ab95 100644 --- a/src/ci_queue.c +++ b/src/ci_queue.c @@ -97,17 +97,17 @@ int ci_queue_is_empty(const struct ci_queue *queue) return STAILQ_EMPTY(queue); } -void ci_queue_push(struct ci_queue *queue, struct ci_queue_entry *entry) +void ci_queue_add_last(struct ci_queue *queue, struct ci_queue_entry *entry) { STAILQ_INSERT_TAIL(queue, entry, entries); } -void ci_queue_push_head(struct ci_queue *queue, struct ci_queue_entry *entry) +void ci_queue_add_first(struct ci_queue *queue, struct ci_queue_entry *entry) { STAILQ_INSERT_HEAD(queue, entry, entries); } -struct ci_queue_entry *ci_queue_pop(struct ci_queue *queue) +struct ci_queue_entry *ci_queue_remove_first(struct ci_queue *queue) { struct ci_queue_entry *entry; |