From 75b6ecc325fbd3be332005cb54fb377478d5dc35 Mon Sep 17 00:00:00 2001 From: Eric House Date: Thu, 19 Dec 2013 07:57:59 -0800 Subject: [PATCH] add missing util function --- xwords4/linux/linuxutl.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/xwords4/linux/linuxutl.c b/xwords4/linux/linuxutl.c index f8b54a697..2c0a950a1 100644 --- a/xwords4/linux/linuxutl.c +++ b/xwords4/linux/linuxutl.c @@ -393,6 +393,18 @@ linux_util_md5sum( XW_UtilCtxt* uc, const XP_U8* ptr, XP_U16 len ) } #endif +#ifdef XWFEATURE_SMS +static XP_Bool +linux_util_phoneNumbersSame( XW_UtilCtxt* uc, const XP_UCHAR* p1, + const XP_UCHAR* p2 ) +{ + XP_USE( uc ); + XP_Bool result = 0 == strcmp( p1, p2 ); + XP_LOGF( "%s(%s, %s) => %d", __func__, p1, p2, result ); + return result; +} +#endif + void linux_util_vt_init( MPFORMAL XW_UtilCtxt* util ) { @@ -412,6 +424,9 @@ linux_util_vt_init( MPFORMAL XW_UtilCtxt* util ) #ifdef COMMS_CHECKSUM util->vtable->m_util_md5sum = linux_util_md5sum; #endif +#ifdef XWFEATURE_SMS + util->vtable->m_util_phoneNumbersSame = linux_util_phoneNumbersSame; +#endif } void