[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Patrice Dumas |
Date: |
Mon, 23 Dec 2024 17:44:50 -0500 (EST) |
branch: master
commit 58d59b85742b35458f489b4b0e9ff0800f7da971
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sat Dec 7 00:36:32 2024 +0100
* tp/Texinfo/XS/teximakehtml.c (get_cmdline_customization_option):
clear option if value is undef, case insensitive, to match what is
done in Perl, setting to undef.
---
ChangeLog | 6 ++++++
tp/Texinfo/XS/teximakehtml.c | 6 +++++-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 13faf4850f..1174ac0e04 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-12-06 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/XS/teximakehtml.c (get_cmdline_customization_option):
+ clear option if value is undef, case insensitive, to match what is
+ done in Perl, setting to undef.
+
2024-12-06 Patrice Dumas <pertusus@free.fr>
* tp/texi2any.pl: when parsing -c/--set-customization-variable,
diff --git a/tp/Texinfo/XS/teximakehtml.c b/tp/Texinfo/XS/teximakehtml.c
index c4fd52ae2c..6294cba69a 100644
--- a/tp/Texinfo/XS/teximakehtml.c
+++ b/tp/Texinfo/XS/teximakehtml.c
@@ -192,7 +192,11 @@ get_cmdline_customization_option (OPTIONS_LIST
*options_list,
p++;
p += strspn (p, whitespace_chars);
}
- if (option->type == GOT_integer)
+ if (!strcasecmp (p, "undef"))
+ {
+ clear_option (option);
+ }
+ else if (option->type == GOT_integer)
{
char *endptr;
long value = strtol (p, &endptr, 10);