summaryrefslogtreecommitdiff
path: root/pith
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2021-04-17 21:46:47 -0600
committerEduardo Chappa <chappa@washington.edu>2021-04-17 22:03:56 -0600
commitd2ad22272baf7d977d6dac930d149af0cd8982c9 (patch)
tree659005f73de6d966a7444b9ebce8084fadb7f6ba /pith
parentf6519aa1448e62a757d43e57cabd081ab594dfb1 (diff)
downloadalpine-d2ad22272baf7d977d6dac930d149af0cd8982c9.tar.xz
* Add new type SUINT32, as a shorter version of UINT32 for systems that
do not have a proper uint32_t type. SUINT32 is defined by default to be UINT32, but during compilation the user can define an environment variable SUINT32 to be, say, unsigned long, and that will make SUINT32 to take that type. This, and the source codem, are the only places where this is documented. Work in collaboration with professor Martin Trusler.
Diffstat (limited to 'pith')
-rw-r--r--pith/adrbklib.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/pith/adrbklib.h b/pith/adrbklib.h
index b128ca7..1cc7402 100644
--- a/pith/adrbklib.h
+++ b/pith/adrbklib.h
@@ -118,9 +118,12 @@
* an unsigned long, too. If it is an unsigned int, then a_c_arg_t could
* be an unsigned int, too. However, if we just make it unsigned long, then
* it will be the same in all cases and big enough in all cases.
+ * For most people SUINT32 is UINT32, but users can define at configure stage
+ * that SUINT32 could be something different, by means of defining an environment
+ * variable SUINT32 as, say, unsigned long.
*/
-#define adrbk_cntr_t UINT32 /* addrbook counter type */
+#define adrbk_cntr_t SUINT32 /* addrbook counter type */
typedef unsigned long a_c_arg_t; /* type of arg passed for adrbk_cntr_t */
#define NO_NEXT ((adrbk_cntr_t)-1)
#define MAX_ADRBK_SIZE (2000000000L) /* leave room for extra display lines */