test_microjson: test_microjson.o microjson.o
$(CC) -o test_microjson test_microjson.o microjson.o
+check: test_microjson
+ test_microjson
+
clean:
rm -f microjson.o test_json
#include "microjson.h"
+/*
+ * Many of these structures and examples were dissected out of the GPSD code.
+ */
+
#define MAXCHANNELS 20
#define MAXUSERDEVS 4
#define JSON_DATE_MAX 24 /* ISO8601 timestamp with 2 decimal places */
}
}
- (void)fprintf(stderr, "JSON unit test ");
+ (void)fprintf(stderr, "microjson unit test ");
if (individual)
jsontest(individual);
exit(EXIT_SUCCESS);
}
+
+/* end */