[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Patrice Dumas |
Date: |
Fri, 10 May 2024 18:25:33 -0400 (EDT) |
branch: master
commit 067d6ca819fca257e3af73ed79fbdbd99717ee08
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Fri May 10 23:37:19 2024 +0200
* tp/Texinfo/XS/parsetexi/def.c (parse_def): use definition line
argument element type instead of role string to determine the type of
argument on definition line.
---
ChangeLog | 6 ++++++
tp/Texinfo/XS/parsetexi/def.c | 7 +++----
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4ed93a00da..d65ba31c6b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-05-10 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/XS/parsetexi/def.c (parse_def): use definition line
+ argument element type instead of role string to determine the type of
+ argument on definition line.
+
2024-05-10 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/Convert/TexinfoMarkup.pm (_convert),
diff --git a/tp/Texinfo/XS/parsetexi/def.c b/tp/Texinfo/XS/parsetexi/def.c
index 87561a61fb..f8eac4085b 100644
--- a/tp/Texinfo/XS/parsetexi/def.c
+++ b/tp/Texinfo/XS/parsetexi/def.c
@@ -444,10 +444,9 @@ parse_def (enum command_id command, ELEMENT *current)
arguments_types_list = def_maps[i_def].argument_types;
while (arguments_list[arg_types_nr])
{
- char *arg_type_name = arguments_list[arg_types_nr];
+ enum element_type arg_type = arguments_types_list[arg_types_nr];
- if (!strcmp (arg_type_name, "arg")
- || !strcmp (arg_type_name, "argtype"))
+ if (arg_type == ET_def_typearg || arg_type == ET_def_arg)
break;
arg_types_nr++;
}
@@ -460,7 +459,7 @@ parse_def (enum command_id command, ELEMENT *current)
if (e)
{
char *arg_type_name = arguments_list[i];
- enum command_id arg_type = arguments_types_list[i];
+ enum element_type arg_type = arguments_types_list[i];
DEF_ARG *def_arg = malloc (sizeof (DEF_ARG));
ELEMENT *new_def_type = new_element (arg_type);