diff options
| author | kartofen <kartofen.mail.0@protonmail.com> | 2025-07-06 21:18:28 +0300 |
|---|---|---|
| committer | kartofen <kartofen.mail.0@protonmail.com> | 2025-07-06 21:18:28 +0300 |
| commit | 653d4b248e18f71eebea57cb39895fdb68f5c885 (patch) | |
| tree | 3b86e7afe5d16899d691122c3271944dc41d324e /parts | |
| parent | e37eccfabbc5c626791e9698cc6c5fb1ec335625 (diff) | |
modular table building
Diffstat (limited to 'parts')
| -rw-r--r-- | parts/symbol.h | 7 | ||||
| -rw-r--r-- | parts/table.h | 5 |
2 files changed, 7 insertions, 5 deletions
diff --git a/parts/symbol.h b/parts/symbol.h index 2e9c30c..dea457e 100644 --- a/parts/symbol.h +++ b/parts/symbol.h @@ -10,8 +10,9 @@ extern int (*symbol_is_input_end)(symbol s); extern int (*symbol_is_valid)(symbol s); // helper macro -#define IMPLEMENT_FUNCPTR(type, name, args, ...) \ - type __##name args __VA_ARGS__ \ - type (*name) args = __##name; +#define IMPLEMENT_FUNCPTR(type, name, args) \ + type __##name args; \ + type (*name) args = __##name; \ + type __##name args #endif diff --git a/parts/table.h b/parts/table.h index 44d1e12..486466f 100644 --- a/parts/table.h +++ b/parts/table.h @@ -12,8 +12,9 @@ extern struct action { extern size_t table_states; -/*extern*/ int table_fill(); -/*extern*/ void table_free(); +extern int (*table_fill)(); +extern void (*table_free)(); + void table_print(); void table_print_cstyle(); |
