Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions include/stc/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ typedef const char* cstr_raw;
AUXDEF \
} SELF; \
\
typedef struct { \
typedef struct SELF##_iter { \
SELF##_value *ref; \
ptrdiff_t pos; \
const SELF* _s; \
Expand All @@ -156,7 +156,7 @@ typedef const char* cstr_raw;
typedef VAL SELF##_value; \
typedef struct SELF##_node SELF##_node; \
\
typedef struct { \
typedef struct SELF##_iter { \
SELF##_value *ref; \
SELF##_node *const *_last, *prev; \
} SELF##_iter; \
Expand All @@ -174,15 +174,15 @@ typedef const char* cstr_raw;
MAP_ONLY( struct SELF##_value ) \
SELF##_value, SELF##_entry; \
\
typedef struct { \
typedef struct SELF##_result { \
SELF##_value *ref; \
size_t idx; \
bool inserted; \
uint8_t hashx; \
uint16_t dist; \
} SELF##_result; \
\
typedef struct { \
typedef struct SELF##_iter { \
SELF##_value *ref, *_end; \
struct hmap_meta *_mref; \
} SELF##_iter; \
Expand All @@ -203,12 +203,12 @@ typedef const char* cstr_raw;
MAP_ONLY( struct SELF##_value ) \
SELF##_value, SELF##_entry; \
\
typedef struct { \
typedef struct SELF##_result { \
SELF##_value *ref; \
bool inserted; \
} SELF##_result; \
\
typedef struct { \
typedef struct SELF##_iter { \
SELF##_value *ref; \
SELF##_node *_d; \
int _top; \
Expand All @@ -228,7 +228,7 @@ typedef const char* cstr_raw;

#define _declare_stack(SELF, VAL, AUXDEF) \
typedef VAL SELF##_value; \
typedef struct { SELF##_value *ref, *end; } SELF##_iter; \
typedef struct SELF##_iter { SELF##_value *ref, *end; } SELF##_iter; \
typedef struct SELF { SELF##_value *data; ptrdiff_t size, capacity; AUXDEF } SELF

#endif // STC_TYPES_H_INCLUDED
Loading