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-02 14:07:23 -07:00
parent 18956b558f
commit 1f6ad68918
+7 -5
View File
@@ -1452,14 +1452,16 @@ text(MMIOT *f)
}
break;
#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)
#ifdef TYPORA
|| ! (tickhandler(f,c,2,0, delspan) || tickhandler(f,c,1,0, subspan)))
#else
|| ! tickhandler(f,c,2,0, delspan))
#endif
|| !ticktick(f,c) )
Qchar(c, f);
break;