]> git.eshelyaron.com Git - emacs.git/commitdiff
; * src/json.c: Convert non-ASCII quotes to ASCII characters.
authorEli Zaretskii <eliz@gnu.org>
Thu, 14 Dec 2017 17:53:58 +0000 (19:53 +0200)
committerEli Zaretskii <eliz@gnu.org>
Thu, 14 Dec 2017 17:53:58 +0000 (19:53 +0200)
src/json.c

index 7025ae165cdeebb5c9beaa19757b1c2785d7c948..72ca93f621b27fc50780daff0937f889e1f304cd 100644 (file)
@@ -151,8 +151,8 @@ init_json_functions (void)
 #endif /* WINDOWSNT */
 
 /* We install a custom allocator so that we can avoid objects larger
-   than PTRDIFF_MAX.  Such objects wouldnt play well with the rest of
-   Emacss codebase, which generally uses ptrdiff_t for sizes and
+   than PTRDIFF_MAX.  Such objects wouldn't play well with the rest of
+   Emacs's codebase, which generally uses ptrdiff_t for sizes and
    indices.  The other functions in this file also generally assume
    that size_t values never exceed PTRDIFF_MAX.  */
 
@@ -324,7 +324,7 @@ lisp_to_json_toplevel_1 (Lisp_Object lisp, json_t **json)
         if (!NILP (HASH_HASH (h, i)))
           {
             Lisp_Object key = json_encode (HASH_KEY (h, i));
-            /* We cant specify the length, so the string must be
+            /* We can't specify the length, so the string must be
                null-terminated.  */
             check_string_without_embedded_nulls (key);
             int status = json_object_set_new (*json, SSDATA (key),
@@ -565,7 +565,7 @@ json_to_lisp (json_t *json)
             Lisp_Object key = json_build_string (key_str);
             EMACS_UINT hash;
             ptrdiff_t i = hash_lookup (h, key, &hash);
-            /* Keys in JSON objects are unique, so the key cant be
+            /* Keys in JSON objects are unique, so the key can't be
                present yet.  */
             eassert (i < 0);
             hash_put (h, key, json_to_lisp (value), hash);
@@ -574,7 +574,7 @@ json_to_lisp (json_t *json)
         return result;
       }
     }
-  /* Cant get here.  */
+  /* Can't get here.  */
   emacs_abort ();
 }
 
@@ -696,7 +696,7 @@ not moved.  */)
   return unbind_to (count, lisp);
 }
 
-/* Simplified version of ‘define-error’ that works with pure
+/* Simplified version of 'define-error' that works with pure
    objects.  */
 
 static void