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
|
#endif
|
||||||
|
|
||||||
typedef char *evstring;
|
typedef char *evstring;
|
||||||
TYPEDATA_GEN(evstring);
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
EV_STR_ERR_NONE = 0,
|
EV_STR_ERR_NONE = 0,
|
||||||
@@ -193,6 +192,16 @@ evstring_findLastChar(
|
|||||||
const evstring text,
|
const evstring text,
|
||||||
const char c);
|
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 defined(EV_STR_IMPLEMENTATION)
|
||||||
|
|
||||||
#if EV_OS_WINDOWS
|
#if EV_OS_WINDOWS
|
||||||
|
|||||||
Reference in New Issue
Block a user