From: Enlightenment S. <no-...@en...> - 2010-07-18 18:53:02
|
Log: Change functions to macros (when compiling without zoom). Author: kwo Date: 2010-07-18 11:52:56 -0700 (Sun, 18 Jul 2010) New Revision: 50352 Modified: trunk/E16/e/src/ewins.h trunk/E16/e/src/zoom.c Modified: trunk/E16/e/src/ewins.h =================================================================== --- trunk/E16/e/src/ewins.h 2010-07-18 18:52:54 UTC (rev 50351) +++ trunk/E16/e/src/ewins.h 2010-07-18 18:52:56 UTC (rev 50352) @@ -476,7 +476,12 @@ #define EwinListGetAll EwinListStackGet /* zoom.c */ +#if WITH_ZOOM void Zoom(EWin * ewin, int on); void ReZoom(EWin * ewin); +#else +#define ReZoom(ewin) do {} while(0) +#define Zoom(ewin, on) do {} while(0) +#endif #endif /* _EWIN_H_ */ Modified: trunk/E16/e/src/zoom.c =================================================================== --- trunk/E16/e/src/zoom.c 2010-07-18 18:52:54 UTC (rev 50351) +++ trunk/E16/e/src/zoom.c 2010-07-18 18:52:56 UTC (rev 50352) @@ -265,18 +265,4 @@ } } -#else - -void -ReZoom(EWin * ewin) -{ - ewin = NULL; -} - -void -Zoom(EWin * ewin) -{ - ewin = NULL; -} - -#endif +#endif /* WITH_ZOOM */ |