aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2012-08-04 12:04:22 +0300
committerEli Zaretskii2012-08-04 12:04:22 +0300
commit6b42bcfcfdb7269f5c470f39fc06337b79e1ef03 (patch)
treefe132d8f46aaaf243c2e98475fee1bb0e7b8bb01 /src
parent97ad076930d59fa19b8f4bfb95f21df84cc9c8a4 (diff)
parent97147da956a402239ab3f3f9b4a1576e5b2bcf5b (diff)
downloademacs-6b42bcfcfdb7269f5c470f39fc06337b79e1ef03.tar.gz
emacs-6b42bcfcfdb7269f5c470f39fc06337b79e1ef03.zip
Fix the MSDOS build as fallout of latest changes.
msdos/sedlibmk.inp (allocator.$(OBJEXT), careadlinkat.$(OBJEXT)): Fix editing out. msdos/sed2v2.inp (IS_DEVICE_SEP): Edit to match ':'. (IS_DIRECTORY_SEP, INTERNAL_TERMINAL): Fix Sed command syntax. (MSDOS): Define only if undefined, as MSDOS is a built-in macro, unless some std= switch to GCC is used. src/msdos.c (dos_set_window_size, IT_update_begin) (IT_frame_up_to_date, IT_set_frame_parameters): Use FVAR and WVAR instead of direct references.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/msdos.c14
2 files changed, 13 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 9c5d7f083d5..3de5ad8b5ce 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12012-08-04 Eli Zaretskii <eliz@gnu.org>
2
3 * msdos.c (dos_set_window_size, IT_update_begin)
4 (IT_frame_up_to_date, IT_set_frame_parameters): Use FVAR and WVAR
5 instead of direct references.
6
12012-08-04 Paul Eggert <eggert@cs.ucla.edu> 72012-08-04 Paul Eggert <eggert@cs.ucla.edu>
2 8
3 Export DEFAULT_REHASH_* to GDB. 9 Export DEFAULT_REHASH_* to GDB.
diff --git a/src/msdos.c b/src/msdos.c
index d6a493a71d3..481526d935e 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -594,7 +594,7 @@ dos_set_window_size (int *rows, int *cols)
594 Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (f); 594 Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (f);
595 Lisp_Object window = hlinfo->mouse_face_window; 595 Lisp_Object window = hlinfo->mouse_face_window;
596 596
597 if (! NILP (window) && XFRAME (XWINDOW (window)->frame) == f) 597 if (! NILP (window) && XFRAME (WVAR (XWINDOW (window), frame)) == f)
598 { 598 {
599 hlinfo->mouse_face_beg_row = hlinfo->mouse_face_beg_col = -1; 599 hlinfo->mouse_face_beg_row = hlinfo->mouse_face_beg_col = -1;
600 hlinfo->mouse_face_end_row = hlinfo->mouse_face_end_col = -1; 600 hlinfo->mouse_face_end_row = hlinfo->mouse_face_end_col = -1;
@@ -1255,7 +1255,7 @@ IT_update_begin (struct frame *f)
1255 /* If the mouse highlight is in the window that was deleted 1255 /* If the mouse highlight is in the window that was deleted
1256 (e.g., if it was popped by completion), clear highlight 1256 (e.g., if it was popped by completion), clear highlight
1257 unconditionally. */ 1257 unconditionally. */
1258 if (NILP (w->buffer)) 1258 if (NILP (WVAR (w, buffer)))
1259 hlinfo->mouse_face_window = Qnil; 1259 hlinfo->mouse_face_window = Qnil;
1260 else 1260 else
1261 { 1261 {
@@ -1265,7 +1265,7 @@ IT_update_begin (struct frame *f)
1265 break; 1265 break;
1266 } 1266 }
1267 1267
1268 if (NILP (w->buffer) || i < w->desired_matrix->nrows) 1268 if (NILP (WVAR (w, buffer)) || i < w->desired_matrix->nrows)
1269 clear_mouse_face (hlinfo); 1269 clear_mouse_face (hlinfo);
1270 } 1270 }
1271 } 1271 }
@@ -1318,8 +1318,8 @@ IT_frame_up_to_date (struct frame *f)
1318 frame parameters. For the selected window, we use either its 1318 frame parameters. For the selected window, we use either its
1319 buffer-local value or the value from the frame parameters if the 1319 buffer-local value or the value from the frame parameters if the
1320 buffer doesn't define its local value for the cursor type. */ 1320 buffer doesn't define its local value for the cursor type. */
1321 sw = XWINDOW (f->selected_window); 1321 sw = XWINDOW (FVAR (f, selected_window));
1322 frame_desired_cursor = Fcdr (Fassq (Qcursor_type, f->param_alist)); 1322 frame_desired_cursor = Fcdr (Fassq (Qcursor_type, FVAR (f, param_alist)));
1323 if (cursor_in_echo_area 1323 if (cursor_in_echo_area
1324 && FRAME_HAS_MINIBUF_P (f) 1324 && FRAME_HAS_MINIBUF_P (f)
1325 && EQ (FRAME_MINIBUF_WINDOW (f), echo_area_window) 1325 && EQ (FRAME_MINIBUF_WINDOW (f), echo_area_window)
@@ -1327,7 +1327,7 @@ IT_frame_up_to_date (struct frame *f)
1327 new_cursor = frame_desired_cursor; 1327 new_cursor = frame_desired_cursor;
1328 else 1328 else
1329 { 1329 {
1330 struct buffer *b = XBUFFER (sw->buffer); 1330 struct buffer *b = XBUFFER (WVAR (sw, buffer));
1331 1331
1332 if (EQ (BVAR (b,cursor_type), Qt)) 1332 if (EQ (BVAR (b,cursor_type), Qt))
1333 new_cursor = frame_desired_cursor; 1333 new_cursor = frame_desired_cursor;
@@ -1598,7 +1598,7 @@ IT_set_frame_parameters (struct frame *f, Lisp_Object alist)
1598 Lisp_Object *values 1598 Lisp_Object *values
1599 = (Lisp_Object *) alloca (length * sizeof (Lisp_Object)); 1599 = (Lisp_Object *) alloca (length * sizeof (Lisp_Object));
1600 /* Do we have to reverse the foreground and background colors? */ 1600 /* Do we have to reverse the foreground and background colors? */
1601 int reverse = EQ (Fcdr (Fassq (Qreverse, f->param_alist)), Qt); 1601 int reverse = EQ (Fcdr (Fassq (Qreverse, FVAR (f, param_alist))), Qt);
1602 int redraw = 0, fg_set = 0, bg_set = 0; 1602 int redraw = 0, fg_set = 0, bg_set = 0;
1603 unsigned long orig_fg, orig_bg; 1603 unsigned long orig_fg, orig_bg;
1604 struct tty_display_info *tty = FRAME_TTY (f); 1604 struct tty_display_info *tty = FRAME_TTY (f);