Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Fixes for OpenBSD | 4edafbf95d75a98fc4b1469f32bb4e52ed200314 | lep | 2021-03-27 09:37:24 |
Allow assignment to local variable in constant function | 0920290c0af1fe76066aa9520729b2afaa41fbd7 | lep | 2020-08-04 16:18:16 |
Add hexadecimal form with uppercase X | 43d20a0f74e86cb2c89021b893b923d2efb4070a | lep | 2020-08-04 16:17:13 |
Use flag in test. | df89d16a43ce0b5c2f7ca0a079818361dee02908 | lep | 2020-08-04 16:15:24 |
Small readme fixes | eeddac84a092c2cb3105510626cb674729c4f09f | lep | 2020-08-03 09:49:49 |
Warn when using native as code | 1b14ec57777560df0982a08f3a2bc8eb27a1df75 | lep | 2020-08-03 09:32:38 |
Use the strhash hashfunc for our hashtables. | d6f0de51cb54921b529799b9939cfe2dcdf7b4d0 | lep | 2020-07-29 11:13:13 |
Document installation methods | 814075ef77bc8981684971bfc2a5c626f2e34035 | lep | 2020-07-18 08:11:43 |
Improved Readme | c8d57e3c1953d5e67ca12f75f5685f7786eacaf2 | lep | 2020-07-18 07:43:09 |
Added some tests for the new StringHash check. | 1f613e7c5b078cc3ce3a04a957291ca070856528 | lep | 2020-07-18 07:17:26 |
Added check for bad StringHash usage | 3abbed6aa1cd87e202a0b038e8af2246e9ceadeb | lep | 2020-07-17 22:13:39 |
Fix release target | 6eca932b6210f1ac93b3bc030c15797d88d529b6 | lep | 2019-10-17 12:58:24 |
Better error message for `type` as a name | 665dc1efab9a5a8706bb0fcb95a13eabe3358436 | lep | 2019-10-17 12:53:35 |
Added reserved keyword 'alias' | 7589b241e1179f85bf19b82696d97d8365034376 | lep | 2019-05-31 21:57:10 |
More newline stuff | 3e57cdb92c766375430c701034db56e81dcc27e2 | lep | 2019-05-18 09:44:12 |
Report natives after function defintions | eb58451c6e2df142a51e85e68ee11efa45c3215c | lep | 2019-04-01 12:49:24 |
Specify minimum bison version in readme | 44b75417a7d01e2639a4b4acda031e95eca8ffb2 | lep | 2019-02-18 23:41:48 |
Support Apple by defining _aligned_malloc | 596488eafa1e09c1120d2488c78959a8c63c5a5d | Jesse Rogers | 2019-01-03 17:08:49 |
Improved the amalgation build | 4be0d720517e70920c7b716f95babc63df1f4ffa | lep | 2018-12-31 14:50:05 |
Added missing new tests | c5c6dab555bec81e6a7b419ea88d195836b3762f | lep | 2018-12-30 18:40:02 |
File | Lines added | Lines deleted |
---|---|---|
tree.c | 2 | 1 |
typeandname.c | 5 | 1 |
File tree.c changed (mode: 100644) (index 7fe0fbe..ed7861c) | |||
1 | 1 | #include <string.h> | #include <string.h> |
2 | 2 | #include <stdbool.h> | #include <stdbool.h> |
3 | #include <stdlib.h> | ||
3 | 4 | ||
4 | 5 | #include "tree.h" | #include "tree.h" |
5 | 6 | ||
... | ... | void tree_put(struct tree *t, uint32_t key, void *value){ | |
56 | 57 | } | } |
57 | 58 | } | } |
58 | 59 | } | } |
59 | } | ||
60 | } |
File typeandname.c changed (mode: 100644) (index 84b80d1..fee7aee) | |||
7 | 7 | void * _aligned_malloc(size_t size, size_t alignment){ | void * _aligned_malloc(size_t size, size_t alignment){ |
8 | 8 | return aligned_alloc(alignment, size); | return aligned_alloc(alignment, size); |
9 | 9 | } | } |
10 | #elif defined(__OpenBSD__) | ||
11 | void * _aligned_malloc(size_t size, size_t alignment){ | ||
12 | return aligned_alloc(alignment, size); | ||
13 | } | ||
10 | 14 | #elif defined(__linux__) || defined(__CYGWIN__) | #elif defined(__linux__) || defined(__CYGWIN__) |
11 | 15 | #include <malloc.h> | #include <malloc.h> |
12 | 16 | void * _aligned_malloc(size_t size, size_t alignment){ | void * _aligned_malloc(size_t size, size_t alignment){ |
... | ... | struct typeandname *newtypeandname(const struct typenode *ty, const char *name) | |
36 | 40 | struct typenode *newtypenode(const char *typename, const struct typenode *superclass) | struct typenode *newtypenode(const char *typename, const struct typenode *superclass) |
37 | 41 | { | { |
38 | 42 | struct typenode *result; | struct typenode *result; |
39 | result = _aligned_malloc(8, sizeof(struct typenode)); | ||
43 | result = _aligned_malloc(sizeof(struct typenode), 8); | ||
40 | 44 | result->typename = strdup(typename); | result->typename = strdup(typename); |
41 | 45 | result->superclass = superclass; | result->superclass = superclass; |
42 | 46 | return result; | return result; |