1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-05 22:20:24 -08:00
emacs/lib-src
Paul Eggert 20fd47e741 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.
2025-11-19 16:21:24 -08:00
..
asset-directory-tool.c Update copyright year to 2025 2025-01-02 18:39:42 +01:00
be_resources.cc Update copyright year to 2025 2025-01-02 18:39:42 +01:00
ChangeLog.1 ; Delete troff markers from ChangeLog files 2025-02-20 02:46:43 +01:00
COPYING Merge from Gnulib 2017-10-01 18:31:10 -07:00
ebrowse.c Update from Gnulib by running admin/merge-gnulib 2025-11-04 13:32:58 -08:00
emacsclient.c Merge from origin/emacs-30 2025-04-30 07:14:23 -04:00
etags.c Update from Gnulib by running admin/merge-gnulib 2025-11-04 13:32:58 -08:00
hexl.c Update copyright year to 2025 2025-01-02 18:39:42 +01:00
make-docfile.c Fix mis-declarations of non-const functions 2025-11-19 16:21:24 -08:00
make-fingerprint.c ; * lib-src/make-fingerprint.c: Fix copyright year. 2025-01-09 06:22:21 +01:00
Makefile.in Remove ctags program 2025-03-22 11:57:29 -07:00
movemail.c Update copyright year to 2025 2025-01-02 18:39:42 +01:00
ntlib.c Support sub-second file time-stamps on MS-Windows 2025-05-11 13:33:24 +03:00
ntlib.h Update copyright year to 2025 2025-01-02 18:39:42 +01:00
pop.c ; Fix warnings in MinGW builds 2025-06-14 16:56:44 +03:00
pop.h Update copyright year to 2025 2025-01-02 18:39:42 +01:00
rcs2log Fix copyright years by hand 2025-01-02 18:44:48 +01:00
README changed Emacs' to GNU Emacs' 2006-03-31 07:25:44 +00:00
seccomp-filter.c Port varargs macros better to C99 2025-06-27 23:54:45 -07:00
update-game-score.c Update copyright year to 2025 2025-01-02 18:39:42 +01:00

This directory contains the source code for the architecture-dependent
files that go in ${archlibdir}.  At present, these are mostly utility
programs used by GNU Emacs.