diff options
| author | Paul Eggert | 2025-11-25 22:19:31 -0800 |
|---|---|---|
| committer | Paul Eggert | 2025-11-25 23:08:33 -0800 |
| commit | 4e7e340ee50ab179d4c965fd3d9fab4df82a9d3a (patch) | |
| tree | f17559d4aa1913ab311ad664e75541f9ca312027 /src/gtkutil.h | |
| parent | 8cdc8a51efdcaefe3632370e7c3ce9c0cfe77e9d (diff) | |
| download | emacs-4e7e340ee50ab179d4c965fd3d9fab4df82a9d3a.tar.gz emacs-4e7e340ee50ab179d4c965fd3d9fab4df82a9d3a.zip | |
Port to glibc 2.43+ with GCC 15+
Port to planned glibc 2.43 (scheduled for February 2026),
which will support qualifier-generic standard functions; see:
https://sourceware.org/git/?p=glibc.git;a=commit;h=cd748a63ab1a7ae846175c532a3daab341c62690
For example, strchr (P, C) will return pointer to const if P is
pointer to const. The idea is to catch dumb programming errors when a
program mistakenly uses strchr to convert a pointer to const
to an unrestricted pointer. This feature is required by C23,
and will be enabled by default in GCC 15.
* src/callint.c (Fcall_interactively):
Respect constness of pointer when calling memchr.
* src/gtkutil.c (xg_get_font):
2nd arg is char *, not const char *.
* src/xfaces.c (parse_float_color_comp): Return bool, not double.
New arg DST. All callers changed. This makes it easier for
callers to use char const *.
(parse_color_spec): Respect constness of pointer when calling strchr.
Diffstat (limited to 'src/gtkutil.h')
| -rw-r--r-- | src/gtkutil.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gtkutil.h b/src/gtkutil.h index cabf88da73f..e6c1e19c765 100644 --- a/src/gtkutil.h +++ b/src/gtkutil.h | |||
| @@ -91,7 +91,7 @@ extern char *xg_get_file_name (struct frame *f, | |||
| 91 | bool mustmatch_p, | 91 | bool mustmatch_p, |
| 92 | bool only_dir_p); | 92 | bool only_dir_p); |
| 93 | 93 | ||
| 94 | extern Lisp_Object xg_get_font (struct frame *f, const char *); | 94 | extern Lisp_Object xg_get_font (struct frame *f, char *); |
| 95 | 95 | ||
| 96 | extern GtkWidget *xg_create_widget (const char *type, | 96 | extern GtkWidget *xg_create_widget (const char *type, |
| 97 | const char *name, | 97 | const char *name, |