summaryrefslogtreecommitdiff
path: root/pith/adrbklib.h
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 21:46:47 -0600
commitb13392840331b64dc6d6690012dd2715f1ac7510 (patch)
tree659005f73de6d966a7444b9ebce8084fadb7f6ba /pith/adrbklib.h
parentf6519aa1448e62a757d43e57cabd081ab594dfb1 (diff)
downloadalpine-b13392840331b64dc6d6690012dd2715f1ac7510.tar.xz
NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE First use the commit command before using "git commit -a" NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE * 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/adrbklib.h')
-rw-r--r--pith/adrbklib.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/pith/adrbklib.h b/pith/adrbklib.h
index b128ca7b..1cc74029 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 */