aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpgscm/scheme-private.h
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-03-23 11:50:27 +0000
committerJustus Winter <[email protected]>2017-04-07 11:11:31 +0000
commitc9c3fe883271868d3b2dd287d295cf6a8f8ffc05 (patch)
tree55a4ff092a914f3320bc7546a1f2ea0a15cf0cbb /tests/gpgscm/scheme-private.h
parentgpgscm: Remove arbitrary limit on number of cell segments. (diff)
downloadgnupg-c9c3fe883271868d3b2dd287d295cf6a8f8ffc05.tar.gz
gnupg-c9c3fe883271868d3b2dd287d295cf6a8f8ffc05.zip
gpgscm: Make global data constant when possible.
* tests/gpgscm/scheme-private.h (struct scheme): Make 'vptr' const. * tests/gpgscm/scheme.c (num_zero): Statically initialize and turn into constant. (num_one): Likewise. (charnames): Change type so that it can be stored in rodata. (is_ascii_name): Adapt slightly. (assign_proc): Make argument const char *. (op_code_info): Make some fields const char *. (tests): Make const. (dispatch_table): Make const. At least it can be made read-only after relocation. (Eval_Cycle): Adapt slightly. (vtbl): Make const. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'tests/gpgscm/scheme-private.h')
-rw-r--r--tests/gpgscm/scheme-private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gpgscm/scheme-private.h b/tests/gpgscm/scheme-private.h
index 093442f65..69b78f26e 100644
--- a/tests/gpgscm/scheme-private.h
+++ b/tests/gpgscm/scheme-private.h
@@ -200,7 +200,7 @@ unsigned int flags;
void *ext_data; /* For the benefit of foreign functions */
long gensym_cnt;
-struct scheme_interface *vptr;
+const struct scheme_interface *vptr;
};
/* operator code */