summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/vikings.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-01-27 15:09:59 +0100
committerTyge Løvset <[email protected]>2023-01-27 15:09:59 +0100
commit8c81c9642b5f7564f06654562d929703f2d2dd0a (patch)
tree05a33a34d339dad8fc5a909443b6c616cb5b800d /misc/examples/vikings.c
parent5c1b1616f5a20a54c32e57b0bea49f366441356b (diff)
downloadSTC-modified-8c81c9642b5f7564f06654562d929703f2d2dd0a.tar.gz
STC-modified-8c81c9642b5f7564f06654562d929703f2d2dd0a.zip
(Reverted) c_COMPOUND() to c_LITERAL().
Diffstat (limited to 'misc/examples/vikings.c')
-rw-r--r--misc/examples/vikings.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/examples/vikings.c b/misc/examples/vikings.c
index a050b324..86d60519 100644
--- a/misc/examples/vikings.c
+++ b/misc/examples/vikings.c
@@ -23,11 +23,11 @@ static inline int RViking_cmp(const RViking* rx, const RViking* ry) {
}
static inline Viking Viking_from(RViking raw) { // note: parameter is by value
- return c_COMPOUND(Viking){cstr_from(raw.name), cstr_from(raw.country)};
+ return c_LITERAL(Viking){cstr_from(raw.name), cstr_from(raw.country)};
}
static inline RViking Viking_toraw(const Viking* vp) {
- return c_COMPOUND(RViking){cstr_str(&vp->name), cstr_str(&vp->country)};
+ return c_LITERAL(RViking){cstr_str(&vp->name), cstr_str(&vp->country)};
}
// With this in place, we define the Viking => int hash map type: