texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: Gavin D. Smith
Date: Tue, 22 Oct 2024 11:43:26 -0400 (EDT)

branch: master
commit 6b816673da0b64067e89ea4be716de82755661c4
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Tue Oct 22 16:43:16 2024 +0100

    Move enum relative_unit_direction_type definition
    
    * tp/Texinfo/XS/main/tree_types.h, tp/Texinfo/XS/main/document_types.h
    (enum relative_unit_direction_type): Move to document_types.h as
    one of the enum constants is used in OUTPUT_UNIT which is in this
    header.  Include "html_conversion_data.h" in document_types.h.
---
 ChangeLog                           |  9 +++++++++
 tp/Texinfo/XS/main/document_types.h | 11 +++++++++++
 tp/Texinfo/XS/main/tree_types.h     | 10 ----------
 3 files changed, 20 insertions(+), 10 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 89de0d08bc..e696320b22 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2024-10-22  Gavin Smith <gavinsmith0123@gmail.com>
+
+       Move enum relative_unit_direction_type definition
+
+       * tp/Texinfo/XS/main/tree_types.h, tp/Texinfo/XS/main/document_types.h
+       (enum relative_unit_direction_type): Move to document_types.h as
+       one of the enum constants is used in OUTPUT_UNIT which is in this
+       header.  Include "html_conversion_data.h" in document_types.h.
+
 2024-10-22  Gavin Smith <gavinsmith0123@gmail.com>
 
        * tp/Texinfo/XS/main/tree_types.h (enum directions): add comment
diff --git a/tp/Texinfo/XS/main/document_types.h 
b/tp/Texinfo/XS/main/document_types.h
index 66d432efe3..a76262daca 100644
--- a/tp/Texinfo/XS/main/document_types.h
+++ b/tp/Texinfo/XS/main/document_types.h
@@ -22,6 +22,7 @@
 #include "tree_types.h"
 #include "option_types.h"
 #include "global_commands_types.h"
+#include "html_conversion_data.h"
 /*
 #include "options_types.h"
 #include "convert_to_text.h"
@@ -189,6 +190,16 @@ typedef struct COLLATIONS_INDICES_SORTED_BY_LETTER {
     COLLATION_INDICES_SORTED_BY_LETTER *collation_sorted_indices;
 } COLLATIONS_INDICES_SORTED_BY_LETTER;
 
+enum relative_unit_direction_type {
+  #define rud_type(name) RUD_type_## name,
+   RUD_DIRECTIONS_TYPES_LIST
+   RUD_FILE_DIRECTIONS_TYPES
+  #undef rud_type
+  #define rud_type(name) RUD_type_FirstInFile## name,
+   RUD_DIRECTIONS_TYPES_LIST
+  #undef rud_type
+};
+
 enum output_unit_type {
    OU_unit,
    OU_external_node_unit,
diff --git a/tp/Texinfo/XS/main/tree_types.h b/tp/Texinfo/XS/main/tree_types.h
index 2e9c20dfa6..fae0455e45 100644
--- a/tp/Texinfo/XS/main/tree_types.h
+++ b/tp/Texinfo/XS/main/tree_types.h
@@ -180,16 +180,6 @@ enum global_unit_direction {
    D_Space,
 };
 
-enum relative_unit_direction_type {
-  #define rud_type(name) RUD_type_## name,
-   RUD_DIRECTIONS_TYPES_LIST
-   RUD_FILE_DIRECTIONS_TYPES
-  #undef rud_type
-  #define rud_type(name) RUD_type_FirstInFile## name,
-   RUD_DIRECTIONS_TYPES_LIST
-  #undef rud_type
-};
-
 typedef struct ELEMENT_LIST {
     struct ELEMENT **list;
     size_t number;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]