On Sat, 2004-09-25 09:29:01 +0300, Elias Athanasopoulos wrote in message <20040925062900.GC1997@velka.phys.uoa.gr>: > On Sun, Sep 26, 2004 at 03:32:52PM +0100, Ankit Jain wrote: > > hi > > > > i could not understand why compiler has put semi colon > > before else due t owhich this parse error comes.... > > > > thanks > > > > > > #define exch(x,y) { int tmp; tmp=x; x=y; y=tmp; } > > #define exch(x,y) do { int tmp; tmp=x; x=y; y=tmp; } while(0); Nearly:-) Omit the last semicolon to make it work... MfG, JBG -- Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 _ O _ "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O fuer einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));