]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Fix typos 752/head
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 6 Mar 2022 15:07:36 +0000 (16:07 +0100)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 6 Mar 2022 15:07:36 +0000 (16:07 +0100)
Mostly found with codespell and during code review.

CMakeLists.txt
bench/README.bench.md
doc/Doxyfile.in
linkhash.c
printbuf.c
printbuf.h
tests/test_json_pointer.c

index ba3550bd3470c3b84f8df83dfbd9fd9a2935f366..98b7eda253bd4bc8424ed0e9c370cd091c55729a 100644 (file)
@@ -156,7 +156,7 @@ check_include_file(xlocale.h        HAVE_XLOCALE_H)
 
 if (HAVE_INTTYPES_H)
        # Set a json-c specific var to stamp into json_config.h
-       # in a way that hopefull ywon't conflict with other 
+       # in a way that hopefully won't conflict with other
        # projects that use json-c.
     set(JSON_C_HAVE_INTTYPES_H 1)
 endif()
index 62c6908adc9c3f6d2166bd8dcf8831e2373e2a02..c37cb1a69de7bf3132ff74eeb28612a9c13267a8 100644 (file)
@@ -70,7 +70,7 @@ Issues
     Using heaptrack, and analyzing the histogram, only shows ~2.6MB
     ```
     heaptrack ./json_parse -n canada.json
-    heaptrack --analyze heaptrack*gz -H histgram.out
+    heaptrack --analyze heaptrack*gz -H histogram.out
     awk ' { s=$1; count=$2; ru=(int((s+ 15) / 16)) * 16; wasted = ((ru-s)*count); print s, count, ru-s, wasted; total=total+wasted} END { print "Total: ", total }' histogram.out
     ```
 
index f064f60456aed493fa9d38d57380d9e616828a7a..106ed89741524bc7f2ab8e92f032f880c95f7305 100644 (file)
@@ -1646,8 +1646,8 @@ EXTRA_PACKAGES         =
 # Note: Only use a user-defined header if you know what you are doing! The
 # following commands have a special meaning inside the header: $title,
 # $datetime, $date, $doxygenversion, $projectname, $projectnumber,
-# $projectbrief, $projectlogo. Doxygen will replace $title with the empy string,
-# for the replacement values of the other commands the user is refered to
+# $projectbrief, $projectlogo. Doxygen will replace $title with the empty string,
+# for the replacement values of the other commands the user is referred to
 # HTML_HEADER.
 # This tag requires that the tag GENERATE_LATEX is set to YES.
 
index 6105160c758bc72e6ceb8286a2a68e09be2f6956..b9ca1d17252742acf42dd0af76cb5b92e9162f1b 100644 (file)
@@ -67,7 +67,7 @@ int lh_ptr_equal(const void *k1, const void *k2)
  * hashlittle from lookup3.c, by Bob Jenkins, May 2006, Public Domain.
  * http://burtleburtle.net/bob/c/lookup3.c
  * minor modifications to make functions static so no symbols are exported
- * minor mofifications to compile with -Werror
+ * minor modifications to compile with -Werror
  */
 
 /*
index 245ad878d2833f80a0e782b2ef574c833c2af050..1e737439b3bae900d7590a85b53bbe41f7158ef7 100644 (file)
@@ -136,12 +136,12 @@ int sprintbuf(struct printbuf *p, const char *msg, ...)
        int size;
        char buf[128];
 
-       /* user stack buffer first */
+       /* use stack buffer first */
        va_start(ap, msg);
        size = vsnprintf(buf, 128, msg, ap);
        va_end(ap);
        /* if string is greater than stack buffer, then use dynamic string
-        * with vasprintf.  Note: some implementation of vsnprintf return -1
+        * with vasprintf.  Note: some implementations of vsnprintf return -1
         * if output is truncated whereas some return the number of bytes that
         * would have been written - this code handles both cases.
         */
index 9b338021e2e2732d4e5e0bd1c3e44d43fe38e27f..f3133aebdf710b088b9380a311ed5f50e8c1d4fa 100644 (file)
@@ -15,7 +15,7 @@
 
 /**
  * @file
- * @brief Internal string buffer handing.  Unless you're writing a
+ * @brief Internal string buffer handling.  Unless you're writing a
  *        json_object_to_json_string_fn implementation for use with
  *        json_object_set_serializer() direct use of this is not
  *        recommended.
index 3174c87e6805b9a0b3cb90742c0ed54da06141e0..4ac78cb81f01f6865161ab910333a45aea7c9901 100644 (file)
@@ -124,7 +124,7 @@ static void test_example_get(void)
        json_object_put(jo1);
 }
 
-/* I'm not too happy with the RFC example to test the recusion of the json_pointer_get() function */
+/* I'm not too happy with the RFC example to test the recursion of the json_pointer_get() function */
 static void test_recursion_get(void)
 {
        struct json_object *jo2, *jo1 = json_tokener_parse(rec_input_json_str);