From f29228bbdcffdc8810ff8c766a05c6ca63a42086 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 12 Feb 2016 15:57:26 +0100 Subject: Mark some tables as const This allows them to be placed into the read only ELF section. --- vis-text-objects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vis-text-objects.c') diff --git a/vis-text-objects.c b/vis-text-objects.c index 14f299d..93dc8d4 100644 --- a/vis-text-objects.c +++ b/vis-text-objects.c @@ -17,7 +17,7 @@ static Filerange search_backward(Vis *vis, Text *txt, size_t pos) { return text_object_search_backward(txt, pos, vis->search_pattern); } -TextObject vis_textobjects[] = { +const TextObject vis_textobjects[] = { [VIS_TEXTOBJECT_INNER_WORD] = { .txt = text_object_word }, [VIS_TEXTOBJECT_OUTER_WORD] = { .txt = text_object_word_outer }, [VIS_TEXTOBJECT_INNER_LONGWORD] = { .txt = text_object_longword }, -- cgit v1.2.3