[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Patrice Dumas |
Date: |
Thu, 23 May 2024 13:15:52 -0400 (EDT) |
branch: master
commit 6c8473abfb2d68fadee722cc4e3f1c62b148a36f
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Thu May 23 13:49:06 2024 +0200
* tp/Texinfo/XS/parsetexi/api.c (parse_file): comment out the code
adding the input file directory to the include directories list as it
is already done in the main program.
---
ChangeLog | 6 ++++++
tp/Texinfo/XS/parsetexi/api.c | 10 +++++++++-
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 7215d02850..3987a7237f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-05-23 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/XS/parsetexi/api.c (parse_file): comment out the code
+ adding the input file directory to the include directories list as it
+ is already done in the main program.
+
2024-05-23 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/ParserNonXS.pm: access customization options in 'conf'
diff --git a/tp/Texinfo/XS/parsetexi/api.c b/tp/Texinfo/XS/parsetexi/api.c
index de967268d9..88cdee9126 100644
--- a/tp/Texinfo/XS/parsetexi/api.c
+++ b/tp/Texinfo/XS/parsetexi/api.c
@@ -62,6 +62,9 @@ initialize_parsing (void)
init_values ();
+ /* currently thee is no change done to include directories,
+ so global_parser_conf.include_directories could be used instead
+ of parser_include_directories */
clear_strings_list (&parser_include_directories);
copy_strings (&parser_include_directories,
&global_parser_conf.include_directories);
@@ -124,7 +127,9 @@ parse_file (const char *filename, const char
*input_file_name,
const char *input_directory)
{
int document_descriptor;
+ /*
char *p, *q;
+ */
GLOBAL_INFO *global_info;
int status;
@@ -147,6 +152,9 @@ parse_file (const char *filename, const char
*input_file_name,
/* Strip off a leading directory path, by looking for the last
'/' in filename. */
+ /* The following is not needed, it is already done in the
+ main program */
+ /*
p = 0;
q = strchr (filename, '/');
while (q)
@@ -162,7 +170,7 @@ parse_file (const char *filename, const char
*input_file_name,
add_include_directory (filename, &parser_include_directories);
*p = saved;
}
-
+ */
document_descriptor = parse_texi_document ();
return document_descriptor;