|
|
@@ -46,20 +46,46 @@ |
|
|
|
# include __FILE__ |
|
|
|
# undef FLAG_WRAP |
|
|
|
|
|
|
|
#elif !defined FLAG_8BIT |
|
|
|
# if (TEMPLATE_FLAGS) & SET_FLAG_8BIT |
|
|
|
# define FLAG_8BIT 1 |
|
|
|
# include __FILE__ |
|
|
|
# undef FLAG_8BIT |
|
|
|
# endif |
|
|
|
# define FLAG_8BIT 0 |
|
|
|
# include __FILE__ |
|
|
|
# undef FLAG_8BIT |
|
|
|
|
|
|
|
#else |
|
|
|
/* FIXME: I couldn't find a way to do this in one preprocessor pass, |
|
|
|
* too many levels of indirection seem to be needed. */ |
|
|
|
# if FLAG_GRAY |
|
|
|
# if FLAG_8BIT |
|
|
|
# if FLAG_WRAP |
|
|
|
# define SUFFIX(x) x##_gray_wrap |
|
|
|
# if FLAG_GRAY |
|
|
|
# define SUFFIX(x) x##_gray_wrap_8bit |
|
|
|
# else |
|
|
|
# define SUFFIX(x) x##_wrap_8bit |
|
|
|
# endif |
|
|
|
# else |
|
|
|
# define SUFFIX(x) x##_gray |
|
|
|
# if FLAG_GRAY |
|
|
|
# define SUFFIX(x) x##_gray_8bit |
|
|
|
# else |
|
|
|
# define SUFFIX(x) x##_8bit |
|
|
|
# endif |
|
|
|
# endif |
|
|
|
# else |
|
|
|
# if FLAG_WRAP |
|
|
|
# define SUFFIX(x) x##_wrap |
|
|
|
# if FLAG_GRAY |
|
|
|
# define SUFFIX(x) x##_gray_wrap |
|
|
|
# else |
|
|
|
# define SUFFIX(x) x##_wrap |
|
|
|
# endif |
|
|
|
# else |
|
|
|
# define SUFFIX(x) x |
|
|
|
# if FLAG_GRAY |
|
|
|
# define SUFFIX(x) x##_gray |
|
|
|
# else |
|
|
|
# define SUFFIX(x) x |
|
|
|
# endif |
|
|
|
# endif |
|
|
|
# endif |
|
|
|
# include TEMPLATE_FILE |
|
|
|