diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 20:17:54 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 20:17:54 +0900 |
commit | a3a62f5b63dd4d8a1f06ede0daeac790ad475b2b (patch) | |
tree | e460d6b0ad8055b8e895b2400bdad4797ca49869 /src/kvilib/core/kvi_strasm.h | |
parent | 7dfe4b16bced8a5d153216ff7d41f254ea69d099 (diff) | |
download | kvirc-a3a62f5b63dd4d8a1f06ede0daeac790ad475b2b.tar.gz kvirc-a3a62f5b63dd4d8a1f06ede0daeac790ad475b2b.zip |
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/kvilib/core/kvi_strasm.h')
-rw-r--r-- | src/kvilib/core/kvi_strasm.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/kvilib/core/kvi_strasm.h b/src/kvilib/core/kvi_strasm.h index 5d3b19ca..11e3b2df 100644 --- a/src/kvilib/core/kvi_strasm.h +++ b/src/kvilib/core/kvi_strasm.h @@ -39,7 +39,7 @@ extern inline bool kvi_strEqualCS(const char * str1,const char * str2) // When inlining, GCC can optimize to load esi and edi // directly with the strings , without pushing and getting it // from the stack... - register bool eax; + bool eax; __asm__ __volatile__ ( " cld\n" "1:\n" @@ -61,7 +61,7 @@ extern inline bool kvi_strEqualCS(const char * str1,const char * str2) extern inline bool kvi_strEqualCSN(const char * str1,const char * str2,int len) { - register bool eax; + bool eax; __asm__ __volatile__ ( "1:\n" " decl %3\n" @@ -99,8 +99,8 @@ extern inline bool kvi_strEqualNoLocaleCI(const char *str1,const char *str2) // Trivial implementation // Ignores completely locales....only A-Z chars are transformed to a-z // Anyway...it will work for IRC :) - register int reg; - register bool eax; + int reg; + bool eax; __asm__ __volatile__ ( "1:\n" " movb (%2),%%al\n" @@ -137,8 +137,8 @@ extern inline bool kvi_strEqualNoLocaleCI(const char *str1,const char *str2) extern inline bool kvi_strEqualNoLocaleCIN(const char *str1,const char *str2,int len) { - register int reg; - register bool eax; + int reg; + bool eax; __asm__ __volatile__ ( "1:\n" " decl %4\n" @@ -178,7 +178,7 @@ extern inline bool kvi_strEqualNoLocaleCIN(const char *str1,const char *str2,int extern inline int kvi_strLen(const char * str) { - register int ecx; + int ecx; __asm__ __volatile__( " cld\n" " repne\n" |