diff options
author | Christian Cunningham <cc@localhost> | 2022-01-05 14:01:29 -0800 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-01-05 14:01:29 -0800 |
commit | 3a8ed19bf83f11ff00c4904fab2cc083b7e33478 (patch) | |
tree | 9d9a6f92f9d74001e969d23ea79ad26f6227fea2 /src/lib/q.c | |
parent | f3ea4cd0c22f351d8dfffb0e937194c4b526b665 (diff) |
Cleaned up/ Standardized
Diffstat (limited to 'src/lib/q.c')
-rw-r--r-- | src/lib/q.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/q.c b/src/lib/q.c index 494c712..1f5a871 100644 --- a/src/lib/q.c +++ b/src/lib/q.c @@ -1,7 +1,7 @@ #include "../lib/q.h" #include "../lib/mem.h" -struct Q_base* newq() +struct Q_base* new_q() { struct Q_base* q = (struct Q_base*)malloc(sizeof(struct Q_base)); q->next = 0; @@ -9,7 +9,7 @@ struct Q_base* newq() return q; } -void pushq(struct Q_base* qb, void* val) +void push_q(struct Q_base* qb, void* val) { struct Q* n = (struct Q*)malloc(sizeof(struct Q)); n->next = 0; @@ -22,7 +22,7 @@ void pushq(struct Q_base* qb, void* val) qb->last = n; } -void popq(struct Q_base* qb) +void pop_q(struct Q_base* qb) { if (qb->next == 0) return; |