[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/XS/parsetexi: Add include guards to
From: |
Gavin D. Smith |
Subject: |
branch master updated: * tp/Texinfo/XS/parsetexi: Add include guards to all header files. |
Date: |
Thu, 18 Feb 2021 15:05:58 -0500 |
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 485386c * tp/Texinfo/XS/parsetexi: Add include guards to all header
files.
485386c is described below
commit 485386ceb8072ada9b1d43a8e1ff97f30815bcef
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Thu Feb 18 20:05:23 2021 +0000
* tp/Texinfo/XS/parsetexi: Add include guards to all header files.
---
ChangeLog | 4 ++++
tp/Texinfo/XS/parsetexi/api.h | 3 +++
tp/Texinfo/XS/parsetexi/commands.h | 4 ++++
tp/Texinfo/XS/parsetexi/conf.h | 3 +++
tp/Texinfo/XS/parsetexi/context_stack.h | 3 +++
tp/Texinfo/XS/parsetexi/convert.h | 4 ++++
tp/Texinfo/XS/parsetexi/counter.h | 4 ++++
tp/Texinfo/XS/parsetexi/def.h | 3 +++
tp/Texinfo/XS/parsetexi/errors.h | 3 +++
tp/Texinfo/XS/parsetexi/handle_commands.h | 3 +++
tp/Texinfo/XS/parsetexi/indices.h | 3 +++
tp/Texinfo/XS/parsetexi/input.h | 3 +++
tp/Texinfo/XS/parsetexi/labels.h | 3 +++
tp/Texinfo/XS/parsetexi/macro.h | 3 +++
tp/Texinfo/XS/parsetexi/parser.h | 3 +++
tp/Texinfo/XS/parsetexi/text.h | 3 +++
tp/Texinfo/XS/parsetexi/tree.h | 3 +++
tp/Texinfo/XS/parsetexi/tree_types.h | 3 +++
18 files changed, 58 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 7eb39b1..7bc2cf8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2021-02-18 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * tp/Texinfo/XS/parsetexi: Add include guards to all header files.
+
2021-02-17 Per Bothner <per@bothner.com>
* js/info.js (scan_toc): Change to how sidebar links are matched.
diff --git a/tp/Texinfo/XS/parsetexi/api.h b/tp/Texinfo/XS/parsetexi/api.h
index 71ca3a0..7843680 100644
--- a/tp/Texinfo/XS/parsetexi/api.h
+++ b/tp/Texinfo/XS/parsetexi/api.h
@@ -1,4 +1,6 @@
/* api.h - declarations for api.c */
+#ifndef API_H
+#define API_H
extern ELEMENT *Root;
int init (int texinfo_uninstalled, char *srcdir_in);
@@ -21,3 +23,4 @@ HV *build_global_info (void);
HV *build_global_info2 (void);
+#endif
diff --git a/tp/Texinfo/XS/parsetexi/commands.h
b/tp/Texinfo/XS/parsetexi/commands.h
index 914c5ff..1a8fdef 100644
--- a/tp/Texinfo/XS/parsetexi/commands.h
+++ b/tp/Texinfo/XS/parsetexi/commands.h
@@ -1,4 +1,6 @@
/* commands.h - declarations for commands.c */
+#ifndef COMMANDS_H
+#define COMMANDS_H
/* Copyright 2010-2020 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
@@ -112,3 +114,5 @@ void wipe_user_commands (void);
#define BRACE_accent -2
#define BRACE_style -3
#define BRACE_other -4
+
+#endif
diff --git a/tp/Texinfo/XS/parsetexi/conf.h b/tp/Texinfo/XS/parsetexi/conf.h
index d55a466..bf0fc79 100644
--- a/tp/Texinfo/XS/parsetexi/conf.h
+++ b/tp/Texinfo/XS/parsetexi/conf.h
@@ -1,4 +1,6 @@
/* conf.h - declarations for conf.c */
+#ifndef CONF_H
+#define CONF_H
/* Copyright 2010-2018 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
@@ -27,3 +29,4 @@ void conf_set_CPP_LINE_DIRECTIVES (int i);
void conf_set_IGNORE_SPACE_AFTER_BRACED_COMMAND_NAME (int i);
void reset_conf (void);
+#endif
diff --git a/tp/Texinfo/XS/parsetexi/context_stack.h
b/tp/Texinfo/XS/parsetexi/context_stack.h
index 4fea34d..668179e 100644
--- a/tp/Texinfo/XS/parsetexi/context_stack.h
+++ b/tp/Texinfo/XS/parsetexi/context_stack.h
@@ -1,4 +1,6 @@
/* context_stack.h - declarations for context_stack.c */
+#ifndef CONTEXT_STACK_H
+#define CONTEXT_STACK_H
/* Copyright 2010-2019 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
@@ -49,3 +51,4 @@ ELEMENT *current_region (void);
enum command_id current_region_cmd (void);
void reset_region_stack (void);
+#endif
diff --git a/tp/Texinfo/XS/parsetexi/convert.h
b/tp/Texinfo/XS/parsetexi/convert.h
index 7535bc9..f01c2e1 100644
--- a/tp/Texinfo/XS/parsetexi/convert.h
+++ b/tp/Texinfo/XS/parsetexi/convert.h
@@ -1,4 +1,8 @@
/* convert.h - definitions for convert.c */
+#ifndef CONVERT_H
+#define CONVERT_H
char *convert_to_texinfo (ELEMENT *e);
char *convert_to_text (ELEMENT *e, int *superfluous_arg);
char *node_extra_to_texi (NODE_SPEC_EXTRA *nse);
+
+#endif
diff --git a/tp/Texinfo/XS/parsetexi/counter.h
b/tp/Texinfo/XS/parsetexi/counter.h
index 6bc2a9e..ee1d3f3 100644
--- a/tp/Texinfo/XS/parsetexi/counter.h
+++ b/tp/Texinfo/XS/parsetexi/counter.h
@@ -1,4 +1,6 @@
/* counter.h - definitions for counter.c */
+#ifndef COUNTER_H
+#define COUNTER_H
/* Copyright 2015-2020 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
@@ -30,3 +32,5 @@ int counter_value (COUNTER *c, ELEMENT *e);
/* A large positive number used to represent an unlimited number of remaining
arguments. */
#define COUNTER_VARIADIC 32767
+
+#endif
diff --git a/tp/Texinfo/XS/parsetexi/def.h b/tp/Texinfo/XS/parsetexi/def.h
index 13e93ed..49d363a 100644
--- a/tp/Texinfo/XS/parsetexi/def.h
+++ b/tp/Texinfo/XS/parsetexi/def.h
@@ -1,3 +1,6 @@
/* def.h - definitions for def.c */
+#ifndef DEF_H
+#define DEF_H
void gather_def_item (ELEMENT *current, enum command_id next_command);
DEF_INFO *parse_def (enum command_id command, ELEMENT *current);
+#endif
diff --git a/tp/Texinfo/XS/parsetexi/errors.h b/tp/Texinfo/XS/parsetexi/errors.h
index 112669f..3def506 100644
--- a/tp/Texinfo/XS/parsetexi/errors.h
+++ b/tp/Texinfo/XS/parsetexi/errors.h
@@ -1,4 +1,6 @@
/* errors.h - declarations for error.c */
+#ifndef ERRORS_H
+#define ERRORS_H
enum error_type { error, warning };
@@ -12,3 +14,4 @@ void line_error_ext (enum error_type type, LINE_NR
*cmd_line_nr,
void bug_message (char *format, ...);
char *dump_errors (void);
+#endif
diff --git a/tp/Texinfo/XS/parsetexi/handle_commands.h
b/tp/Texinfo/XS/parsetexi/handle_commands.h
index 01847d1..5d09425 100644
--- a/tp/Texinfo/XS/parsetexi/handle_commands.h
+++ b/tp/Texinfo/XS/parsetexi/handle_commands.h
@@ -1,4 +1,6 @@
/* handle_commands.h - declarations for handle_commands.c */
+#ifndef HANDLE_COMMANDS_H
+#define HANDLE_COMMANDS_H
ELEMENT *handle_other_command (ELEMENT *current, char **line_inout,
enum command_id cmd_id, int *status);
@@ -12,3 +14,4 @@ int check_no_text (ELEMENT *current);
void clear_expanded_formats (void);
void add_expanded_format (char *format);
+#endif
diff --git a/tp/Texinfo/XS/parsetexi/indices.h
b/tp/Texinfo/XS/parsetexi/indices.h
index fa960b1..e35bc3b 100644
--- a/tp/Texinfo/XS/parsetexi/indices.h
+++ b/tp/Texinfo/XS/parsetexi/indices.h
@@ -1,4 +1,6 @@
/* indices.h - declarations for indices.h */
+#ifndef INDICES_H
+#define INDICES_H
extern INDEX **index_names;
@@ -12,3 +14,4 @@ void enter_index_entry (enum command_id index_type_command,
ELEMENT *content);
INDEX *ultimate_index (INDEX *index);
void wipe_indices (void);
+#endif
diff --git a/tp/Texinfo/XS/parsetexi/input.h b/tp/Texinfo/XS/parsetexi/input.h
index 4ac6603..8021015 100644
--- a/tp/Texinfo/XS/parsetexi/input.h
+++ b/tp/Texinfo/XS/parsetexi/input.h
@@ -1,4 +1,6 @@
/* input.h - declarations for input.c */
+#ifndef INPUT_H
+#define INPUT_H
char *new_line (void);
char *next_text (void);
@@ -22,3 +24,4 @@ void free_small_strings (void);
extern LINE_NR line_nr;
extern int input_number;
+#endif
diff --git a/tp/Texinfo/XS/parsetexi/labels.h b/tp/Texinfo/XS/parsetexi/labels.h
index 7877987..b65ba02 100644
--- a/tp/Texinfo/XS/parsetexi/labels.h
+++ b/tp/Texinfo/XS/parsetexi/labels.h
@@ -1,4 +1,6 @@
/* labels.h - declarations for labels.c */
+#ifndef LABELS_H
+#define LABELS_H
/* Copyright 2010-2019 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
@@ -35,3 +37,4 @@ extern size_t internal_xref_space;
void remember_internal_xref (ELEMENT *element);
void reset_internal_xrefs (void);
+#endif
diff --git a/tp/Texinfo/XS/parsetexi/macro.h b/tp/Texinfo/XS/parsetexi/macro.h
index 21fab19..4aa33dc 100644
--- a/tp/Texinfo/XS/parsetexi/macro.h
+++ b/tp/Texinfo/XS/parsetexi/macro.h
@@ -1,4 +1,6 @@
/* macro.h - declarations for macro.c */
+#ifndef MACRO_H
+#define MACRO_H
/* Copyright 2010-2019 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
@@ -42,3 +44,4 @@ void clear_value (char *name);
INFO_ENCLOSE *lookup_infoenclose (enum command_id cmd);
void add_infoenclose (enum command_id cmd, char *begin, char *end);
+#endif
diff --git a/tp/Texinfo/XS/parsetexi/parser.h b/tp/Texinfo/XS/parsetexi/parser.h
index a313143..35a5ee3 100644
--- a/tp/Texinfo/XS/parsetexi/parser.h
+++ b/tp/Texinfo/XS/parsetexi/parser.h
@@ -2,6 +2,8 @@
declarations for close.c, end_line.c, debug.c, separator.c, parser.c,
multitable.c, extra.c and menu.c. */
+#ifndef PARSER_H
+#define PARSER_H
/* Copyright 2010-2021 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
@@ -210,3 +212,4 @@ KEY_PAIR *lookup_extra (ELEMENT *e, char *key);
/* In menus.c */
int handle_menu (ELEMENT **current_inout, char **line_inout);
ELEMENT *enter_menu_entry_node (ELEMENT *current);
+#endif
diff --git a/tp/Texinfo/XS/parsetexi/text.h b/tp/Texinfo/XS/parsetexi/text.h
index 423d555..04b86ed 100644
--- a/tp/Texinfo/XS/parsetexi/text.h
+++ b/tp/Texinfo/XS/parsetexi/text.h
@@ -1,4 +1,6 @@
/* text.h - declarations for text.c */
+#ifndef TEXT_H
+#define TEXT_H
/* Copyright 2014, 2015 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
@@ -22,3 +24,4 @@ void text_alloc (TEXT *t, size_t len);
void text_reset (TEXT *t);
#define text_base(t) ((t)->space ? (t)->text : (char *) 0)
+#endif
diff --git a/tp/Texinfo/XS/parsetexi/tree.h b/tp/Texinfo/XS/parsetexi/tree.h
index 48e580a..4360e4b 100644
--- a/tp/Texinfo/XS/parsetexi/tree.h
+++ b/tp/Texinfo/XS/parsetexi/tree.h
@@ -1,4 +1,6 @@
/* tree.h - declarations for tree.c */
+#ifndef TREE_H
+#define TREE_H
ELEMENT *new_element (enum element_type type);
void add_to_element_contents (ELEMENT *parent, ELEMENT *e);
@@ -22,3 +24,4 @@ void destroy_element_and_children (ELEMENT *e);
#define element_args_number(e) ((e)->args.number)
#define element_text(e) (text_base (&(e)->text))
+#endif
diff --git a/tp/Texinfo/XS/parsetexi/tree_types.h
b/tp/Texinfo/XS/parsetexi/tree_types.h
index 344c8aa..2b494f6 100644
--- a/tp/Texinfo/XS/parsetexi/tree_types.h
+++ b/tp/Texinfo/XS/parsetexi/tree_types.h
@@ -1,4 +1,6 @@
/* tree_types.h - types for the parse tree that are used in many places */
+#ifndef TREE_TYPES_H
+#define TREE_TYPES_H
/* Copyright 2010-2018 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
@@ -131,3 +133,4 @@ typedef struct {
} EXTRA_FLOAT_TYPE;
+#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/XS/parsetexi: Add include guards to all header files.,
Gavin D. Smith <=