diff options
| author | Dmitry Antipov | 2012-06-29 05:35:32 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-06-29 05:35:32 +0400 |
| commit | ef884f239fea782ea5888d567b3c13c0b87ed5ea (patch) | |
| tree | b05b0fe2651355713cf8f5d225500b15276a2fd9 /src | |
| parent | 2badeec4f436028eaf88ea6929f3223e7db38839 (diff) | |
| download | emacs-ef884f239fea782ea5888d567b3c13c0b87ed5ea.tar.gz emacs-ef884f239fea782ea5888d567b3c13c0b87ed5ea.zip | |
* nsfns.m: Fix GLYPH_DEBUG usage assuming that it may be
undefined. Convert from xassert to eassert.
* nsmenu.m: Convert from xassert to eassert.
* nsterm.m: Likewise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/nsfns.m | 10 | ||||
| -rw-r--r-- | src/nsmenu.m | 2 | ||||
| -rw-r--r-- | src/nsterm.m | 2 |
4 files changed, 14 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 241658ac33a..b7a1da9cd57 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2012-06-29 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2 | |||
| 3 | * nsfns.m: Fix GLYPH_DEBUG usage assuming that it may be | ||
| 4 | undefined. Convert from xassert to eassert. | ||
| 5 | * nsmenu.m: Convert from xassert to eassert. | ||
| 6 | * nsterm.m: Likewise. | ||
| 7 | |||
| 1 | 2012-06-28 Stefan Monnier <monnier@iro.umontreal.ca> | 8 | 2012-06-28 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 9 | ||
| 3 | * editfns.c (region_limit): Clip to narrowing (bug#11770). | 10 | * editfns.c (region_limit): Clip to narrowing (bug#11770). |
diff --git a/src/nsfns.m b/src/nsfns.m index 113fff394c4..cd943ac4bab 100644 --- a/src/nsfns.m +++ b/src/nsfns.m | |||
| @@ -101,7 +101,7 @@ extern BOOL ns_in_resize; | |||
| 101 | static Lisp_Object as_script, *as_result; | 101 | static Lisp_Object as_script, *as_result; |
| 102 | static int as_status; | 102 | static int as_status; |
| 103 | 103 | ||
| 104 | #if GLYPH_DEBUG | 104 | #ifdef GLYPH_DEBUG |
| 105 | static ptrdiff_t image_cache_refcount; | 105 | static ptrdiff_t image_cache_refcount; |
| 106 | #endif | 106 | #endif |
| 107 | 107 | ||
| @@ -1058,16 +1058,16 @@ unwind_create_frame (Lisp_Object frame) | |||
| 1058 | /* If frame is ``official'', nothing to do. */ | 1058 | /* If frame is ``official'', nothing to do. */ |
| 1059 | if (NILP (Fmemq (frame, Vframe_list))) | 1059 | if (NILP (Fmemq (frame, Vframe_list))) |
| 1060 | { | 1060 | { |
| 1061 | #if GLYPH_DEBUG && XASSERTS | 1061 | #if defined GLYPH_DEBUG && defined ENABLE_CHECKING |
| 1062 | struct ns_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f); | 1062 | struct ns_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f); |
| 1063 | #endif | 1063 | #endif |
| 1064 | 1064 | ||
| 1065 | x_free_frame_resources (f); | 1065 | x_free_frame_resources (f); |
| 1066 | free_glyphs (f); | 1066 | free_glyphs (f); |
| 1067 | 1067 | ||
| 1068 | #if GLYPH_DEBUG | 1068 | #ifdef GLYPH_DEBUG |
| 1069 | /* Check that reference counts are indeed correct. */ | 1069 | /* Check that reference counts are indeed correct. */ |
| 1070 | xassert (dpyinfo->terminal->image_cache->refcount == image_cache_refcount); | 1070 | eassert (dpyinfo->terminal->image_cache->refcount == image_cache_refcount); |
| 1071 | #endif | 1071 | #endif |
| 1072 | return Qt; | 1072 | return Qt; |
| 1073 | } | 1073 | } |
| @@ -1294,7 +1294,7 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 1294 | x_default_parameter (f, parms, Qright_fringe, Qnil, | 1294 | x_default_parameter (f, parms, Qright_fringe, Qnil, |
| 1295 | "rightFringe", "RightFringe", RES_TYPE_NUMBER); | 1295 | "rightFringe", "RightFringe", RES_TYPE_NUMBER); |
| 1296 | 1296 | ||
| 1297 | #if GLYPH_DEBUG | 1297 | #ifdef GLYPH_DEBUG |
| 1298 | image_cache_refcount = | 1298 | image_cache_refcount = |
| 1299 | FRAME_IMAGE_CACHE (f) ? FRAME_IMAGE_CACHE (f)->refcount : 0; | 1299 | FRAME_IMAGE_CACHE (f) ? FRAME_IMAGE_CACHE (f)->refcount : 0; |
| 1300 | #endif | 1300 | #endif |
diff --git a/src/nsmenu.m b/src/nsmenu.m index 1f86417b53a..9d74337580a 100644 --- a/src/nsmenu.m +++ b/src/nsmenu.m | |||
| @@ -1057,7 +1057,7 @@ update_frame_tool_bar (FRAME_PTR f) | |||
| 1057 | { | 1057 | { |
| 1058 | /* NS toolbar auto-computes disabled and selected images */ | 1058 | /* NS toolbar auto-computes disabled and selected images */ |
| 1059 | idx = TOOL_BAR_IMAGE_ENABLED_SELECTED; | 1059 | idx = TOOL_BAR_IMAGE_ENABLED_SELECTED; |
| 1060 | xassert (ASIZE (image) >= idx); | 1060 | eassert (ASIZE (image) >= idx); |
| 1061 | image = AREF (image, idx); | 1061 | image = AREF (image, idx); |
| 1062 | } | 1062 | } |
| 1063 | else | 1063 | else |
diff --git a/src/nsterm.m b/src/nsterm.m index bf14e5c83b1..c75b17135ef 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -2108,7 +2108,7 @@ ns_after_update_window_line (struct glyph_row *desired_row) | |||
| 2108 | NSTRACE (ns_after_update_window_line); | 2108 | NSTRACE (ns_after_update_window_line); |
| 2109 | 2109 | ||
| 2110 | /* begin copy from other terms */ | 2110 | /* begin copy from other terms */ |
| 2111 | xassert (w); | 2111 | eassert (w); |
| 2112 | 2112 | ||
| 2113 | if (!desired_row->mode_line_p && !w->pseudo_window_p) | 2113 | if (!desired_row->mode_line_p && !w->pseudo_window_p) |
| 2114 | desired_row->redraw_fringe_bitmaps_p = 1; | 2114 | desired_row->redraw_fringe_bitmaps_p = 1; |