* grub-core/gentrigtables.c: Make tables const.
This commit is contained in:
parent
3056d3e752
commit
5d983f5fc2
3 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/gentrigtables.c: Make tables const.
|
||||
|
||||
2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
Remove nested functions from videoinfo iterators.
|
||||
|
|
|
@ -40,7 +40,7 @@ main (int argc __attribute__ ((unused)),
|
|||
printf ("GRUB_MOD_DUAL_LICENSE (\"Public Domain\");");
|
||||
|
||||
#define TAB(op) \
|
||||
printf ("grub_int16_t grub_trig_" #op "tab[] =\n{"); \
|
||||
printf ("const grub_int16_t grub_trig_" #op "tab[] =\n{"); \
|
||||
for (i = 0; i < GRUB_TRIG_ANGLE_MAX; i++) \
|
||||
{ \
|
||||
double x = i * 2 * M_PI / GRUB_TRIG_ANGLE_MAX; \
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
#define GRUB_TRIG_ANGLE_MASK 255
|
||||
#define GRUB_TRIG_FRACTION_SCALE 16384
|
||||
|
||||
extern short grub_trig_sintab[];
|
||||
extern short grub_trig_costab[];
|
||||
extern const short grub_trig_sintab[];
|
||||
extern const short grub_trig_costab[];
|
||||
|
||||
static __inline int
|
||||
grub_sin (int x)
|
||||
|
|
Loading…
Reference in a new issue