aboutsummaryrefslogtreecommitdiffstats
path: root/src/bignum.c
diff options
context:
space:
mode:
authorStefan Monnier2019-03-21 23:55:28 -0400
committerStefan Monnier2019-03-21 23:55:28 -0400
commit76fea1eba1332440eab2e3daecce053daccd3782 (patch)
tree944ea8279b8a52cb715fe3493d909bc581776430 /src/bignum.c
parent57a60db2b88dfa5dea41a3a05b736cd7cd17a953 (diff)
downloademacs-76fea1eba1332440eab2e3daecce053daccd3782.tar.gz
emacs-76fea1eba1332440eab2e3daecce053daccd3782.zip
Fix misuses of NULL when talking about the NUL character
* lisp/subr.el (inhibit-null-byte-detection): Make it an obsolete alias. * src/coding.c (setup_coding_system): Use new name. (detect_coding): Rename null_byte_found => nul_byte_found. (detect_coding_system): Use new name. Rename null_byte_found => nul_byte_found. (Fdefine_coding_system_internal): Use new name. (syms_of_coding): Rename inhibit-null-byte-detection to inhibit-nul-byte-detection. * src/w16select.c (get_clipboard_data): null_char => nul_char. * src/json.c (check_string_without_embedded_nuls): Rename from check_string_without_embedded_nulls. (Fjson_parse_string): Adjust accordingly. * src/coding.h (enum define_coding_undecided_arg_index) (enum coding_attr_index): ...null_byte... => ...nul_byte.... * lisp/info.el (info-insert-file-contents, Info-insert-dir): * lisp/international/mule.el (define-coding-system): * lisp/vc/vc-git.el (vc-git--call): * doc/lispref/nonascii.texi (Lisp and Coding Systems): Use the new name.
Diffstat (limited to 'src/bignum.c')
-rw-r--r--src/bignum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bignum.c b/src/bignum.c
index 14c4cdb82ac..4118601e108 100644
--- a/src/bignum.c
+++ b/src/bignum.c
@@ -271,7 +271,7 @@ bignum_to_uintmax (Lisp_Object x)
271 271
272/* Yield an upper bound on the buffer size needed to contain a C 272/* Yield an upper bound on the buffer size needed to contain a C
273 string representing the NUM in base BASE. This includes any 273 string representing the NUM in base BASE. This includes any
274 preceding '-' and the terminating null. */ 274 preceding '-' and the terminating NUL. */
275static ptrdiff_t 275static ptrdiff_t
276mpz_bufsize (mpz_t const num, int base) 276mpz_bufsize (mpz_t const num, int base)
277{ 277{
@@ -336,7 +336,7 @@ bignum_to_string (Lisp_Object num, int base)
336 336
337/* Create a bignum by scanning NUM, with digits in BASE. 337/* Create a bignum by scanning NUM, with digits in BASE.
338 NUM must consist of an optional '-', a nonempty sequence 338 NUM must consist of an optional '-', a nonempty sequence
339 of base-BASE digits, and a terminating null byte, and 339 of base-BASE digits, and a terminating NUL byte, and
340 the represented number must not be in fixnum range. */ 340 the represented number must not be in fixnum range. */
341 341
342Lisp_Object 342Lisp_Object