diff options
| author | Mattias Andrée <m@maandree.se> | 2026-06-04 18:18:32 +0200 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-06-04 18:18:32 +0200 |
| commit | f43e46f98ecfc9eb4d3c58868f2c5cb92611a650 (patch) | |
| tree | 1a33c65a02505e5ac9134f013d147bb7bbc928e3 /common.h | |
| parent | Some fixes (diff) | |
| download | libautomata-3da58c77b9a7fc6992ec2fd82b37473ed58fc382.tar.gz libautomata-3da58c77b9a7fc6992ec2fd82b37473ed58fc382.tar.bz2 libautomata-3da58c77b9a7fc6992ec2fd82b37473ed58fc382.tar.xz | |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'common.h')
| -rw-r--r-- | common.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -12,30 +12,30 @@ #define sizeof_kmp_automaton(LENGTH, ELEMSIZE)\ - (sizeof_flexstruct(struct libautomata_kmp_automaton, next, (LENGTH) + 1U) + (LENGTH) * (ELEMSIZE)) + (sizeof_flexstruct(struct libautomata_kmp_automaton, next, (LENGTH) + 1u) + (LENGTH) * (ELEMSIZE)) struct libautomata_kmp_automaton { size_t position; size_t length; size_t elemsize; - size_t next[/* .length + 1U */]; + size_t next[/* .length + 1u */]; /* char pattern[.length * .elemsize] */ }; #define sizeof_mp_automaton(LENGTH, ELEMSIZE)\ - (sizeof_flexstruct(struct libautomata_mp_automaton, next, (LENGTH) + 1U) + (LENGTH) * (ELEMSIZE)) + (sizeof_flexstruct(struct libautomata_mp_automaton, next, (LENGTH) + 1u) + (LENGTH) * (ELEMSIZE)) struct libautomata_mp_automaton { size_t position; size_t length; size_t elemsize; - size_t next[/* .length + 1U */]; + size_t next[/* .length + 1u */]; /* char pattern[.length * .elemsize] */ }; #ifdef TEST # include <stdio.h> -# define MEM(STR) STR, (sizeof(STR) - 1U) +# define MEM(STR) STR, (sizeof(STR) - 1u) # define EXPECT(EXPR)\ do {\ if (EXPR)\ |
