mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
weird behavior on freebsd 4.8 w/ gcc 2.95.4; if a #ifdef ... #else ... #endif wraps the end of a if () it pukes up an error about a syntax error in a macro; pull those tests out and conditionally #define a macro instead
This commit is contained in:
committed by
david parsons
parent
376656c77c
commit
9edb0e5908
+10
-3
@@ -1412,9 +1412,16 @@ text(MMIOT *f)
|
||||
}
|
||||
break;
|
||||
|
||||
case '~': if ( is_flag_set(&f->flags, MKD_NOSTRIKETHROUGH)
|
||||
|| is_flag_set(&f->flags, MKD_TAGTEXT)
|
||||
|| ! tickhandler(f,c,2,0, delspan) )
|
||||
#ifdef TYPORA
|
||||
#define ticktick(f,c) (tickhandler(f,c,2,0,delspan) || tickhandler(f,c,1,0,subspan))
|
||||
#else
|
||||
#define ticktick(f,c) tickhandler(f,c,2,0,delspan)
|
||||
#endif
|
||||
|
||||
case '~': if ( is_flag_set(f->flags, MKD_NOSTRIKETHROUGH)
|
||||
|| is_flag_set(f->flags, MKD_STRICT)
|
||||
|| is_flag_set(f->flags, MKD_TAGTEXT)
|
||||
|| !ticktick(f,c) )
|
||||
Qchar(c, f);
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user