summaryrefslogtreecommitdiff
path: root/json.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-09-07 06:24:26 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-09-07 06:24:26 -0400
commit620f7445dcacfbb740c55a9e4b891593c3f94910 (patch)
treee092711dae9ac1af540a2e5469493f13303248c1 /json.h
parent76b2aaba9575d60230387555822b18ceeb07353a (diff)
downloadgpsd-620f7445dcacfbb740c55a9e4b891593c3f94910.tar.gz
Nuke trailing whitespace in C source.
Diffstat (limited to 'json.h')
-rw-r--r--json.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/json.h b/json.h
index b691729c..ea272f75 100644
--- a/json.h
+++ b/json.h
@@ -18,7 +18,7 @@ struct json_enum_t {
int value;
};
-struct json_array_t {
+struct json_array_t {
json_type element_type;
union {
struct {
@@ -58,7 +58,7 @@ struct json_attr_t {
} dflt;
size_t len;
const struct json_enum_t *map;
- bool nodefault;
+ bool nodefault;
};
#define JSON_ATTR_MAX 31 /* max chars in JSON attribute name */
@@ -67,9 +67,9 @@ struct json_attr_t {
#ifdef __cplusplus
extern "C" {
#endif
-int json_read_object(const char *, const struct json_attr_t *,
+int json_read_object(const char *, const struct json_attr_t *,
/*@null@*/const char **);
-int json_read_array(const char *, const struct json_array_t *,
+int json_read_array(const char *, const struct json_array_t *,
/*@null@*/const char **);
const /*@observer@*/char *json_error_string(int);
@@ -103,14 +103,14 @@ void json_enable_debug(int, FILE *);
#define JSON_ERR_NULLPTR 22 /* unexpected null value or attribute pointer */
/*
- * Use the following macros to declare template initializers for structobject
+ * Use the following macros to declare template initializers for structobject
* arrays. Writing the equivalents out by hand is error-prone.
*
- * STRUCTOBJECT takes a structure name s, and a fieldname f in s.
+ * STRUCTOBJECT takes a structure name s, and a fieldname f in s.
*
- * STRUCTARRAY takes the name of a structure array, a pointer to a an
+ * STRUCTARRAY takes the name of a structure array, a pointer to a an
* initializer defining the subobject type, and the address of an integer to
- * store the length in.
+ * store the length in.
*/
#define STRUCTOBJECT(s, f) .addr.offset = offsetof(s, f)
#define STRUCTARRAY(a, e, n) \