aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2015-01-12 11:26:06 -0800
committerPaul Eggert2015-01-12 11:28:05 -0800
commit52afe0cfa248053c96e26bc67bdc427945358655 (patch)
tree0c896237d5a9d2bad10176a537358aa6cad3f542 /src
parentcc59a3e577cf54dfa085bba2da8840b2e6cdf7e7 (diff)
downloademacs-52afe0cfa248053c96e26bc67bdc427945358655.tar.gz
emacs-52afe0cfa248053c96e26bc67bdc427945358655.zip
Port to 32-bit MingGW --with-wide-int
Problem reported by Eli Zaretskii in: http://lists.gnu.org/archive/html/emacs-devel/2015-01/msg00265.html * lisp.h (struct Lisp_Sub_Char_Table): Check that offset matches what we think it is, rather than checking only its alignment (and doing so incorrectly on MinGW).
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog9
-rw-r--r--src/lisp.h7
2 files changed, 12 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 32f17e1a863..252dfd33620 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,12 @@
12015-01-12 Paul Eggert <eggert@cs.ucla.edu>
2
3 Port to 32-bit MingGW --with-wide-int
4 Problem reported by Eli Zaretskii in:
5 http://lists.gnu.org/archive/html/emacs-devel/2015-01/msg00265.html
6 * lisp.h (struct Lisp_Sub_Char_Table): Check that offset matches
7 what we think it is, rather than checking only its alignment (and
8 doing so incorrectly on MinGW).
9
12015-01-12 Dmitry Antipov <dmantipov@yandex.ru> 102015-01-12 Dmitry Antipov <dmantipov@yandex.ru>
2 11
3 * fileio.c (Ffile_name_as_directory, Fdirectory_file_name): 12 * fileio.c (Ffile_name_as_directory, Fdirectory_file_name):
diff --git a/src/lisp.h b/src/lisp.h
index 9ed9375cff8..6a39f083a41 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -1689,10 +1689,9 @@ CHAR_TABLE_EXTRA_SLOTS (struct Lisp_Char_Table *ct)
1689 - CHAR_TABLE_STANDARD_SLOTS); 1689 - CHAR_TABLE_STANDARD_SLOTS);
1690} 1690}
1691 1691
1692/* Make sure that sub char-table contents slot 1692/* Make sure that sub char-table contents slot is where we think it is. */
1693 is aligned on a multiple of Lisp_Objects. */ 1693verify (offsetof (struct Lisp_Sub_Char_Table, contents)
1694verify ((offsetof (struct Lisp_Sub_Char_Table, contents) 1694 == offsetof (struct Lisp_Vector, contents[SUB_CHAR_TABLE_OFFSET]));
1695 - offsetof (struct Lisp_Sub_Char_Table, depth)) % word_size == 0);
1696 1695
1697/*********************************************************************** 1696/***********************************************************************
1698 Symbols 1697 Symbols