* lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
* lib/uniname/uninames.h: Regenerated.
* lib/uniname/uniname.c: Include attribute.h.
* modules/uniname/uniname (Depends-on): Add attribute.
+2020-05-08 Bruno Haible <bruno@clisp.org>
+
+ uniname/uniname: Use module 'attribute'.
+ * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
+ * lib/uniname/uninames.h: Regenerated.
+ * lib/uniname/uniname.c: Include attribute.h.
+ * modules/uniname/uniname (Depends-on): Add attribute.
+
2020-05-08 Bruno Haible <bruno@clisp.org>
c32rtomb: Use module 'attribute'.
(incf i (length (unicode-char-word-indices uc)))
) )
(format ostream "};~%")
- (format ostream "static const struct { uint16_t index; uint32_t name:24; }~%")
- (format ostream "#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)~%__attribute__((__packed__))~%#endif~%")
- (format ostream "unicode_name_to_index[~D] = {~%"
+ (format ostream "static const struct { uint16_t index; uint32_t name:24; } ATTRIBUTE_PACKED unicode_name_to_index[~D] = {~%"
(length all-chars-and-aliases)
)
(dolist (uc all-chars-and-aliases)
(format ostream "~%")
)
(format ostream "};~%")
- (format ostream "static const struct { uint16_t index; uint32_t name:24; }~%")
- (format ostream "#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)~%__attribute__((__packed__))~%#endif~%")
- (format ostream "unicode_index_to_name[~D] = {~%"
+ (format ostream "static const struct { uint16_t index; uint32_t name:24; } ATTRIBUTE_PACKED unicode_index_to_name[~D] = {~%"
(length all-chars)
)
(dolist (uc (sort (copy-list all-chars) #'< :key #'unicode-char-index))
#include <stdio.h>
#include <string.h>
+#include "attribute.h"
+
#define SIZEOF(a) (sizeof(a) / sizeof(a[0]))
23557, 15672,
23563, 15672,
};
-static const struct { uint16_t index; uint32_t name:24; }
-#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
-__attribute__((__packed__))
-#endif
-unicode_name_to_index[29282] = {
+static const struct { uint16_t index; uint32_t name:24; } ATTRIBUTE_PACKED unicode_name_to_index[29282] = {
{ 0x1CA1, 0 },
{ 0x2526, 4 },
{ 0x1EB0, 7 },
{ 0x1F1B, 115977 },
{ 0x1F1A, 115979 },
};
-static const struct { uint16_t index; uint32_t name:24; }
-#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
-__attribute__((__packed__))
-#endif
-unicode_index_to_name[29234] = {
+static const struct { uint16_t index; uint32_t name:24; } ATTRIBUTE_PACKED unicode_index_to_name[29234] = {
{ 0x0000, 34710 },
{ 0x0001, 105577 },
{ 0x0002, 101766 },
Depends-on:
uniname/base
+attribute
memcmp
configure.ac: