1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-11 16:08:13 +00:00

Fix --with-x-toolkit=no build breakage

* oldXMenu/Create.c (XMenuCreate): Add const modifier to variable def_val.
* oldXMenu/Create.c:
* src/frame.h: Add const modifier to return type of x_get_resource_string.
* src/frame.c (x_get_resource_string): Exempt x_get_string_resource from
renaming generic x_* identifiers.
This commit is contained in:
YAMAMOTO Mitsuharu 2019-04-27 15:27:36 +09:00
parent 2822066471
commit 9921b78a4d
3 changed files with 5 additions and 5 deletions

View File

@ -87,7 +87,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. */
#define XASSOC_TABLE_SIZE 64
char *x_get_resource_string (char const *, char const *);
const char *x_get_resource_string (char const *, char const *);
@ -107,7 +107,7 @@ XMenuCreate(Display *display, Window parent, register char const *def_env)
/* Window ID of the menu's parent window. */
/* X Defaults program environment name. */
{
register char *def_val; /* X Default value temp variable. */
register const char *def_val; /* X Default value temp variable. */
register XMenu *menu; /* Pointer to the new menu. */
XMStyle menu_style; /* Menu display style. */

View File

@ -5045,8 +5045,8 @@ x_get_resource_string (const char *attribute, const char *class)
esprintf (name_key, "%s.%s", SSDATA (Vinvocation_name), attribute);
sprintf (class_key, "%s.%s", EMACS_CLASS, class);
result = gui_display_get_resource (FRAME_DISPLAY_INFO (sf),
name_key, class_key);
result = x_get_string_resource (&FRAME_DISPLAY_INFO (sf)->rdb,
name_key, class_key);
SAFE_FREE ();
return result;
}

View File

@ -1588,7 +1588,7 @@ extern enum internal_border_part frame_internal_border_part (struct frame *f, in
#if defined HAVE_X_WINDOWS
extern void x_wm_set_icon_position (struct frame *, int, int);
#if !defined USE_X_TOOLKIT
extern char *x_get_resource_string (const char *, const char *);
extern const char *x_get_resource_string (const char *, const char *);
#endif
extern void x_sync (struct frame *);
#endif /* HAVE_X_WINDOWS */