Mercurial > hg > xemacs-beta
diff src/compiler.h @ 3094:ad2f4ae9895b
[xemacs-hg @ 2005-11-26 11:45:47 by stephent]
Xft merge. <87k6ev4p8q.fsf@tleepslib.sk.tsukuba.ac.jp>
author | stephent |
---|---|
date | Sat, 26 Nov 2005 11:46:25 +0000 |
parents | facf3239ba30 |
children | f386b9b92417 |
line wrap: on
line diff
--- a/src/compiler.h Fri Nov 25 22:51:38 2005 +0000 +++ b/src/compiler.h Sat Nov 26 11:46:25 2005 +0000 @@ -211,6 +211,13 @@ #endif /* ATTRIBUTE_CONST */ /* Unused declarations; g++ and icc do not support this. */ +/* + NOTE: These macros MUST be named UNUSED (exactly) or something + prefixed with USED_IF_, or DEFUN docstrings will be parsed incorrectly. + See comments in make_docfile.c (write_c_args). You'd think that this + wouldn't happen, but unfortunately we do indeed have some arguments + of DEFUNs unused for GNU compatibility or because features are missing. +*/ #ifndef UNUSED_ARG # define UNUSED_ARG(decl) unused_##decl #endif @@ -231,6 +238,11 @@ # else # define USED_IF_MULE_OR_CHECK_TEXT(decl) UNUSED (decl) # endif +# ifdef USE_XFT +# define USED_IF_XFT(decl) decl +# else +# define USED_IF_XFT(decl) UNUSED (decl) +# endif #endif /* UNUSED */ #ifdef DEBUG_XEMACS