You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/08/26 13:30:41 UTC
svn commit: r807964 -
/commons/sandbox/runtime/trunk/src/main/native/include/acr_port.h
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). */