summaryrefslogtreecommitdiff
path: root/ide-document-link.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-07 07:39:58 -0400
committerpommicket <pommicket@gmail.com>2023-08-07 07:39:58 -0400
commit3839577f15d9fa8e460e3042d94970fb8b5dc12f (patch)
tree685969ef0750868ed60d0dc051f3c519ce824c13 /ide-document-link.c
parentb146279b48f6a4f4bea8946cb3f0f1f5cc5a9985 (diff)
documentation
Diffstat (limited to 'ide-document-link.c')
-rw-r--r--ide-document-link.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ide-document-link.c b/ide-document-link.c
index 5de107f..0c2d8cd 100644
--- a/ide-document-link.c
+++ b/ide-document-link.c
@@ -17,13 +17,7 @@ void document_link_init(Ted *ted) {
ted->document_links = calloc(1, sizeof *ted->document_links);
}
-void document_link_quit(Ted *ted) {
- document_link_clear(ted);
- free(ted->document_links);
- ted->document_links = NULL;
-}
-
-void document_link_clear(Ted *ted) {
+static void document_link_clear(Ted *ted) {
DocumentLinks *dl = ted->document_links;
arr_foreach_ptr(dl->links, DocumentLink, l) {
free(l->target);
@@ -33,6 +27,12 @@ void document_link_clear(Ted *ted) {
dl->requested_document = 0;
}
+void document_link_quit(Ted *ted) {
+ document_link_clear(ted);
+ free(ted->document_links);
+ ted->document_links = NULL;
+}
+
static bool document_link_activation_key_down(Ted *ted) {
return ted_is_ctrl_down(ted);
}