Commit ce7738f1d62458f6dab7dcd5823039b4b251bd4b

Thomas de Grivel 2024-08-13T16:15:46

speed up parser

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/libkc3/buf_parse.c b/libkc3/buf_parse.c
index b1bdc04..386ccec 100644
--- a/libkc3/buf_parse.c
+++ b/libkc3/buf_parse.c
@@ -640,7 +640,7 @@ sw buf_parse_brackets (s_buf *buf, s_call *dest)
   buf_save_init(buf, &save);
   tmp.arguments = list_new(list_new(NULL));
   arg_addr = &(list_next(tmp.arguments)->tag);
-  if ((r = buf_parse_tag_primary_2(buf, &tmp.arguments->tag)) <= 0)
+  if ((r = buf_parse_tag_ident(buf, &tmp.arguments->tag)) <= 0)
     goto restore;
   result += r;
   while (1) {