aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2012-12-02 17:08:31 -0800
committerGlenn Morris2012-12-02 17:08:31 -0800
commitc5bc2d1d0558bbaa29ef04f9bd7bef50146382ab (patch)
treebeabc46c767d32fe6cda79f0567834d5ea8225ee /src
parent1bf3989cd4ebffdeeebfaaca83c6866416c3908a (diff)
parent328dac0d42a2b395a327c0eda0ed4bbcec4f6c55 (diff)
downloademacs-c5bc2d1d0558bbaa29ef04f9bd7bef50146382ab.tar.gz
emacs-c5bc2d1d0558bbaa29ef04f9bd7bef50146382ab.zip
Merge from emacs-24; up to 2012-11-23T06:23:28Z!cyd@gnu.org
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog22
-rw-r--r--src/data.c8
-rw-r--r--src/fileio.c2
-rw-r--r--src/w32.c8
-rw-r--r--src/w32common.h2
-rw-r--r--src/w32fns.c5
6 files changed, 40 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d5794b513e6..0808dad2c93 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,25 @@
12012-12-03 Chong Yidong <cyd@gnu.org>
2
3 * fileio.c (Vauto_save_list_file_name): Doc fix.
4
52012-12-03 Fabrice Popineau <fabrice.popineau@gmail.com>
6
7 * w32fns.c: Remove prototype of atof.
8 (syspage_mask): Declared DWORD_PTR, for compatibility with 64-bit
9 builds.
10 (file_dialog_callback): Declared UINT_PTR.
11
12 * w32common.h (syspage_mask): Declare DWORD_PTR, for compatibility
13 with 64-bit builds.
14
15 * w32.c (FILE_DEVICE_FILE_SYSTEM, METHOD_BUFFERED)
16 (FILE_ANY_ACCESS, CTL_CODE) [_MSC_VER]: Define only if not already
17 defined.
18
192012-12-03 Glenn Morris <rgm@gnu.org>
20
21 * data.c (Fboundp, Fsymbol_value): Doc fix re lexical-binding.
22
12012-12-02 Paul Eggert <eggert@cs.ucla.edu> 232012-12-02 Paul Eggert <eggert@cs.ucla.edu>
2 24
3 Fix xpalloc confusion after memory is exhausted. 25 Fix xpalloc confusion after memory is exhausted.
diff --git a/src/data.c b/src/data.c
index 5fc6afaaa03..a72fa3e2b5f 100644
--- a/src/data.c
+++ b/src/data.c
@@ -506,7 +506,9 @@ DEFUN ("setcdr", Fsetcdr, Ssetcdr, 2, 2, 0,
506/* Extract and set components of symbols. */ 506/* Extract and set components of symbols. */
507 507
508DEFUN ("boundp", Fboundp, Sboundp, 1, 1, 0, 508DEFUN ("boundp", Fboundp, Sboundp, 1, 1, 0,
509 doc: /* Return t if SYMBOL's value is not void. */) 509 doc: /* Return t if SYMBOL's value is not void.
510Note that if `lexical-binding' is in effect, this refers to the
511global value outside of any lexical scope. */)
510 (register Lisp_Object symbol) 512 (register Lisp_Object symbol)
511{ 513{
512 Lisp_Object valcontents; 514 Lisp_Object valcontents;
@@ -1047,7 +1049,9 @@ find_symbol_value (Lisp_Object symbol)
1047} 1049}
1048 1050
1049DEFUN ("symbol-value", Fsymbol_value, Ssymbol_value, 1, 1, 0, 1051DEFUN ("symbol-value", Fsymbol_value, Ssymbol_value, 1, 1, 0,
1050 doc: /* Return SYMBOL's value. Error if that is void. */) 1052 doc: /* Return SYMBOL's value. Error if that is void.
1053Note that if `lexical-binding' is in effect, this returns the
1054global value outside of any lexical scope. */)
1051 (Lisp_Object symbol) 1055 (Lisp_Object symbol)
1052{ 1056{
1053 Lisp_Object val; 1057 Lisp_Object val;
diff --git a/src/fileio.c b/src/fileio.c
index 48dbf20b88f..9edd88ca64f 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -5771,7 +5771,7 @@ This applies only to the operation `inhibit-file-name-operation'. */);
5771 DEFVAR_LISP ("auto-save-list-file-name", Vauto_save_list_file_name, 5771 DEFVAR_LISP ("auto-save-list-file-name", Vauto_save_list_file_name,
5772 doc: /* File name in which we write a list of all auto save file names. 5772 doc: /* File name in which we write a list of all auto save file names.
5773This variable is initialized automatically from `auto-save-list-file-prefix' 5773This variable is initialized automatically from `auto-save-list-file-prefix'
5774shortly after Emacs reads your `.emacs' file, if you have not yet given it 5774shortly after Emacs reads your init file, if you have not yet given it
5775a non-nil value. */); 5775a non-nil value. */);
5776 Vauto_save_list_file_name = Qnil; 5776 Vauto_save_list_file_name = Qnil;
5777 5777
diff --git a/src/w32.c b/src/w32.c
index c8e16dfaa94..e81fc7b4f3e 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -150,10 +150,18 @@ typedef struct _REPARSE_DATA_BUFFER {
150 } DUMMYUNIONNAME; 150 } DUMMYUNIONNAME;
151} REPARSE_DATA_BUFFER, *PREPARSE_DATA_BUFFER; 151} REPARSE_DATA_BUFFER, *PREPARSE_DATA_BUFFER;
152 152
153#ifndef FILE_DEVICE_FILE_SYSTEM
153#define FILE_DEVICE_FILE_SYSTEM 9 154#define FILE_DEVICE_FILE_SYSTEM 9
155#endif
156#ifndef METHOD_BUFFERED
154#define METHOD_BUFFERED 0 157#define METHOD_BUFFERED 0
158#endif
159#ifndef FILE_ANY_ACCESS
155#define FILE_ANY_ACCESS 0x00000000 160#define FILE_ANY_ACCESS 0x00000000
161#endif
162#ifndef CTL_CODE
156#define CTL_CODE(t,f,m,a) (((t)<<16)|((a)<<14)|((f)<<2)|(m)) 163#define CTL_CODE(t,f,m,a) (((t)<<16)|((a)<<14)|((f)<<2)|(m))
164#endif
157#define FSCTL_GET_REPARSE_POINT \ 165#define FSCTL_GET_REPARSE_POINT \
158 CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 42, METHOD_BUFFERED, FILE_ANY_ACCESS) 166 CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 42, METHOD_BUFFERED, FILE_ANY_ACCESS)
159#endif 167#endif
diff --git a/src/w32common.h b/src/w32common.h
index 50724e5553c..5e9b61824ae 100644
--- a/src/w32common.h
+++ b/src/w32common.h
@@ -34,7 +34,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
34 34
35extern SYSTEM_INFO sysinfo_cache; 35extern SYSTEM_INFO sysinfo_cache;
36extern OSVERSIONINFO osinfo_cache; 36extern OSVERSIONINFO osinfo_cache;
37extern unsigned long syspage_mask; 37extern DWORD_PTR syspage_mask;
38 38
39extern int w32_major_version; 39extern int w32_major_version;
40extern int w32_minor_version; 40extern int w32_minor_version;
diff --git a/src/w32fns.c b/src/w32fns.c
index 90f5b1695ea..044c377f496 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -82,7 +82,6 @@ void syms_of_w32fns (void);
82void globals_of_w32fns (void); 82void globals_of_w32fns (void);
83 83
84extern void free_frame_menubar (struct frame *); 84extern void free_frame_menubar (struct frame *);
85extern double atof (const char *);
86extern int w32_console_toggle_lock_key (int, Lisp_Object); 85extern int w32_console_toggle_lock_key (int, Lisp_Object);
87extern void w32_menu_display_help (HWND, HMENU, UINT, UINT); 86extern void w32_menu_display_help (HWND, HMENU, UINT, UINT);
88extern void w32_free_menu_strings (HWND); 87extern void w32_free_menu_strings (HWND);
@@ -223,7 +222,7 @@ SYSTEM_INFO sysinfo_cache;
223/* This gives us version, build, and platform identification. */ 222/* This gives us version, build, and platform identification. */
224OSVERSIONINFO osinfo_cache; 223OSVERSIONINFO osinfo_cache;
225 224
226unsigned long syspage_mask = 0; 225DWORD_PTR syspage_mask = 0;
227 226
228/* The major and minor versions of NT. */ 227/* The major and minor versions of NT. */
229int w32_major_version; 228int w32_major_version;
@@ -6035,7 +6034,7 @@ typedef char guichar_t;
6035 read-only when "Directories" is selected in the filter. This 6034 read-only when "Directories" is selected in the filter. This
6036 allows us to work around the fact that the standard Open File 6035 allows us to work around the fact that the standard Open File
6037 dialog does not support directories. */ 6036 dialog does not support directories. */
6038static UINT CALLBACK 6037static UINT_PTR CALLBACK
6039file_dialog_callback (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) 6038file_dialog_callback (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
6040{ 6039{
6041 if (msg == WM_NOTIFY) 6040 if (msg == WM_NOTIFY)