comparison src/array.h @ 5934:e2fae7783046 cygwin

lots of use of EMACS_INT, a few others, to eliminate all pointer truncation warnings
author Henry Thompson <ht@markup.co.uk>
date Sat, 12 Dec 2015 19:08:46 +0000
parents f7abcda06b1b
children
comparison
equal deleted inserted replaced
5933:c1e8f3294298 5934:e2fae7783046
44 int locked; 44 int locked;
45 #else 45 #else
46 #define DECLARE_DYNARR_LOCKED() 46 #define DECLARE_DYNARR_LOCKED()
47 #endif 47 #endif
48 48
49 /* HST increased these for 64-bit */
49 #define Dynarr_declare(type) \ 50 #define Dynarr_declare(type) \
50 struct lrecord_header header; \ 51 struct lrecord_header header; \
51 type *base; \ 52 type *base; \
52 DECLARE_DYNARR_LISP_IMP () \ 53 DECLARE_DYNARR_LISP_IMP () \
53 DECLARE_DYNARR_LOCKED () \ 54 DECLARE_DYNARR_LOCKED () \
54 int elsize_; \ 55 int elsize_; \
55 int len_; \ 56 EMACS_INT len_; \
56 int largest_; \ 57 EMACS_INT largest_; \
57 int max_ 58 EMACS_INT max_
58 59
59 typedef struct dynarr 60 typedef struct dynarr
60 { 61 {
61 Dynarr_declare (void); 62 Dynarr_declare (void);
62 } Dynarr; 63 } Dynarr;