summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-12-08 20:32:10 +0100
committerTyge Løvset <[email protected]>2020-12-08 20:32:10 +0100
commit56dd4e057367689a89a170e255626591cdf5dc85 (patch)
tree883a330826c3596f430c566d3de11117250beb83 /docs
parentbfd7248535ee2bc6c067cb56894966968dc1ee82 (diff)
downloadSTC-modified-56dd4e057367689a89a170e255626591cdf5dc85.tar.gz
STC-modified-56dd4e057367689a89a170e255626591cdf5dc85.zip
Updated api for with clone()
Diffstat (limited to 'docs')
-rw-r--r--docs/cpqueue_api.md1
-rw-r--r--docs/cqueue_api.md7
-rw-r--r--docs/cstack_api.md7
-rw-r--r--docs/cstr_api.md2
4 files changed, 10 insertions, 7 deletions
diff --git a/docs/cpqueue_api.md b/docs/cpqueue_api.md
index 76fba64f..39569992 100644
--- a/docs/cpqueue_api.md
+++ b/docs/cpqueue_api.md
@@ -35,6 +35,7 @@ All cpqueue definitions and prototypes may be included in your C source file by
```c
cpqueue_X cpqueue_X_init(void);
+cpqueue_X cpqueue_X_clone(cpqueue_X pq);
void cpqueue_X_make_heap(cpqueue_X* self);
void cpqueue_X_del(cpqueue_X* self);
diff --git a/docs/cqueue_api.md b/docs/cqueue_api.md
index e6951493..6b7f5823 100644
--- a/docs/cqueue_api.md
+++ b/docs/cqueue_api.md
@@ -34,14 +34,15 @@ All cqueue definitions and prototypes may be included in your C source file by i
```c
cqueue_X cqueue_X_init(void);
+cqueue_X cqueue_X_clone(cqueue_X q);
void cqueue_X_del(cqueue_X* self);
-size_t cqueue_X_size(cqueue_X pq);
-bool cqueue_X_empty(cqueue_X pq);
+size_t cqueue_X_size(cqueue_X q);
+bool cqueue_X_empty(cqueue_X q);
cqueue_X_value_t* cqueue_X_front(cqueue_X* self);
cqueue_X_value_t* cqueue_X_back(cqueue_X* self);
-void cqueue_X_push_n(cqueue_X *self, const cqueue_X_input_t in[], size_t size);
+void cqueue_X_push_n(cqueue_X *self, const cqueue_X_input_t arr[], size_t size);
void cqueue_X_emplace(cqueue_X* self, cqueue_X_rawvalue_t raw);
void cqueue_X_push(cqueue_X* self, cqueue_X_value_t value);
void cqueue_X_pop(cqueue_X* self);
diff --git a/docs/cstack_api.md b/docs/cstack_api.md
index 433428bf..c7805ab9 100644
--- a/docs/cstack_api.md
+++ b/docs/cstack_api.md
@@ -34,13 +34,14 @@ All cstack definitions and prototypes may be included in your C source file by i
```c
cstack_X cstack_X_init(void);
+cstack_X cstack_X_clone(cstack_X st);
void cstack_X_del(cstack_X* self);
-size_t cstack_X_size(cstack_X pq);
-bool cstack_X_empty(cstack_X pq);
+size_t cstack_X_size(cstack_X st);
+bool cstack_X_empty(cstack_X st);
cstack_X_value_t* cstack_X_top(cstack_X* self);
-void cstack_X_push_n(cstack_X *self, const cstack_X_input_t in[], size_t size);
+void cstack_X_push_n(cstack_X *self, const cstack_X_input_t arr[], size_t size);
void cstack_X_emplace(cstack_X* self, cstack_X_rawvalue_t raw);
void cstack_X_push(cstack_X* self, cstack_X_value_t value);
void cstack_X_pop(cstack_X* self);
diff --git a/docs/cstr_api.md b/docs/cstr_api.md
index 6624e779..a8a59388 100644
--- a/docs/cstr_api.md
+++ b/docs/cstr_api.md
@@ -64,7 +64,7 @@ These returns properties of a string. `5-6)` returns reference, ie. pointer to t
```c
1) cstr_t* cstr_append(cstr_t* self, const char* str);
2) cstr_t* cstr_append_n(cstr_t* self, const char* str, size_t len);
- 3) cstr_t* cstr_push_back(cstr_t* self, char ch);
+ 3) void cstr_push_back(cstr_t* self, char ch);
4) void cstr_pop_back(cstr_t* self);
5) void cstr_insert(cstr_t* self, size_t pos, const char* str);
6) void cstr_insert_n(cstr_t* self, size_t pos, const char* str, size_t n);