Added equal_fn to evstring TypeData
Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
This commit is contained in:
11
ev_str.h
11
ev_str.h
@@ -44,7 +44,6 @@
|
||||
#endif
|
||||
|
||||
typedef char *evstring;
|
||||
TYPEDATA_GEN(evstring);
|
||||
|
||||
typedef enum {
|
||||
EV_STR_ERR_NONE = 0,
|
||||
@@ -193,6 +192,16 @@ evstring_findLastChar(
|
||||
const evstring text,
|
||||
const char c);
|
||||
|
||||
DEFINE_EQUAL_FUNCTION(evstring, Default)
|
||||
{
|
||||
return evstring_cmp(*(evstring*)self, *(evstring*)other) == 0;
|
||||
}
|
||||
|
||||
TYPEDATA_GEN(evstring,
|
||||
EQUAL(Default)
|
||||
);
|
||||
|
||||
|
||||
#if defined(EV_STR_IMPLEMENTATION)
|
||||
|
||||
#if EV_OS_WINDOWS
|
||||
|
||||
Reference in New Issue
Block a user