Mark static tables as constant when possible.

This makes it possible to write them to .data.rel.ro or to .rodata if
there is no relocation involved (arrays of character arrays).

Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
This commit is contained in:
Diego E. 'Flameeyes' Pettenò 2008-11-21 22:19:28 +01:00
parent fc8d8bb2e6
commit 03388ca6d3
9 changed files with 20 additions and 20 deletions

View file

@ -2965,7 +2965,7 @@ struct intrinsic {
struct alisp_object * (*func)(struct alisp_instance *instance, struct alisp_object * args);
};
static struct intrinsic intrinsics[] = {
static const struct intrinsic intrinsics[] = {
{ "!=", F_numneq },
{ "%", F_mod },
{ "&check-memory", F_check_memory },