commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r807964 - /commons/sandbox/runtime/trunk/src/main/native/include/acr_port.h
Date Wed, 26 Aug 2009 11:30:41 GMT
Author: mturk
Date: Wed Aug 26 11:30:40 2009
New Revision: 807964

URL: http://svn.apache.org/viewvc?rev=807964&view=rev
Log:
Implement isblank as iniline fn

Modified:
    commons/sandbox/runtime/trunk/src/main/native/include/acr_port.h

Modified: commons/sandbox/runtime/trunk/src/main/native/include/acr_port.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/include/acr_port.h?rev=807964&r1=807963&r2=807964&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/include/acr_port.h (original)
+++ commons/sandbox/runtime/trunk/src/main/native/include/acr_port.h Wed Aug 26 11:30:40 2009
@@ -37,10 +37,12 @@
 #endif
 
 #if defined(ACR_WANT_ISBLANK)
-int isblank(int);
+static ACR_INLINE int isblank(int c)
+{
+    return c == ' ' || c == '\t';    
+}
 #endif
 
-
 #if defined(ACR_WANT_FNMATCH)
 #define FNM_NOMATCH        1    /* Match failed. */
 #define FNM_NOSYS          2    /* Function not supported (unused). */



Mime
View raw message