diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-02-12 15:57:26 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-02-12 16:15:39 +0100 |
| commit | f29228bbdcffdc8810ff8c766a05c6ca63a42086 (patch) | |
| tree | 7df2502e0314858fd01017333a2eed4a626aa94e /vis-text-objects.c | |
| parent | b4399ffbb402943e1972a9ed04b3ddb3fa6c6cfe (diff) | |
| download | vis-f29228bbdcffdc8810ff8c766a05c6ca63a42086.tar.gz vis-f29228bbdcffdc8810ff8c766a05c6ca63a42086.tar.xz | |
Mark some tables as const
This allows them to be placed into the read only ELF section.
Diffstat (limited to 'vis-text-objects.c')
| -rw-r--r-- | vis-text-objects.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 }, |
