diff options
| author | Andrew Innes | 2001-10-18 16:23:14 +0000 |
|---|---|---|
| committer | Andrew Innes | 2001-10-18 16:23:14 +0000 |
| commit | 97f4db8c94f258ac20234402fd502facfbc87be6 (patch) | |
| tree | 295682a35658790c6ce1ac7b11befc9246574a58 | |
| parent | 3f482bc0e547e953eeeb7376e1d4ca8ce0d784b7 (diff) | |
| download | emacs-97f4db8c94f258ac20234402fd502facfbc87be6.tar.gz emacs-97f4db8c94f258ac20234402fd502facfbc87be6.zip | |
(fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
optimization. The fontp->encoding array was not being initialized
correctly when compiled with optimizations by MSVC.
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/fontset.c | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 3afdbfcf6c4..bdb678eed44 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2001-10-18 Andrew Innes <andrewi@gnu.org> | ||
| 2 | |||
| 3 | * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable | ||
| 4 | optimization. The fontp->encoding array was not being initialized | ||
| 5 | correctly when compiled with optimizations by MSVC. | ||
| 6 | |||
| 1 | 2001-10-18 Gerd Moellmann <gerd@gnu.org> | 7 | 2001-10-18 Gerd Moellmann <gerd@gnu.org> |
| 2 | 8 | ||
| 3 | * xdisp.c (display_line): Indicate empty lines in active | 9 | * xdisp.c (display_line): Indicate empty lines in active |
diff --git a/src/fontset.c b/src/fontset.c index 983222f4bb7..7e7364b0205 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -569,6 +569,10 @@ fontset_font_pattern (f, id, c) | |||
| 569 | } | 569 | } |
| 570 | 570 | ||
| 571 | 571 | ||
| 572 | #if defined(WINDOWSNT) && defined (_MSC_VER) | ||
| 573 | #pragma optimize("", off) | ||
| 574 | #endif | ||
| 575 | |||
| 572 | /* Load a font named FONTNAME to display character C on frame F. | 576 | /* Load a font named FONTNAME to display character C on frame F. |
| 573 | Return a pointer to the struct font_info of the loaded font. If | 577 | Return a pointer to the struct font_info of the loaded font. If |
| 574 | loading fails, return NULL. If FACE is non-zero and a fontset is | 578 | loading fails, return NULL. If FACE is non-zero and a fontset is |
| @@ -694,6 +698,10 @@ fs_load_font (f, c, fontname, id, face) | |||
| 694 | return fontp; | 698 | return fontp; |
| 695 | } | 699 | } |
| 696 | 700 | ||
| 701 | #if defined(WINDOWSNT) && defined (_MSC_VER) | ||
| 702 | #pragma optimize("", on) | ||
| 703 | #endif | ||
| 704 | |||
| 697 | 705 | ||
| 698 | /* Cache data used by fontset_pattern_regexp. The car part is a | 706 | /* Cache data used by fontset_pattern_regexp. The car part is a |
| 699 | pattern string containing at least one wild card, the cdr part is | 707 | pattern string containing at least one wild card, the cdr part is |