aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtkutil.h
diff options
context:
space:
mode:
authorPaul Eggert2025-11-25 22:19:31 -0800
committerPaul Eggert2025-11-25 23:08:33 -0800
commit4e7e340ee50ab179d4c965fd3d9fab4df82a9d3a (patch)
treef17559d4aa1913ab311ad664e75541f9ca312027 /src/gtkutil.h
parent8cdc8a51efdcaefe3632370e7c3ce9c0cfe77e9d (diff)
downloademacs-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.h2
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
94extern Lisp_Object xg_get_font (struct frame *f, const char *); 94extern Lisp_Object xg_get_font (struct frame *f, char *);
95 95
96extern GtkWidget *xg_create_widget (const char *type, 96extern GtkWidget *xg_create_widget (const char *type,
97 const char *name, 97 const char *name,