diff options
| author | Eli Zaretskii | 2012-08-04 12:04:22 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2012-08-04 12:04:22 +0300 |
| commit | 6b42bcfcfdb7269f5c470f39fc06337b79e1ef03 (patch) | |
| tree | fe132d8f46aaaf243c2e98475fee1bb0e7b8bb01 | |
| parent | 97ad076930d59fa19b8f4bfb95f21df84cc9c8a4 (diff) | |
| parent | 97147da956a402239ab3f3f9b4a1576e5b2bcf5b (diff) | |
| download | emacs-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.
| -rw-r--r-- | msdos/ChangeLog | 10 | ||||
| -rw-r--r-- | msdos/sed2v2.inp | 12 | ||||
| -rw-r--r-- | msdos/sedlibmk.inp | 4 | ||||
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/msdos.c | 14 |
5 files changed, 33 insertions, 13 deletions
diff --git a/msdos/ChangeLog b/msdos/ChangeLog index 78588b80a0d..45666a335de 100644 --- a/msdos/ChangeLog +++ b/msdos/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2012-08-04 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * sedlibmk.inp (allocator.$(OBJEXT), careadlinkat.$(OBJEXT)): Fix | ||
| 4 | editing out. | ||
| 5 | |||
| 6 | * sed2v2.inp (IS_DEVICE_SEP): Edit to match ':'. | ||
| 7 | (IS_DIRECTORY_SEP, INTERNAL_TERMINAL): Fix Sed command syntax. | ||
| 8 | (MSDOS): Define only if undefined, as MSDOS is a built-in macro, | ||
| 9 | unless some std= switch to GCC is used. | ||
| 10 | |||
| 1 | 2012-08-01 Glenn Morris <rgm@gnu.org> | 11 | 2012-08-01 Glenn Morris <rgm@gnu.org> |
| 2 | 12 | ||
| 3 | * sed2v2.inp (HAVE_WCHAR_H): Fix typo. | 13 | * sed2v2.inp (HAVE_WCHAR_H): Fix typo. |
diff --git a/msdos/sed2v2.inp b/msdos/sed2v2.inp index ad2896ef56b..ae0db1339c9 100644 --- a/msdos/sed2v2.inp +++ b/msdos/sed2v2.inp | |||
| @@ -26,7 +26,10 @@ | |||
| 26 | #define NSIG 320\ | 26 | #define NSIG 320\ |
| 27 | #endif | 27 | #endif |
| 28 | 28 | ||
| 29 | /^#undef MSDOS *$/s/^.*$/#define MSDOS/ | 29 | /^#undef MSDOS *$/c\ |
| 30 | #ifndef MSDOS\ | ||
| 31 | #define MSDOS\ | ||
| 32 | #endif | ||
| 30 | /^#undef DOS_NT *$/s/^.*$/#define DOS_NT/ | 33 | /^#undef DOS_NT *$/s/^.*$/#define DOS_NT/ |
| 31 | /^#undef FLOAT_CHECK_DOMAIN *$/s/^.*$/#define FLOAT_CHECK_DOMAIN/ | 34 | /^#undef FLOAT_CHECK_DOMAIN *$/s/^.*$/#define FLOAT_CHECK_DOMAIN/ |
| 32 | /^#undef HAVE_ALLOCA *$/s/^.*$/#define HAVE_ALLOCA 1/ | 35 | /^#undef HAVE_ALLOCA *$/s/^.*$/#define HAVE_ALLOCA 1/ |
| @@ -85,11 +88,12 @@ | |||
| 85 | /^#undef HAVE_UNSIGNED_LONG_LONG_INT *$/s/^.*$/#define HAVE_UNSIGNED_LONG_LONG_INT 1/ | 88 | /^#undef HAVE_UNSIGNED_LONG_LONG_INT *$/s/^.*$/#define HAVE_UNSIGNED_LONG_LONG_INT 1/ |
| 86 | /^#undef HAVE_WCHAR_H *$/s/^.*$/#define HAVE_WCHAR_H 1/ | 89 | /^#undef HAVE_WCHAR_H *$/s/^.*$/#define HAVE_WCHAR_H 1/ |
| 87 | /^#undef DEVICE_SEP *$/s/^.*$/#define DEVICE_SEP ':'/ | 90 | /^#undef DEVICE_SEP *$/s/^.*$/#define DEVICE_SEP ':'/ |
| 88 | /^#undef IS_DIRECTORY_SEP *$/s/^.*$/#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\\\')/ | 91 | /^#undef IS_DIRECTORY_SEP *$/s,^.*$,#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/' || (_c_) == '\\\\'), |
| 92 | /^#undef IS_DEVICE_SEP *$/s/^.*$/#define IS_DEVICE_SEP(_c_) ((_c_) == ':')/ | ||
| 89 | /^#undef IS_ANY_SEP *$/s/^.*$/#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_))/ | 93 | /^#undef IS_ANY_SEP *$/s/^.*$/#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_) || IS_DEVICE_SEP (_c_))/ |
| 90 | /^#undef INTERNAL_TERMINAL *$/s/^.*$/#define INTERNAL_TERMINAL "pc|bios|IBM PC with color display::co#80:li#25:Co#16:pa#256:km:ms:cm=<CM>:cl=<CL>:ce=<CE>::se=</SO>:so=<SO>:us=<UL>:ue=</UL>:md=<BD>:mh=<DIM>:mb=<BL>:mr=<RV>:me=<NV>::AB=<BG %d>:AF=<FG %d>:op=<DefC>:"/ | 94 | /^#undef INTERNAL_TERMINAL *$/s,^.*$,#define INTERNAL_TERMINAL "pc|bios|IBM PC with color display::co#80:li#25:Co#16:pa#256:km:ms:cm=<CM>:cl=<CL>:ce=<CE>::se=</SO>:so=<SO>:us=<UL>:ue=</UL>:md=<BD>:mh=<DIM>:mb=<BL>:mr=<RV>:me=<NV>::AB=<BG %d>:AF=<FG %d>:op=<DefC>:", |
| 91 | /^#undef NULL_DEVICE *$/s/^.*$/#define NULL_DEVICE "nul"/ | 95 | /^#undef NULL_DEVICE *$/s/^.*$/#define NULL_DEVICE "nul"/ |
| 92 | /^#undef SEPCHAR *$/s/^.*$/#define SEPCHAR ';'/ | 96 | /^#undef SEPCHAR *$/s/^.*$/#define SEPCHAR '\;'/ |
| 93 | /^#undef USER_FULL_NAME *$/s/^.*$/#define USER_FULL_NAME (getenv ("NAME"))/ | 97 | /^#undef USER_FULL_NAME *$/s/^.*$/#define USER_FULL_NAME (getenv ("NAME"))/ |
| 94 | /^#undef _setjmp/s/^.*$/#define _setjmp setjmp/ | 98 | /^#undef _setjmp/s/^.*$/#define _setjmp setjmp/ |
| 95 | /^#undef _longjmp/s/^.*$/#define _longjmp longjmp/ | 99 | /^#undef _longjmp/s/^.*$/#define _longjmp longjmp/ |
diff --git a/msdos/sedlibmk.inp b/msdos/sedlibmk.inp index b5b66753bb3..67719cffbd4 100644 --- a/msdos/sedlibmk.inp +++ b/msdos/sedlibmk.inp | |||
| @@ -605,10 +605,10 @@ am__cd = cd | |||
| 605 | s| *sys/select\.h|| | 605 | s| *sys/select\.h|| |
| 606 | s| *sys/time\.h|| | 606 | s| *sys/time\.h|| |
| 607 | } | 607 | } |
| 608 | /^am_libgnu_a_OBJECTS *=/,/^[ ]/{ | 608 | /^am_libgnu_a_OBJECTS *=/,/^[^ ]/{ |
| 609 | s/allocator\.\$(OBJEXT) // | ||
| 609 | s/careadlinkat\.\$(OBJEXT) // | 610 | s/careadlinkat\.\$(OBJEXT) // |
| 610 | } | 611 | } |
| 611 | /^am_libgnu_a_OBJECTS *=/s/allocator\.\$(OBJEXT)// | ||
| 612 | /^srcdir *=/s/@[^@\n]*@/./ | 612 | /^srcdir *=/s/@[^@\n]*@/./ |
| 613 | /^top_srcdir *=/s/@[^@\n]*@/../ | 613 | /^top_srcdir *=/s/@[^@\n]*@/../ |
| 614 | /^top_builddir *=/s/@[^@\n]*@/../ | 614 | /^top_builddir *=/s/@[^@\n]*@/../ |
diff --git a/src/ChangeLog b/src/ChangeLog index 9c5d7f083d5..3de5ad8b5ce 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-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 | |||
| 1 | 2012-08-04 Paul Eggert <eggert@cs.ucla.edu> | 7 | 2012-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); |