Mercurial > hg > xemacs-beta
changeset 4963:4ec0248f9185
merge
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Mon, 01 Feb 2010 06:21:33 -0600 |
parents | e813cf16c015 (current diff) 87175eb65ff4 (diff) |
children | 1f509f82c8c9 |
files | src/ChangeLog |
diffstat | 3 files changed, 19 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Mon Feb 01 05:29:05 2010 -0600 +++ b/src/ChangeLog Mon Feb 01 06:21:33 2010 -0600 @@ -2188,6 +2188,21 @@ DEFER_GETTEXT() from error messages in sysdep.c and instead use special comments /* @@@begin-snarf@@@ */ and /* @@@end-snarf@@@ */ that the message snarfer presumably knows about. + * objects-gtk-impl.h: + * objects-gtk-impl.h (XCOLOR_INSTANCE_GTK_COLOR): + * objects-gtk-impl.h (XFONT_INSTANCE_GTK_FONT): + * objects-x-impl.h (XCOLOR_INSTANCE_X_COLOR): + * objects-x-impl.h (XFONT_INSTANCE_X_FONT): + Define XCOLOR_INSTANCE_X_COLOR, XCOLOR_INSTANCE_GTK_COLOR, + XFONT_INSTANCE_X_FONT, XFONT_INSTANCE_GTK_FONT for convenience + purposes. Fixes compile bug in redisplay-xlike-inc.c. + +2010-02-01 Ben Wing <ben@xemacs.org> + + * compiler.h: + Create a USED() macro to force unused-var warnings to go away, + in certain cases where it's inconvenient to do otherwise (e.g. + when THIS_IS_GTK in redisplay-xlike-inc.c). Create build_ascstring() and use it in many instances in place of build_string(). The purpose of having Ascbyte * variants is
--- a/src/objects-gtk-impl.h Mon Feb 01 05:29:05 2010 -0600 +++ b/src/objects-gtk-impl.h Mon Feb 01 06:21:33 2010 -0600 @@ -43,6 +43,7 @@ #define GTK_COLOR_INSTANCE_DATA(c) ((struct gtk_color_instance_data *) (c)->data) #define COLOR_INSTANCE_GTK_COLOR(c) (GTK_COLOR_INSTANCE_DATA (c)->color) +#define XCOLOR_INSTANCE_GTK_COLOR(c) COLOR_INSTANCE_GTK_COLOR (XCOLOR_INSTANCE (c)) #define COLOR_INSTANCE_GTK_DEALLOC(c) (GTK_COLOR_INSTANCE_DATA (c)->dealloc_on_gc) /***************************************************************************** @@ -57,6 +58,7 @@ #define GTK_FONT_INSTANCE_DATA(f) ((struct gtk_font_instance_data *) (f)->data) #define FONT_INSTANCE_GTK_FONT(f) (GTK_FONT_INSTANCE_DATA (f)->font) +#define XFONT_INSTANCE_GTK_FONT(c) FONT_INSTANCE_GTK_FONT (XFONT_INSTANCE (c)) #endif /* HAVE_GTK */ #endif /* _XEMACS_OBJECTS_GTK_IMPL_H_ */
--- a/src/objects-x-impl.h Mon Feb 01 05:29:05 2010 -0600 +++ b/src/objects-x-impl.h Mon Feb 01 06:21:33 2010 -0600 @@ -53,6 +53,7 @@ #define X_COLOR_INSTANCE_DATA(c) ((struct x_color_instance_data *) (c)->data) #define COLOR_INSTANCE_X_COLOR(c) (X_COLOR_INSTANCE_DATA (c)->color) +#define XCOLOR_INSTANCE_X_COLOR(c) COLOR_INSTANCE_X_COLOR (XCOLOR_INSTANCE (c)) #ifdef USE_XFT #define COLOR_INSTANCE_X_XFTCOLOR(c) (X_COLOR_INSTANCE_DATA (c)->xftColor) #endif @@ -77,6 +78,7 @@ #define X_FONT_INSTANCE_DATA(f) ((struct x_font_instance_data *) (f)->data) #define FONT_INSTANCE_X_FONT(f) (X_FONT_INSTANCE_DATA (f)->font) +#define XFONT_INSTANCE_X_FONT(c) FONT_INSTANCE_X_FONT (XFONT_INSTANCE (c)) #ifdef USE_XFT #define FONT_INSTANCE_X_XFTFONT(f) (X_FONT_INSTANCE_DATA (f)->xftFont) #endif