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-core.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vis-core.h') diff --git a/vis-core.h b/vis-core.h index 74b8940..5939115 100644 --- a/vis-core.h +++ b/vis-core.h @@ -168,9 +168,9 @@ struct Vis { /** stuff used by multiple of the vis-* files */ extern Mode vis_modes[VIS_MODE_INVALID]; -extern Movement vis_motions[VIS_MOVE_INVALID]; -extern Operator vis_operators[VIS_OP_INVALID]; -extern TextObject vis_textobjects[VIS_TEXTOBJECT_INVALID]; +extern const Movement vis_motions[VIS_MOVE_INVALID]; +extern const Operator vis_operators[VIS_OP_INVALID]; +extern const TextObject vis_textobjects[VIS_TEXTOBJECT_INVALID]; void macro_operator_stop(Vis *vis); void macro_operator_record(Vis *vis); -- cgit v1.2.3