aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-08-25 06:45:40 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-08-25 06:45:40 +0000
commit0ed5f5afd95746db72c071a5373981d79cd49c11 (patch)
treeb0ff88761fd40ae3b5d2829113e4038cf2b54823
parentbf5f21e39a6c04c3845dc61becc90d8602546290 (diff)
downloadriscv-openocd-0ed5f5afd95746db72c071a5373981d79cd49c11.zip
riscv-openocd-0ed5f5afd95746db72c071a5373981d79cd49c11.tar.gz
riscv-openocd-0ed5f5afd95746db72c071a5373981d79cd49c11.tar.bz2
add missing isblank() for eCos
git-svn-id: svn://svn.berlios.de/openocd/trunk@2607 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r--src/helper/types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/helper/types.h b/src/helper/types.h
index 21ff2be..21a6a33 100644
--- a/src/helper/types.h
+++ b/src/helper/types.h
@@ -153,6 +153,8 @@ typedef uint64_t uintmax_t;
#define UINT64_MAX (__CONCAT(INT64_MAX, U) * 2ULL + 1ULL)
+/* C99, eCos is C90 compliant (with bits of C99) */
+#define isblank(c) ((c) == ' ' || (c) == '\t')
#endif