[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: Move variable declaration
From: |
Gavin D. Smith |
Subject: |
branch master updated: Move variable declaration |
Date: |
Tue, 22 Oct 2024 11:13:33 -0400 |
This is an automated email from the git hooks/post-receive script.
gavin pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new 064556637e Move variable declaration
064556637e is described below
commit 064556637ec942a73717f0123c65580db022c4e7
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Tue Oct 22 16:13:24 2024 +0100
Move variable declaration
* tp/Texinfo/XS/main/tree_types.h,
* tp/Texinfo/XS/main/tree.h (ai_key_names): Move to tree.h as
this will mean that tree_types.h again does not have any
variable declarations in it.
* tp/Texinfo/XS/main/tree_types.h: add a comment explaining
purpose of enum ai_key_name.
---
ChangeLog | 11 +++++++++++
tp/Texinfo/XS/main/debug.c | 1 +
tp/Texinfo/XS/main/tree.h | 3 +++
tp/Texinfo/XS/main/tree_types.h | 3 +--
4 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index d102074f5f..d30384e237 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2024-10-22 Gavin Smith <gavinsmith0123@gmail.com>
+
+ Move variable declaration
+
+ * tp/Texinfo/XS/main/tree_types.h,
+ * tp/Texinfo/XS/main/tree.h (ai_key_names): Move to tree.h as
+ this will mean that tree_types.h again does not have any
+ variable declarations in it.
+ * tp/Texinfo/XS/main/tree_types.h: add a comment explaining
+ purpose of enum ai_key_name.
+
2024-10-22 Gavin Smith <gavinsmith0123@gmail.com>
Move OUTPUT_UNIT definition
diff --git a/tp/Texinfo/XS/main/debug.c b/tp/Texinfo/XS/main/debug.c
index 32df9ee5cf..dddf9c93fa 100644
--- a/tp/Texinfo/XS/main/debug.c
+++ b/tp/Texinfo/XS/main/debug.c
@@ -26,6 +26,7 @@
#include "types_data.h"
#include "extra.h"
#include "builtin_commands.h"
+#include "tree.h"
/* for directions_length and direction_names */
#include "utils.h"
#include "debug.h"
diff --git a/tp/Texinfo/XS/main/tree.h b/tp/Texinfo/XS/main/tree.h
index c5bad2a885..438946a67a 100644
--- a/tp/Texinfo/XS/main/tree.h
+++ b/tp/Texinfo/XS/main/tree.h
@@ -4,6 +4,9 @@
#include "tree_types.h"
+/* Array of "associated info" key names. */
+extern const char *ai_key_names[];
+
void reset_obstacks (void);
ASSOCIATED_INFO *new_associated_info (void);
diff --git a/tp/Texinfo/XS/main/tree_types.h b/tp/Texinfo/XS/main/tree_types.h
index c9eb2f27e7..f26766826b 100644
--- a/tp/Texinfo/XS/main/tree_types.h
+++ b/tp/Texinfo/XS/main/tree_types.h
@@ -155,8 +155,7 @@ enum html_text_type {
ai_key(associated_index_entry) \
-extern const char *ai_key_names[];
-
+/* Keys used in ASSOCIATED_INFO structure. */
enum ai_key_name {
AI_key_none,
#define ai_key(name) AI_key_ ## name,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: Move variable declaration,
Gavin D. Smith <=