aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2023-01-13 08:58:03 +0200
committerEli Zaretskii2023-01-13 08:58:03 +0200
commite8a89a18b69cc8da2ab5ab4dcf1564f0e4517509 (patch)
tree49aeb3203860363967c206869f4c29c442768ec2 /src
parentf27a330b99eebbe7f4690163358b4cacbd4e17a1 (diff)
downloademacs-e8a89a18b69cc8da2ab5ab4dcf1564f0e4517509.tar.gz
emacs-e8a89a18b69cc8da2ab5ab4dcf1564f0e4517509.zip
; Fix non-tree-sitter builds
* src/fns.c (internal_equal): Call treesit_node_eq only if tree-sitter was compiled in.
Diffstat (limited to 'src')
-rw-r--r--src/fns.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/fns.c b/src/fns.c
index d5f7565d3d7..3984e318feb 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -2826,10 +2826,11 @@ internal_equal (Lisp_Object o1, Lisp_Object o2, enum equal_kind equal_kind,
2826 && !memcmp (bool_vector_data (o1), bool_vector_data (o2), 2826 && !memcmp (bool_vector_data (o1), bool_vector_data (o2),
2827 bool_vector_bytes (size))); 2827 bool_vector_bytes (size)));
2828 } 2828 }
2829
2830#ifdef HAVE_TREE_SITTER
2829 if (TS_NODEP (o1)) 2831 if (TS_NODEP (o1))
2830 { 2832 return treesit_node_eq (o1, o2);
2831 return treesit_node_eq (o1, o2); 2833#endif
2832 }
2833 2834
2834 /* Aside from them, only true vectors, char-tables, compiled 2835 /* Aside from them, only true vectors, char-tables, compiled
2835 functions, and fonts (font-spec, font-entity, font-object) 2836 functions, and fonts (font-spec, font-entity, font-object)