diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-06-02 22:33:55 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-06-02 22:33:55 +0200 |
commit | bac92616d3f0293df969d2557f00a639a83012e9 (patch) | |
tree | 8b17f9cf6c91c73590cbb27f8596a12bf3cbbc6d /lexer/theme-lexer.l | |
parent | 218886f89799e6bd20d2034ccca4a881926c4315 (diff) |
Remove toupper from lexer.c replace by glib equiv.
Diffstat (limited to 'lexer/theme-lexer.l')
-rw-r--r-- | lexer/theme-lexer.l | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lexer/theme-lexer.l b/lexer/theme-lexer.l index 235a3f7e..a5cc1ed1 100644 --- a/lexer/theme-lexer.l +++ b/lexer/theme-lexer.l @@ -37,7 +37,6 @@ #include <gio/gio.h> #include <helper.h> #include <math.h> -#include <ctype.h> #include <strings.h> #include "rofi.h" #include "theme.h" @@ -92,10 +91,10 @@ static double rofi_theme_parse_convert_hex ( char high, char low) { uint8_t retv = 0; - int t = toupper(high); + int t = g_ascii_toupper ( high ); t = ( t > '9')? (t-'A'+10):(t-'0'); retv = t<<4; - t = toupper ( low ); + t = g_ascii_toupper ( low ); t = ( t > '9')? (t-'A'+10):(t-'0'); retv +=t; return retv/255.0; |