From 1ce3da1cca093143d9629bc46e221dd8be962e12 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 31 May 2015 11:46:05 +0000 Subject: - MAllStrings: a handy union to hold an incoming string parameter of any type; - FNAMECHAR: atavism extincted; - PROTOSEARCHRESULT: structure prepared to use results of any type, including utf git-svn-id: http://svn.miranda-ng.org/main/trunk@13932 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/m_core.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/m_core.h') diff --git a/include/m_core.h b/include/m_core.h index e29dc0f100..9ed2a86a9d 100644 --- a/include/m_core.h +++ b/include/m_core.h @@ -483,6 +483,12 @@ __forceinline char* lrtrimp(char *str) { return ltrimp(rtrim(str)); }; /////////////////////////////////////////////////////////////////////////////// // text conversion functions +typedef union { + char *a; // utf8 or ansi strings + TCHAR *t; // strings of TCHARs + wchar_t w; // strings of WCHARs +} MAllStrings; + #ifdef _UNICODE #define mir_t2a(s) mir_u2a(s) #define mir_a2t(s) mir_a2u(s) -- cgit v1.2.3