Sfoglia il codice sorgente

lib/kcore: other inline linker fixes

use of 'static inline' where appliable
Marius Zbihlei 13 anni fa
parent
commit
5b3d0d2837
1 ha cambiato i file con 7 aggiunte e 7 eliminazioni
  1. 7 7
      lib/kcore/parse_sst.c

+ 7 - 7
lib/kcore/parse_sst.c

@@ -37,17 +37,17 @@
 #include "../../mem/mem.h"
 #include "../../mem/mem.h"
 
 
 
 
-inline int/*bool*/  is_space( char c ) { return (c == ' ' || c == '\t'); }
-inline int/*bool*/  is_num( char c ) { return (c >= '0' && c <= '9'); }
+static inline int/*bool*/  is_space( char c ) { return (c == ' ' || c == '\t'); }
+static inline int/*bool*/  is_num( char c ) { return (c >= '0' && c <= '9'); }
 
 
-inline unsigned  lower_byte( char b ) { return b | 0x20; }
-inline unsigned  lower_4bytes( unsigned d ) { return d | 0x20202020; }
-inline unsigned  lower_3bytes( unsigned d ) { return d |   0x202020; }
-inline unsigned  read_4bytes( char *val ) {
+static inline unsigned  lower_byte( char b ) { return b | 0x20; }
+static inline unsigned  lower_4bytes( unsigned d ) { return d | 0x20202020; }
+static inline unsigned  lower_3bytes( unsigned d ) { return d |   0x202020; }
+static inline unsigned  read_4bytes( char *val ) {
 	return (*(val + 0) + (*(val + 1) << 8)
 	return (*(val + 0) + (*(val + 1) << 8)
 		+ (*(val + 2) << 16) + (*(val + 3) << 24));
 		+ (*(val + 2) << 16) + (*(val + 3) << 24));
 }
 }
-inline unsigned  read_3bytes( char *val ) {
+static inline unsigned  read_3bytes( char *val ) {
 	return (*(val + 0) + (*(val + 1) << 8) + (*(val + 2) << 16));
 	return (*(val + 0) + (*(val + 1) << 8) + (*(val + 2) << 16));
 }
 }