A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix reds, inclusion of C files into plugins is tricky.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28724 a1c6a512-1295-4272-9138-f99709370657

+22 -7
+22 -7
firmware/libc/sscanf.c
··· 1 1 #include <stdarg.h> 2 2 #include <string.h> 3 3 #include <stdbool.h> 4 - #include <ctype.h> 4 + 5 + static inline bool my_isspace(char c) 6 + { 7 + return (c == ' ') || (c == '\t') || (c == '\n'); 8 + } 9 + 10 + static inline bool my_isdigit(char c) 11 + { 12 + return (c >= '0') && (c <= '9'); 13 + } 14 + 15 + static inline bool my_isxdigit(char c) 16 + { 17 + return ((c >= '0') && (c <= '9')) 18 + || ((c >= 'a') && (c <= 'f')) || ((c >= 'A') && (c <= 'F')); 19 + } 5 20 6 21 static int parse_dec(int (*peek)(void *userp), 7 22 void (*pop)(void *userp), ··· 21 36 } 22 37 23 38 ch = (*peek)(userp); 24 - if (!isdigit(ch)) 39 + if (!my_isdigit(ch)) 25 40 return -1; 26 41 27 42 do ··· 30 45 (*pop)(userp); 31 46 n++; 32 47 ch = (*peek)(userp); 33 - } while (isdigit(ch)); 48 + } while (my_isdigit(ch)); 34 49 35 50 *vp = minus ? -v : v; 36 51 return n; ··· 46 61 47 62 char *pt=vp; 48 63 49 - while (!isspace((*peek)(userp))) 64 + while (!my_isspace((*peek)(userp))) 50 65 { 51 66 if(fake==false) 52 67 *(pt++) = (*peek)(userp); ··· 71 86 char ch; 72 87 73 88 ch = (*peek)(userp); 74 - if (!isxdigit(ch)) 89 + if (!my_isxdigit(ch)) 75 90 return -1; 76 91 77 92 do ··· 86 101 (*pop)(userp); 87 102 n++; 88 103 ch = (*peek)(userp); 89 - } while (isxdigit(ch)); 104 + } while (my_isxdigit(ch)); 90 105 91 106 *vp = v; 92 107 return n; ··· 97 112 void *userp) 98 113 { 99 114 int n = 0; 100 - while (isspace((*peek)(userp))) { 115 + while (my_isspace((*peek)(userp))) { 101 116 n++; 102 117 (*pop)(userp); 103 118 }