* Create help for explaining how encrypted password file support
[alpine.git] / pith / bitmap.h
blobd79e160efb4e5bc875de281864fd6af0f13a35f7
1 /*
2 * $Id: bitmap.h 761 2007-10-23 22:35:18Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2006 University of Washington
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * ========================================================================
16 #ifndef PITH_BITMAP_INCLUDED
17 #define PITH_BITMAP_INCLUDED
20 #include "../pith/conftype.h"
24 * Max size of a bitmap based on largest customer: feature list count
25 * Problems if a screen's keymenu bitmap ever gets wider than feature list.
27 #define BM_SIZE ((F_FEATURE_LIST_COUNT / 8) \
28 + ((F_FEATURE_LIST_COUNT % 8) ? 1 : 0))
30 typedef unsigned char bitmap_t[BM_SIZE];
32 /* clear entire bitmap */
33 #define clrbitmap(map) memset((void *)(map), 0, (size_t)BM_SIZE)
35 /* set entire bitmap */
36 #define setbitmap(map) memset((void *)(map), 0xff, (size_t)BM_SIZE)
39 #endif /* PITH_BITMAP_INCLUDED */