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:
parent
84ded2d0c4
commit
27ccdd2517
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue