mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-21 07:30:50 -08:00
Change make_string to build_string in treesit.c
* src/treesit.c (Ftreesit_node_string) (Ftreesit_node_field_name_for_child): Change make_string to build_string.
This commit is contained in:
parent
914f68da05
commit
b584569014
1 changed files with 2 additions and 2 deletions
|
|
@ -1053,7 +1053,7 @@ If NODE is nil, return nil. */)
|
|||
ts_check_node (node);
|
||||
TSNode ts_node = XTS_NODE (node)->node;
|
||||
char *string = ts_node_string (ts_node);
|
||||
return make_string (string, strlen (string));
|
||||
return build_string (string);
|
||||
}
|
||||
|
||||
DEFUN ("treesit-node-parent",
|
||||
|
|
@ -1163,7 +1163,7 @@ If NODE is nil, return nil. */)
|
|||
if (name == NULL)
|
||||
return Qnil;
|
||||
|
||||
return make_string (name, strlen (name));
|
||||
return build_string (name);
|
||||
}
|
||||
|
||||
DEFUN ("treesit-node-child-count",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue