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:
david parsons
2022-10-04 11:51:29 -07:00
committed by david parsons
parent 376656c77c
commit 9edb0e5908
+10 -3
View File
@@ -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;