aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
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)\