|
|
f96e0b |
From 1e5f024ecad805f5abad75459689b1a03ac3da81 Mon Sep 17 00:00:00 2001
|
|
|
f96e0b |
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
Date: Fri, 1 Mar 2013 11:15:09 +0100
|
|
|
f96e0b |
Subject: [PATCH 176/482] * grub-core/gentrigtables.c: Make tables
|
|
|
f96e0b |
const.
|
|
|
f96e0b |
|
|
|
f96e0b |
---
|
|
|
f96e0b |
ChangeLog | 4 ++++
|
|
|
f96e0b |
grub-core/gentrigtables.c | 2 +-
|
|
|
f96e0b |
include/grub/trig.h | 4 ++--
|
|
|
f96e0b |
3 files changed, 7 insertions(+), 3 deletions(-)
|
|
|
f96e0b |
|
|
|
f96e0b |
diff --git a/ChangeLog b/ChangeLog
|
|
|
f96e0b |
index 7f5bcfa..fda449d 100644
|
|
|
f96e0b |
--- a/ChangeLog
|
|
|
f96e0b |
+++ b/ChangeLog
|
|
|
f96e0b |
@@ -1,5 +1,9 @@
|
|
|
f96e0b |
2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
|
|
|
f96e0b |
+ * grub-core/gentrigtables.c: Make tables const.
|
|
|
f96e0b |
+
|
|
|
f96e0b |
+2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
+
|
|
|
f96e0b |
Remove nested functions from videoinfo iterators.
|
|
|
f96e0b |
|
|
|
f96e0b |
2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
diff --git a/grub-core/gentrigtables.c b/grub-core/gentrigtables.c
|
|
|
f96e0b |
index 8c03957..fface6e 100644
|
|
|
f96e0b |
--- a/grub-core/gentrigtables.c
|
|
|
f96e0b |
+++ b/grub-core/gentrigtables.c
|
|
|
f96e0b |
@@ -40,7 +40,7 @@ main (int argc __attribute__ ((unused)),
|
|
|
f96e0b |
printf ("GRUB_MOD_DUAL_LICENSE (\"Public Domain\");");
|
|
|
f96e0b |
|
|
|
f96e0b |
#define TAB(op) \
|
|
|
f96e0b |
- printf ("grub_int16_t grub_trig_" #op "tab[] =\n{"); \
|
|
|
f96e0b |
+ printf ("const grub_int16_t grub_trig_" #op "tab[] =\n{"); \
|
|
|
f96e0b |
for (i = 0; i < GRUB_TRIG_ANGLE_MAX; i++) \
|
|
|
f96e0b |
{ \
|
|
|
f96e0b |
double x = i * 2 * M_PI / GRUB_TRIG_ANGLE_MAX; \
|
|
|
f96e0b |
diff --git a/include/grub/trig.h b/include/grub/trig.h
|
|
|
f96e0b |
index 2512a5f..f19617c 100644
|
|
|
f96e0b |
--- a/include/grub/trig.h
|
|
|
f96e0b |
+++ b/include/grub/trig.h
|
|
|
f96e0b |
@@ -24,8 +24,8 @@
|
|
|
f96e0b |
#define GRUB_TRIG_ANGLE_MASK 255
|
|
|
f96e0b |
#define GRUB_TRIG_FRACTION_SCALE 16384
|
|
|
f96e0b |
|
|
|
f96e0b |
-extern short grub_trig_sintab[];
|
|
|
f96e0b |
-extern short grub_trig_costab[];
|
|
|
f96e0b |
+extern const short grub_trig_sintab[];
|
|
|
f96e0b |
+extern const short grub_trig_costab[];
|
|
|
f96e0b |
|
|
|
f96e0b |
static __inline int
|
|
|
f96e0b |
grub_sin (int x)
|
|
|
f96e0b |
--
|
|
|
f96e0b |
1.8.2.1
|
|
|
f96e0b |
|