[ekg2-commit] ekg2: strings.c (HEAD) strings.h (HEAD) [peres]
CVS commit
cvs w toxygen.net
Pon, 8 Paź 2007, 09:37:21 CEST
Module name: ekg2
Changes by: peres 2007-10-08 09:37:19
Modified files:
strings.c strings.h
Log message:
Constantize xwcslen().
Index: strings.c
===================================================================
RCS file: /home/cvs/ekg2/ekg/strings.c,v
diff -d -u -r1.2 -r1.3
--- strings.c 21 Aug 2007 22:06:39 -0000 1.2
+++ strings.c 8 Oct 2007 07:37:18 -0000 1.3
@@ -43,7 +43,7 @@
/* stringo-naprawiacz, taki jak ufix() w xmalloc */
#define ufix(x) ((wchar_t *) x ? (wchar_t *) x : (wchar_t *) L"")
-inline int xwcslen(CHAR_T *str) {
+inline int xwcslen(const CHAR_T *str) {
return wcslen(ufix(str));
}
Index: strings.h
===================================================================
RCS file: /home/cvs/ekg2/ekg/strings.h,v
diff -d -u -r1.3 -r1.4
--- strings.h 21 Aug 2007 22:06:39 -0000 1.3
+++ strings.h 8 Oct 2007 07:37:18 -0000 1.4
@@ -36,7 +36,7 @@
#define STRING_FORMAT "%ls"
#define CHAR_FORMAT "%lc"
-inline int xwcslen(CHAR_T *str);
+inline int xwcslen(const CHAR_T *str);
inline int xmbslen(const char *str);
inline CHAR_T *xwcscpy(CHAR_T *dst, CHAR_T *src);
inline CHAR_T *xwcsdup(CHAR_T *str);
Więcej informacji o liście dyskusyjnej ekg2-commit