[ekg2-commit] r4041 - trunk/ekg: trunk/ekg/strings.h
SVN commit
svn w toxygen.net
Wto, 1 Lip 2008, 12:47:06 CEST
Author: peres
Date: 2008-07-01 12:47:05 +0200 (Tue, 01 Jul 2008)
New Revision: 4041
Modified:
trunk/ekg/strings.h
Log:
Fix warnings on gcc4.3.
Based on http://gcc.gnu.org/onlinedocs/gcc/Inline.html, if I understand right, this should work the same.
Modified: trunk/ekg/strings.h
===================================================================
--- trunk/ekg/strings.h 2008-07-01 10:45:09 UTC (rev 4040)
+++ trunk/ekg/strings.h 2008-07-01 10:47:05 UTC (rev 4041)
@@ -36,18 +36,18 @@
#define STRING_FORMAT "%ls"
#define CHAR_FORMAT "%lc"
-inline size_t xwcslen(const CHAR_T *str);
-inline size_t xmbslen(const char *str);
-inline CHAR_T *xwcscpy(CHAR_T *dst, CHAR_T *src);
-inline CHAR_T *xwcsdup(CHAR_T *str);
-inline CHAR_T *xwcscat(CHAR_T *dst, const CHAR_T *src);
-inline int xwcscmp(const CHAR_T *s1, const CHAR_T *s2);
-inline CHAR_T *xwcschr(const CHAR_T *s, CHAR_T c);
-inline char *wcs_to_normal(const CHAR_T *str);
-inline CHAR_T *normal_to_wcs(const char *str);
-inline CHAR_T **wcs_array_make(const CHAR_T *string, const CHAR_T *sep, int max, int trim, int quotes);
-inline CHAR_T *wcs_array_join(CHAR_T **array, const CHAR_T *sep);
-inline size_t xwcslcpy(CHAR_T *dst, const CHAR_T *src, size_t size);
+extern size_t xwcslen(const CHAR_T *str);
+extern size_t xmbslen(const char *str);
+extern CHAR_T *xwcscpy(CHAR_T *dst, CHAR_T *src);
+extern CHAR_T *xwcsdup(CHAR_T *str);
+extern CHAR_T *xwcscat(CHAR_T *dst, const CHAR_T *src);
+extern int xwcscmp(const CHAR_T *s1, const CHAR_T *s2);
+extern CHAR_T *xwcschr(const CHAR_T *s, CHAR_T c);
+extern char *wcs_to_normal(const CHAR_T *str);
+extern CHAR_T *normal_to_wcs(const char *str);
+extern CHAR_T **wcs_array_make(const CHAR_T *string, const CHAR_T *sep, int max, int trim, int quotes);
+extern CHAR_T *wcs_array_join(CHAR_T **array, const CHAR_T *sep);
+extern size_t xwcslcpy(CHAR_T *dst, const CHAR_T *src, size_t size);
#define free_utf(x) xfree(x)
Więcej informacji o liście dyskusyjnej ekg2-commit