diff options
author | Michele Calgaro <[email protected]> | 2020-02-21 10:38:54 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-02-21 10:39:24 +0900 |
commit | 26de7286b8c94c9d2a047485bc8d8e0480e05d25 (patch) | |
tree | 31de3418fcbdb345ac06980d13bba7f6212e8beb | |
parent | c37a71d4eaf3f87c9f0756e07ba50e793a7788cb (diff) | |
download | kvirc-26de7286b8c94c9d2a047485bc8d8e0480e05d25.tar.gz kvirc-26de7286b8c94c9d2a047485bc8d8e0480e05d25.zip |
Remove remaining 'register' instructions.
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 71c23d6a84929ecf1a82a3e79f352a9e7e33929c)
-rw-r--r-- | src/kvilib/core/kvi_string.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/kvilib/core/kvi_string.h b/src/kvilib/core/kvi_string.h index 9434e274..b1d7a2e0 100644 --- a/src/kvilib/core/kvi_string.h +++ b/src/kvilib/core/kvi_string.h @@ -462,7 +462,7 @@ public: //============================================================================= // FIXME: Should it be KviStrExt::contains namespace ? - static bool ext_contains(register const char * data,const char * item,bool caseS = true); + static bool ext_contains(const char * data,const char * item,bool caseS = true); }; // FIXME: the functions below should end in the KviStr namespace ??? @@ -493,19 +493,19 @@ __KVI_EXTERN KVILIB_API int kvi_irc_vsnprintf(char *buffer,const char *fmt,kvi_v // WILDCARD EXPRESSION MATCHING FUNCTIONS // Returns true if the two regular expressions with wildcards matches -__KVI_EXTERN KVILIB_API bool kvi_matchWildExpr(register const char *m1,register const char *m2); +__KVI_EXTERN KVILIB_API bool kvi_matchWildExpr(const char *m1,const char *m2); // Returns true if the two regular expressions with wildcards matches, case sensitive -//__KVI_EXTERN bool kvi_matchWildExprCS(register const char *m1,register const char *m2); // actually unused +//__KVI_EXTERN bool kvi_matchWildExprCS(const char *m1,const char *m2); // actually unused // Same as kvi_matchWildExpr but with an additional char that acts as string terminator // If there is a match this function returns true and puts the pointers where it stopped in r1 and r2 -__KVI_EXTERN KVILIB_API bool kvi_matchWildExprWithTerminator(register const char *m1,register const char *m2,char terminator, +__KVI_EXTERN KVILIB_API bool kvi_matchWildExprWithTerminator(const char *m1,const char *m2,char terminator, const char ** r1,const char ** r2); // Returns true if the wildcard expression exp matches the string str -__KVI_EXTERN KVILIB_API bool kvi_matchStringCI(register const char * exp,register const char * str); +__KVI_EXTERN KVILIB_API bool kvi_matchStringCI(const char * exp,const char * str); #define kvi_matchString kvi_matchStringCI -__KVI_EXTERN KVILIB_API bool kvi_matchStringCS(register const char * exp,register const char * str); -__KVI_EXTERN KVILIB_API bool kvi_matchStringWithTerminator(register const char * exp,register const char * str,char terminator,const char ** r1,const char ** r2); +__KVI_EXTERN KVILIB_API bool kvi_matchStringCS(const char * exp,const char * str); +__KVI_EXTERN KVILIB_API bool kvi_matchStringWithTerminator(const char * exp,const char * str,char terminator,const char ** r1,const char ** r2); // This function works like a particular case of strncmp. // It evaluates if str2 is the terminal part of str1. |