Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Define 'FIELDS_HT' and 'FIELDS_SP'

  • Loading branch information...
commit e640f229cc71b1804911e0e8a58836fc9cf0d9de 1 parent 0a1c1a5
@jvirtanen authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/fields.c
View
4 src/fields.c
@@ -27,8 +27,10 @@
#define FIELDS_FAILURE (-1)
+#define FIELDS_HT 9
#define FIELDS_CR 13
#define FIELDS_LF 10
+#define FIELDS_SP 32
typedef int fields_parse_fn(struct fields_reader *, struct fields_record *);
@@ -959,5 +961,5 @@ fields_crlf(char ch)
static inline bool
fields_whitespace(char ch)
{
- return (ch == 9) || (ch == 32);
+ return (ch == FIELDS_HT) || (ch == FIELDS_SP);
}
Please sign in to comment.
Something went wrong with that request. Please try again.