Guard slice definition
This commit is contained in:
parent
a884f13b35
commit
aa99d91609
1 changed files with 3 additions and 0 deletions
3
lazy.h
3
lazy.h
|
|
@ -12,10 +12,13 @@
|
|||
#define LZ_STR_PRINTF(slc) (int)slc.cnt, slc.data
|
||||
#endif
|
||||
|
||||
#ifndef LZ_SLC_DEF
|
||||
#define LZ_SLC_DEF
|
||||
typedef struct {
|
||||
char *data;
|
||||
size_t cnt;
|
||||
} Lz_Slc;
|
||||
#endif
|
||||
|
||||
void lz_trim_left_typ(Lz_Slc *src, int (*classfunc)(int));
|
||||
void lz_trim_right_typ(Lz_Slc *src, int (*classfunc)(int));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue