You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by dl...@apache.org on 2007/08/13 00:22:30 UTC

svn commit: r565181 - /harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/portable.h

Author: dlydick
Date: Sun Aug 12 15:22:29 2007
New Revision: 565181

URL: http://svn.apache.org/viewvc?view=rev&rev=565181
Log:
Added prototypes for portable strstr(3), strncpy(3), and isalpha(3).

Modified:
    harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/portable.h

Modified: harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/portable.h
URL: http://svn.apache.org/viewvc/harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/portable.h?view=diff&rev=565181&r1=565180&r2=565181
==============================================================================
--- harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/portable.h (original)
+++ harmony/enhanced/sandbox/bootjvm/bootJVM/jvm/src/portable.h Sun Aug 12 15:22:29 2007
@@ -145,6 +145,10 @@
                                            been remapped into the
                                            portability library. */
 
+#define strstr PLEASE_USE_portable_strstr /**< @c @b strstr(3) has
+                                           been remapped into the
+                                           portability library. */
+
 #define strlen PLEASE_USE_portable_strlen /**< @c @b strlen(3) has
                                            been remapped into the
                                            portability library. */
@@ -157,6 +161,10 @@
                                            been remapped into the
                                            portability library. */
 
+#define strncpy PLEASE_USE_portable_strncpy /**< @c @b strncpy(3) has
+                                           been remapped into the
+                                           portability library. */
+
 #define memcpy PLEASE_USE_portable_memcpy /**< @c @b memcpy(3) has
                                            been remapped into the
                                            portability library. */
@@ -169,6 +177,9 @@
                                            been remapped into the
                                            portability library. */
 
+#define isalpha PLEASE_USE_portable_isalpha /**< @c @b isalpha(3) has
+                                           been remapped into the
+                                           portability library. */
 #define malloc PLEASE_USE_portable_malloc /**< @c @b malloc(3) has been
                                            remapped into the
                                            portability library. */
@@ -221,9 +232,11 @@
 extern rchar *portable_strrchr(const rchar *s, rint c);
 extern rint   portable_strcmp(const rchar *s1, const rchar *s2);
 extern rint   portable_strncmp(const rchar *s1,const rchar *s2,rlong n);
+extern rchar *portable_strstr(const rchar *s1,const rchar *s2);
 extern rlong  portable_strlen(const rchar *s);
 extern rchar *portable_strcat(rchar *s1, const rchar *s2);
 extern rchar *portable_strcpy(rchar *s1, const rchar *s2);
+extern rchar *portable_strncpy(rchar *s1, const rchar *s2, rint n);
 
 /* Memory manipulation */
 extern rvoid *portable_memcpy(rvoid *s1, const rvoid *s2, rlong n);
@@ -231,6 +244,7 @@
 /* C type library */
 extern rlong  portable_atol(const rchar *str);
 extern rint   portable_isspace(rint c);
+extern rint   portable_isalpha(rint c);
 
 /* Memory allocation */
 extern rvoid *portable_malloc(rlong size);