- Timestamp:
- Aug 28, 2008, 11:43:52 PM (14 years ago)
- Location:
- libpipi/trunk/pipi
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libpipi/trunk/pipi/pipi_internals.h
r2793 r2794 22 22 #define SET_FLAG_GRAY 0x00000001 23 23 #define SET_FLAG_WRAP 0x00000002 24 #define SET_FLAG_8BIT 0x00000004 24 25 25 26 /* pipi_image_t: the image structure. This is probably going to be the most -
libpipi/trunk/pipi/pipi_template.h
r2793 r2794 47 47 # undef FLAG_WRAP 48 48 49 #elif !defined FLAG_8BIT 50 # if (TEMPLATE_FLAGS) & SET_FLAG_8BIT 51 # define FLAG_8BIT 1 52 # include __FILE__ 53 # undef FLAG_8BIT 54 # endif 55 # define FLAG_8BIT 0 56 # include __FILE__ 57 # undef FLAG_8BIT 58 49 59 #else 50 60 /* FIXME: I couldn't find a way to do this in one preprocessor pass, 51 61 * too many levels of indirection seem to be needed. */ 52 # if FLAG_ GRAY62 # if FLAG_8BIT 53 63 # if FLAG_WRAP 54 # define SUFFIX(x) x##_gray_wrap 64 # if FLAG_GRAY 65 # define SUFFIX(x) x##_gray_wrap_8bit 66 # else 67 # define SUFFIX(x) x##_wrap_8bit 68 # endif 55 69 # else 56 # define SUFFIX(x) x##_gray 70 # if FLAG_GRAY 71 # define SUFFIX(x) x##_gray_8bit 72 # else 73 # define SUFFIX(x) x##_8bit 74 # endif 57 75 # endif 58 76 # else 59 77 # if FLAG_WRAP 60 # define SUFFIX(x) x##_wrap 78 # if FLAG_GRAY 79 # define SUFFIX(x) x##_gray_wrap 80 # else 81 # define SUFFIX(x) x##_wrap 82 # endif 61 83 # else 62 # define SUFFIX(x) x 84 # if FLAG_GRAY 85 # define SUFFIX(x) x##_gray 86 # else 87 # define SUFFIX(x) x 88 # endif 63 89 # endif 64 90 # endif
Note: See TracChangeset
for help on using the changeset viewer.