1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

Fix parentheses in sh_{push,pop}context macros

The lack of parentheses around the shp parameter expansion made
it impossible to pass something like &sh as the first parameter.
This commit is contained in:
Martijn Dekker 2021-11-25 04:10:51 +01:00
parent 84ded2d0c4
commit 27ccdd2517

View file

@ -103,11 +103,11 @@ struct checkpt
};
#define sh_pushcontext(shp,bp,n)( (bp)->mode=(n) , (bp)->olist=0, \
(bp)->topfd=shp->topfd, (bp)->prev=shp->jmplist, \
(bp)->topfd=(shp)->topfd, (bp)->prev=(shp)->jmplist, \
(bp)->err = *ERROR_CONTEXT_BASE, \
shp->jmplist = (sigjmp_buf*)(&(bp)->buff) \
(shp)->jmplist = (sigjmp_buf*)(&(bp)->buff) \
)
#define sh_popcontext(shp,bp) (shp->jmplist=(bp)->prev, errorpop(&((bp)->err)))
#define sh_popcontext(shp,bp) ((shp)->jmplist=(bp)->prev, errorpop(&((bp)->err)))
extern noreturn void sh_done(void*,int);
extern void sh_fault(int);