diff options
| author | Tyge Løvset <[email protected]> | 2022-08-08 12:26:17 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-08-08 12:26:17 +0200 |
| commit | 5f12ddba7bff04d4f1f5543ec908b9dd196e4f89 (patch) | |
| tree | cc0f382e338163a072b9c9479730ac06bf3fecad /examples | |
| parent | 7c9bae1867fd0df528ea80645855de00a4f4db76 (diff) | |
| download | STC-modified-5f12ddba7bff04d4f1f5543ec908b9dd196e4f89.tar.gz STC-modified-5f12ddba7bff04d4f1f5543ec908b9dd196e4f89.zip | |
Reverted a minor change in template.h
Diffstat (limited to 'examples')
| -rwxr-xr-x[-rw-r--r--] | examples/make.sh | 0 | ||||
| -rw-r--r-- | examples/vikings.c | 17 |
2 files changed, 9 insertions, 8 deletions
diff --git a/examples/make.sh b/examples/make.sh index e5efde07..e5efde07 100644..100755 --- a/examples/make.sh +++ b/examples/make.sh diff --git a/examples/vikings.c b/examples/vikings.c index b5b3417b..f291a601 100644 --- a/examples/vikings.c +++ b/examples/vikings.c @@ -35,17 +35,18 @@ static inline RViking Viking_toraw(const Viking* vp) { #define i_key_bind Viking // key type #define i_keyraw RViking // lookup type #define i_keyfrom Viking_from +#define i_opt c_no_clone #define i_hash(rp) c_strhash(rp->name) ^ c_strhash(rp->country) #define i_val int // mapped type - -// i_key_bind makes up these defines, unless they are already defined: -// i_cmp => RViking_cmp -// //i_hash => RViking_hash // already defined. -// i_keyclone => c_derived_keyclone // because i_keyfrom is defined -// i_keyto => Viking_toraw // because i_keyraw is defined -// i_keydrop => Viking_drop - #include <stc/cmap.h> +/* + i_key_bind set up these defines, unless they are already defined: + i_cmp => RViking_cmp + //i_hash => RViking_hash // already defined. + //i_keyclone => Viking_clone // not used, because of c_no_clone + i_keyto => Viking_toraw // because i_keyraw is defined + i_keydrop => Viking_drop +*/ int main() { |
