summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-04-17 08:02:39 +0200
committerTyge Løvset <[email protected]>2021-04-17 08:02:39 +0200
commit0dfe69fa5dd7d4d9dded93d35106537e1ea76243 (patch)
tree3c94d8d4f6ef2aa6b9d5c19fc6da3e69521bf18b /docs
parent23ad1fbb91ef3cdddec7e54f3bde79082c2b0e24 (diff)
downloadSTC-modified-0dfe69fa5dd7d4d9dded93d35106537e1ea76243.tar.gz
STC-modified-0dfe69fa5dd7d4d9dded93d35106537e1ea76243.zip
Changed c_emplace_items(&cont, ctype, {...}) macro with c_emplace(ctype, cont, {...}): consistent with c_init(ctype, cont, {...}).
Diffstat (limited to 'docs')
-rw-r--r--docs/ccommon_api.md8
-rw-r--r--docs/cdeq_api.md2
-rw-r--r--docs/cpque_api.md2
-rw-r--r--docs/cvec_api.md2
4 files changed, 7 insertions, 7 deletions
diff --git a/docs/ccommon_api.md b/docs/ccommon_api.md
index 4c40c998..891d0ec6 100644
--- a/docs/ccommon_api.md
+++ b/docs/ccommon_api.md
@@ -2,11 +2,11 @@
The following handy macros are safe to use, i.e. have no side-effects.
-### c_init, c_emplace_items
-**c_init** declares and initializes any container with an array of elements. **c_emplace_items** adds elements to any existing container:
+### c_init, c_emplace
+**c_init** declares and initializes any container with an array of elements. **c_emplace** adds elements to any existing container:
```c
-c_init (cvec_i, vec, {1, 2, 3});
-c_emplace_items(&vec, cvec_i, {4, 5, 6});
+c_init (cvec_i, vec, {1, 2, 3}); // declare and emplace
+c_emplace(cvec_i, vec, {4, 5, 6}); // adds to existing vec
```
### c_forrange
diff --git a/docs/cdeq_api.md b/docs/cdeq_api.md
index d921a5fb..d4de155b 100644
--- a/docs/cdeq_api.md
+++ b/docs/cdeq_api.md
@@ -107,7 +107,7 @@ int main() {
printf(" %d", *i.ref);
puts("");
- c_emplace_items(&q, cdeq_i, {1, 4, 5, 22, 33, 2});
+ c_emplace(cdeq_i, q, {1, 4, 5, 22, 33, 2});
c_foreach (i, cdeq_i, q)
printf(" %d", *i.ref);
puts("");
diff --git a/docs/cpque_api.md b/docs/cpque_api.md
index 261c2909..07f60709 100644
--- a/docs/cpque_api.md
+++ b/docs/cpque_api.md
@@ -72,7 +72,7 @@ int main()
// Push ten million random numbers to priority queue, plus some negative ones.
c_forrange (N)
cpque_i_push(&heap, stc64_uniform(&rng, &dist));
- c_emplace_items(&heap, cpque_i, {-231, -32, -873, -4, -343});
+ c_emplace(cpque_i, heap, {-231, -32, -873, -4, -343});
// Extract and display the fifty smallest.
c_forrange (50) {
diff --git a/docs/cvec_api.md b/docs/cvec_api.md
index 14bce940..2f084704 100644
--- a/docs/cvec_api.md
+++ b/docs/cvec_api.md
@@ -106,7 +106,7 @@ int main()
{
// Create a vector containing integers
cvec_i vec = cvec_i_init();
- c_emplace_items(&vec, cvec_i, {7, 5, 16, 8});
+ c_emplace(cvec_i, vec, {7, 5, 16, 8});
// Add two more integers to vector
cvec_i_push_back(&vec, 25);