mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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 <justus@g10code.com>
This commit is contained in:
parent
56638c28ad
commit
c9c3fe8832
2 changed files with 15 additions and 19 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue