]> git.eshelyaron.com Git - emacs.git/commitdiff
Port recently-added bitfields back to GCC
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 Jan 2025 08:16:28 +0000 (00:16 -0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 20 Jan 2025 15:58:25 +0000 (16:58 +0100)
* src/lisp.h (hash_table_std_test_t, hash_table_weakness_t):
Name these as enum tags as well as typedefs,
so that ENUM_BF works for them.

(cherry picked from commit f9be225501ce1ae53ec78136679de14ff093f46d)

src/lisp.h

index dc365e1d46febaf52737c7a000d25dd0661068fd..bc0bc682498b7cb83f3740f24198ccbd64acdcc2 100644 (file)
@@ -2552,7 +2552,7 @@ struct Lisp_Hash_Table;
    It's unsigned and a subtype of EMACS_UINT.  */
 typedef unsigned int hash_hash_t;
 
-typedef enum {
+typedef enum hash_table_std_test_t {
   Test_eql,
   Test_eq,
   Test_equal,
@@ -2576,7 +2576,7 @@ struct hash_table_test
   Lisp_Object name;
 };
 
-typedef enum {
+typedef enum hash_table_weakness_t {
   Weak_None,            /* No weak references.  */
   Weak_Key,             /* Reference to key is weak.  */
   Weak_Value,           /* Reference to value is weak.  */