diff options
| author | Po Lu <luangruo@yahoo.com> | 2024-01-06 15:28:14 +0800 |
|---|---|---|
| committer | Po Lu <luangruo@yahoo.com> | 2024-01-06 15:28:14 +0800 |
| commit | 657275529e31226bbc6c92eb7f7af887474a0bb8 (patch) | |
| tree | 1a2091dfb27b9932c6e17a18f458f52b4c1ecc4d /lwlib | |
| parent | 2f59052602e71fb818dd5d671be119793864e712 (diff) | |
Revert "Add new `swap` macro and use it"
typeof is an extension which does not exist in Standard C, so macros
using it are unsuitable for inclusion in Emacs.
This reverts commit 37889523278fe65733938fb11c3701898309961c.
Diffstat (limited to 'lwlib')
| -rw-r--r-- | lwlib/xlwmenu.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lwlib/xlwmenu.c b/lwlib/xlwmenu.c index a3d9474bed0..0f8f94b803c 100644 --- a/lwlib/xlwmenu.c +++ b/lwlib/xlwmenu.c @@ -671,7 +671,12 @@ draw_shadow_rectangle (XlwMenuWidget mw, Window window, int x, int y, } if (!erase_p && down_p) - swap (top_gc, bottom_gc); + { + GC temp; + temp = top_gc; + top_gc = bottom_gc; + bottom_gc = temp; + } /* Do draw (or erase) shadows */ points [0].x = x; @@ -752,7 +757,12 @@ draw_shadow_rhombus (XlwMenuWidget mw, Window window, int x, int y, } if (!erase_p && down_p) - swap (top_gc, bottom_gc); + { + GC temp; + temp = top_gc; + top_gc = bottom_gc; + bottom_gc = temp; + } points [0].x = x; points [0].y = y + height / 2; |
