]> thyrsus.com Git - microjson.git/commitdiff
Add historical note.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 17 Sep 2014 15:52:15 +0000 (11:52 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 17 Sep 2014 15:52:15 +0000 (11:52 -0400)
Makefile
test_microjson.c

index 59cdb5f15d02b94d0a00fb5ba706f41cdb9304d5..e5be1b1f2d01709b4c3d9e4dc41cd6e293cc0553 100644 (file)
--- 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
 
index d7b99e0269d3d398110e3d4c87b577c049306ff2..5407fc5bff2f990ae632c517ff0171a849fa4aab 100644 (file)
 
 #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 */