From: Eric S. Raymond Date: Wed, 17 Sep 2014 15:52:15 +0000 (-0400) Subject: Add historical note. X-Git-Tag: 1.0~31 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=dbc47e5f9f583af0313eeb558485b1446f0eaf31;p=microjson.git Add historical note. --- diff --git a/Makefile b/Makefile index 59cdb5f..e5be1b1 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,9 @@ microjson.o: microjson.c microjson.h 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 diff --git a/test_microjson.c b/test_microjson.c index d7b99e0..5407fc5 100644 --- a/test_microjson.c +++ b/test_microjson.c @@ -19,6 +19,10 @@ #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 */ @@ -735,7 +739,7 @@ int main(int argc, char *argv[]) } } - (void)fprintf(stderr, "JSON unit test "); + (void)fprintf(stderr, "microjson unit test "); if (individual) jsontest(individual); @@ -749,3 +753,5 @@ int main(int argc, char *argv[]) exit(EXIT_SUCCESS); } + +/* end */