aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoakim Verona2013-04-02 08:27:06 +0200
committerJoakim Verona2013-04-02 08:27:06 +0200
commit39667649e3bcf9b9de7b70ee7dd2df7bfb9ac972 (patch)
tree3a4e52c3ada312618e94abd078e384e3a6223708 /src
parent86dc02fe08b1a2d26d380ba67d6a165ead70bc79 (diff)
parent5584cae0be16d1188dbe4943e71b4954a9a028d0 (diff)
downloademacs-39667649e3bcf9b9de7b70ee7dd2df7bfb9ac972.tar.gz
emacs-39667649e3bcf9b9de7b70ee7dd2df7bfb9ac972.zip
upstream
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog17
-rw-r--r--src/casetab.c12
-rw-r--r--src/image.c36
-rw-r--r--src/w32.c3
-rw-r--r--src/xfns.c10
5 files changed, 53 insertions, 25 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 94eef08b5f8..6698cfe0fcf 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,20 @@
12013-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * casetab.c (init_casetab_once): Don't abuse the ascii eqv table for
4 the upcase table.
5
62013-03-27 rzl24ozi <rzl24ozi@gmail.com> (tiny changes)
7
8 * image.c [WINDOWSNT]: Fix calls to DEF_IMGLIB_FN for SVG function.
9
102013-03-27 Eli Zaretskii <eliz@gnu.org>
11
12 * w32proc.c (IsValidLocale) [__GNUC__]: Don't declare prototype,
13 since MinGW's w32api headers do. This avoids compiler warnings.
14
15 * w32.c (FSCTL_GET_REPARSE_POINT) [_MSC_VER || _W64]: Don't define
16 if already defined.
17
12013-03-26 Eli Zaretskii <eliz@gnu.org> 182013-03-26 Eli Zaretskii <eliz@gnu.org>
2 19
3 * w32.c (_REPARSE_DATA_BUFFER): Condition by _MSVC and _W64. 20 * w32.c (_REPARSE_DATA_BUFFER): Condition by _MSVC and _W64.
diff --git a/src/casetab.c b/src/casetab.c
index 76f72b26db3..13bed64e4b2 100644
--- a/src/casetab.c
+++ b/src/casetab.c
@@ -246,7 +246,7 @@ void
246init_casetab_once (void) 246init_casetab_once (void)
247{ 247{
248 register int i; 248 register int i;
249 Lisp_Object down, up; 249 Lisp_Object down, up, eqv;
250 DEFSYM (Qcase_table, "case-table"); 250 DEFSYM (Qcase_table, "case-table");
251 251
252 /* Intern this now in case it isn't already done. 252 /* Intern this now in case it isn't already done.
@@ -275,13 +275,21 @@ init_casetab_once (void)
275 275
276 for (i = 0; i < 128; i++) 276 for (i = 0; i < 128; i++)
277 { 277 {
278 int c = (i >= 'a' && i <= 'z') ? i + ('A' - 'a') : i;
279 CHAR_TABLE_SET (up, i, make_number (c));
280 }
281
282 eqv = Fmake_char_table (Qcase_table, Qnil);
283
284 for (i = 0; i < 128; i++)
285 {
278 int c = ((i >= 'A' && i <= 'Z') ? i + ('a' - 'A') 286 int c = ((i >= 'A' && i <= 'Z') ? i + ('a' - 'A')
279 : ((i >= 'a' && i <= 'z') ? i + ('A' - 'a') 287 : ((i >= 'a' && i <= 'z') ? i + ('A' - 'a')
280 : i)); 288 : i));
281 CHAR_TABLE_SET (up, i, make_number (c)); 289 CHAR_TABLE_SET (up, i, make_number (c));
282 } 290 }
283 291
284 set_char_table_extras (down, 2, Fcopy_sequence (up)); 292 set_char_table_extras (down, 2, eqv);
285 293
286 /* Fill in what isn't filled in. */ 294 /* Fill in what isn't filled in. */
287 set_case_table (down, 1); 295 set_case_table (down, 1);
diff --git a/src/image.c b/src/image.c
index 21f486176df..6da430bee73 100644
--- a/src/image.c
+++ b/src/image.c
@@ -8120,24 +8120,24 @@ svg_image_p (Lisp_Object object)
8120#ifdef WINDOWSNT 8120#ifdef WINDOWSNT
8121 8121
8122/* SVG library functions. */ 8122/* SVG library functions. */
8123DEF_IMGLIB_FN (RsvgHandle *, rsvg_handle_new); 8123DEF_IMGLIB_FN (RsvgHandle *, rsvg_handle_new, (void));
8124DEF_IMGLIB_FN (void, rsvg_handle_get_dimensions); 8124DEF_IMGLIB_FN (void, rsvg_handle_get_dimensions, (RsvgHandle *, RsvgDimensionData *));
8125DEF_IMGLIB_FN (gboolean, rsvg_handle_write); 8125DEF_IMGLIB_FN (gboolean, rsvg_handle_write, (RsvgHandle *, const guchar *, gsize, GError **));
8126DEF_IMGLIB_FN (gboolean, rsvg_handle_close); 8126DEF_IMGLIB_FN (gboolean, rsvg_handle_close, (RsvgHandle *, GError **));
8127DEF_IMGLIB_FN (GdkPixbuf *, rsvg_handle_get_pixbuf); 8127DEF_IMGLIB_FN (GdkPixbuf *, rsvg_handle_get_pixbuf, (RsvgHandle *));
8128 8128DEF_IMGLIB_FN (void *, rsvg_handle_set_size_callback, (RsvgHandle *, RsvgSizeFunc, gpointer, GDestroyNotify));
8129DEF_IMGLIB_FN (int, gdk_pixbuf_get_width); 8129
8130DEF_IMGLIB_FN (int, gdk_pixbuf_get_height); 8130DEF_IMGLIB_FN (int, gdk_pixbuf_get_width, (const GdkPixbuf *));
8131DEF_IMGLIB_FN (guchar *, gdk_pixbuf_get_pixels); 8131DEF_IMGLIB_FN (int, gdk_pixbuf_get_height, (const GdkPixbuf *));
8132DEF_IMGLIB_FN (int, gdk_pixbuf_get_rowstride); 8132DEF_IMGLIB_FN (guchar *, gdk_pixbuf_get_pixels, (const GdkPixbuf *));
8133DEF_IMGLIB_FN (GdkColorspace, gdk_pixbuf_get_colorspace); 8133DEF_IMGLIB_FN (int, gdk_pixbuf_get_rowstride, (const GdkPixbuf *));
8134DEF_IMGLIB_FN (int, gdk_pixbuf_get_n_channels); 8134DEF_IMGLIB_FN (GdkColorspace, gdk_pixbuf_get_colorspace, (const GdkPixbuf *));
8135DEF_IMGLIB_FN (gboolean, gdk_pixbuf_get_has_alpha); 8135DEF_IMGLIB_FN (int, gdk_pixbuf_get_n_channels, (const GdkPixbuf *));
8136DEF_IMGLIB_FN (int, gdk_pixbuf_get_bits_per_sample); 8136DEF_IMGLIB_FN (gboolean, gdk_pixbuf_get_has_alpha, (const GdkPixbuf *));
8137 8137DEF_IMGLIB_FN (int, gdk_pixbuf_get_bits_per_sample, (const GdkPixbuf *));
8138DEF_IMGLIB_FN (void, g_type_init); 8138
8139DEF_IMGLIB_FN (void, g_object_unref); 8139DEF_IMGLIB_FN (void, g_type_init, (void));
8140DEF_IMGLIB_FN (void, g_error_free); 8140DEF_IMGLIB_FN (void, g_object_unref, (gpointer));
8141 8141
8142Lisp_Object Qgdk_pixbuf, Qglib, Qgobject; 8142Lisp_Object Qgdk_pixbuf, Qglib, Qgobject;
8143 8143
diff --git a/src/w32.c b/src/w32.c
index 93a4ce1a8c1..431826c4b82 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -174,9 +174,12 @@ typedef struct _REPARSE_DATA_BUFFER {
174#ifndef CTL_CODE 174#ifndef CTL_CODE
175#define CTL_CODE(t,f,m,a) (((t)<<16)|((a)<<14)|((f)<<2)|(m)) 175#define CTL_CODE(t,f,m,a) (((t)<<16)|((a)<<14)|((f)<<2)|(m))
176#endif 176#endif
177/* MinGW64 defines FSCTL_GET_REPARSE_POINT on winioctl.h. */
178#ifndef FSCTL_GET_REPARSE_POINT
177#define FSCTL_GET_REPARSE_POINT \ 179#define FSCTL_GET_REPARSE_POINT \
178 CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 42, METHOD_BUFFERED, FILE_ANY_ACCESS) 180 CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 42, METHOD_BUFFERED, FILE_ANY_ACCESS)
179#endif 181#endif
182#endif
180 183
181/* TCP connection support. */ 184/* TCP connection support. */
182#include <sys/socket.h> 185#include <sys/socket.h>
diff --git a/src/xfns.c b/src/xfns.c
index a6a179be97d..e24d3981a09 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -5591,7 +5591,7 @@ nil, it defaults to the selected frame. */)
5591 Keyboard 5591 Keyboard
5592 ***********************************************************************/ 5592 ***********************************************************************/
5593 5593
5594#ifdef HAVE_XKBGETKEYBOARD 5594#ifdef HAVE_XKB
5595#include <X11/XKBlib.h> 5595#include <X11/XKBlib.h>
5596#include <X11/keysym.h> 5596#include <X11/keysym.h>
5597#endif 5597#endif
@@ -5605,7 +5605,9 @@ usual X keysyms. Value is `lambda' if we cannot determine if both keys are
5605present and mapped to the usual X keysyms. */) 5605present and mapped to the usual X keysyms. */)
5606 (Lisp_Object frame) 5606 (Lisp_Object frame)
5607{ 5607{
5608#ifdef HAVE_XKBGETKEYBOARD 5608#ifndef HAVE_XKB
5609 return Qlambda;
5610#else
5609 XkbDescPtr kb; 5611 XkbDescPtr kb;
5610 struct frame *f = check_x_frame (frame); 5612 struct frame *f = check_x_frame (frame);
5611 Display *dpy = FRAME_X_DISPLAY (f); 5613 Display *dpy = FRAME_X_DISPLAY (f);
@@ -5683,9 +5685,7 @@ present and mapped to the usual X keysyms. */)
5683 } 5685 }
5684 unblock_input (); 5686 unblock_input ();
5685 return have_keys; 5687 return have_keys;
5686#else /* not HAVE_XKBGETKEYBOARD */ 5688#endif
5687 return Qlambda;
5688#endif /* not HAVE_XKBGETKEYBOARD */
5689} 5689}
5690 5690
5691 5691