aboutsummaryrefslogtreecommitdiffstats
path: root/java/debug.sh
diff options
context:
space:
mode:
authorPaul Eggert2025-11-19 11:18:13 -0800
committerPaul Eggert2025-11-19 16:21:24 -0800
commit20fd47e741342e160d774ae6afee7182bba0de65 (patch)
tree4a7f2899a18071d202adcbb76c290bf2a18d0d27 /java/debug.sh
parenta1f36dc3b852494d6d4c2a2a949153a2dac86f2d (diff)
downloademacs-20fd47e741342e160d774ae6afee7182bba0de65.tar.gz
emacs-20fd47e741342e160d774ae6afee7182bba0de65.zip
Fix mis-declarations of non-const functions
Problem for mpz_get_d_rounded reported by Helmut Eller in: https://lists.gnu.org/r/emacs-devel/2025-11/msg00795.html * lib-src/make-docfile.c (DEFUN_pure): New constant. (write_globals, scan_c_stream): Support "attributes: pure". * src/bignum.h (mpz_get_d_rounded): * src/data.c (Fsymbolp, Fmodule_function_p, Fintegerp, Fnumberp): * src/lisp.h (bignum_to_double, bignum_to_intmax) (bignum_to_uintmax, bignum_bufsize): Now pure, not const, since they depend on current state. For example, Fsymbolp now inspects symbols_with_pos_enabled, and the bignum functions inspect bignum contents in memory. * src/data.c (Feq): * src/xfaces.c (Fface_attribute_relative_p): No longer const, since they might abort when debugging. * src/pdumper.h (pdumper_object_p, pdumper_cold_object_p) (pdumper_find_object_type, pdumper_object_p_precise): These are not const functions. But there is no need to declare them to be pure, either, as they’re inline so the compiler can figure it out.
Diffstat (limited to 'java/debug.sh')
0 files changed, 0 insertions, 0 deletions