summaryrefslogtreecommitdiffhomepage
path: root/docs/cqueue_api.md
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-01-13 17:40:16 +0100
committerTyge Løvset <[email protected]>2021-01-13 17:40:16 +0100
commit77691fbc7c5da5688433d598658d1e5d26e46c46 (patch)
tree946b71680aa33f870169cbfc5d5aea2aa15cc956 /docs/cqueue_api.md
parentb41fe24b6c2e60265152ec618aa7cc806d9435d1 (diff)
downloadSTC-modified-77691fbc7c5da5688433d598658d1e5d26e46c46.tar.gz
STC-modified-77691fbc7c5da5688433d598658d1e5d26e46c46.zip
Switched default cqueue underlying impl. from clist to cdeq.
Diffstat (limited to 'docs/cqueue_api.md')
-rw-r--r--docs/cqueue_api.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/cqueue_api.md b/docs/cqueue_api.md
index 3973eda2..b399a14c 100644
--- a/docs/cqueue_api.md
+++ b/docs/cqueue_api.md
@@ -28,7 +28,7 @@ will affect the names of all cqueue types and methods. E.g. declaring `using_cqu
All cqueue definitions and prototypes may be included in your C source file by including a single header file.
```c
-#include "stc/cqueue.h" /* includes default underlying implementation header clist.h */
+#include "stc/cqueue.h" /* includes default underlying implementation header cdeq.h */
```
## Methods
@@ -61,8 +61,8 @@ cqueue_X_value_t cqueue_X_value_clone(cqueue_X_value_t val);
#include <stdio.h>
#include "stc/cqueue.h"
-using_clist(i, int);
-using_cqueue(i, clist_i);
+using_cdeq(i, int);
+using_cqueue(i, cdeq_i);
int main() {
cqueue_i queue = cqueue_i_init();
@@ -88,10 +88,10 @@ Output:
```c
#include <stdio.h>
#include "stc/cqueue.h"
-#include "stc/cdeq.h"
+#include "stc/clist.h"
using_cdeq(i, int);
-using_cqueue(i, cdeq_i);
+using_cqueue(i, clist_i);
int main() {
cqueue_i queue = cqueue_i_init();