aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-06-04 18:18:32 +0200
committerMattias Andrée <m@maandree.se>2026-06-04 18:18:32 +0200
commitf43e46f98ecfc9eb4d3c58868f2c5cb92611a650 (patch)
tree1a33c65a02505e5ac9134f013d147bb7bbc928e3 /common.h
parentSome fixes (diff)
downloadlibautomata-f43e46f98ecfc9eb4d3c58868f2c5cb92611a650.tar.gz
libautomata-f43e46f98ecfc9eb4d3c58868f2c5cb92611a650.tar.bz2
libautomata-f43e46f98ecfc9eb4d3c58868f2c5cb92611a650.tar.xz
Style improvementHEAD1.0master
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'common.h')
-rw-r--r--common.h10
1 files changed, 5 insertions, 5 deletions
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 <stdio.h>
-# define MEM(STR) STR, (sizeof(STR) - 1U)
+# define MEM(STR) STR, (sizeof(STR) - 1u)
# define EXPECT(EXPR)\
do {\
if (EXPR)\