This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ejoy@peoplemail.com.cn: missing wcsncmp,wcscpy,wcsncpy and more...]


>>> On Mon, 04 Nov 2002 14:04:43 -0500
>>> "J. Johnston" <jjohnstn@redhat.com> said:

> Yes.  A patch has been checked in.

Why don't you use _BEGIN_STD_C and _END_STD_C?
2002-11-06  Kazuhiro Fujieda  <fujieda@jaist.ac.jp>

        * libc/include/wchar.h: Use _{BEGIN,END}_STD_C instead of extern "C".
        * libc/include/wctype.h: Ditto.
Index: wchar.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/wchar.h,v
retrieving revision 1.7
diff -u -p -r1.7 wchar.h
--- wchar.h	4 Nov 2002 19:04:09 -0000	1.7
+++ wchar.h	6 Nov 2002 12:25:45 -0000
@@ -31,9 +31,7 @@
 #endif
 #endif
 
-#ifdef __cplusplus
-extern "C" {
-#endif
+_BEGIN_STD_C
 
 #ifndef _MBSTATE_T
 #define _MBSTATE_T
@@ -69,8 +67,6 @@ wchar_t	*_EXFUN(wmemcpy, (wchar_t * , co
 wchar_t	*_EXFUN(wmemmove, (wchar_t *, const wchar_t *, size_t));
 wchar_t	*_EXFUN(wmemset, (wchar_t *, wchar_t, size_t));
 
-#ifdef __cplusplus
-}
-#endif
+_END_STD_C
 
 #endif /* _WCHAR_H_ */
Index: wctype.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/wctype.h,v
retrieving revision 1.2
diff -u -p -r1.2 wctype.h
--- wctype.h	4 Nov 2002 19:04:09 -0000	1.2
+++ wctype.h	6 Nov 2002 12:25:45 -0000
@@ -11,9 +11,7 @@
 # define WEOF ((wint_t)-1)
 #endif
 
-#ifdef __cplusplus
-extern "C" {
-#endif
+_BEGIN_STD_C
 
 #ifndef _WCTYPE_T
 #define _WCTYPE_T
@@ -44,8 +42,6 @@ wint_t	_EXFUN(towlower, (wint_t));
 wctrans_t _EXFUN(wctrans, (const char *));
 wctype_t _EXFUN(wctype, (const char *));
 
-#ifdef __cplusplus
-}
-#endif
+_END_STD_C
 
 #endif /* _WCTYPE_H_ */
____
  | AIST      Kazuhiro Fujieda <fujieda@jaist.ac.jp>
  | HOKURIKU  Center for Information Science
o_/ 1990      Japan Advanced Institute of Science and Technology

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]