From f43e46f98ecfc9eb4d3c58868f2c5cb92611a650 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 4 Jun 2026 18:18:32 +0200 Subject: Style improvement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- common.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'common.h') diff --git a/common.h b/common.h index b720a03..619d952 100644 --- a/common.h +++ b/common.h @@ -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 -# define MEM(STR) STR, (sizeof(STR) - 1U) +# define MEM(STR) STR, (sizeof(STR) - 1u) # define EXPECT(EXPR)\ do {\ if (EXPR)\ -- cgit v1.3.1