summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2018-04-22 14:43:07 -0400
committerFranklin Wei <git@fwei.tk>2018-04-24 19:06:30 -0400
commitef0fb52113447c15f97eb8c707f56db4074eb578 (patch)
tree5f0042f574ccc3d721f5d6f6db7366a40b40db7a /apps/plugins
parent56803c80d0554a8b01598a077a69143b14f7036f (diff)
downloadrockbox-ef0fb52113447c15f97eb8c707f56db4074eb578.zip
rockbox-ef0fb52113447c15f97eb8c707f56db4074eb578.tar.gz
rockbox-ef0fb52113447c15f97eb8c707f56db4074eb578.tar.bz2
rockbox-ef0fb52113447c15f97eb8c707f56db4074eb578.tar.xz
puzzles: silence some warnings
Change-Id: Id6fd9d8dd3021f5e2cb93565d7e419aaf07f9af0
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/puzzles/compress.c4
-rw-r--r--apps/plugins/puzzles/help.h2
-rw-r--r--apps/plugins/puzzles/help/blackbox.c4
-rw-r--r--apps/plugins/puzzles/help/bridges.c4
-rw-r--r--apps/plugins/puzzles/help/cube.c4
-rw-r--r--apps/plugins/puzzles/help/dominosa.c4
-rw-r--r--apps/plugins/puzzles/help/fifteen.c4
-rw-r--r--apps/plugins/puzzles/help/filling.c4
-rw-r--r--apps/plugins/puzzles/help/flip.c4
-rw-r--r--apps/plugins/puzzles/help/flood.c4
-rw-r--r--apps/plugins/puzzles/help/galaxies.c4
-rw-r--r--apps/plugins/puzzles/help/guess.c4
-rw-r--r--apps/plugins/puzzles/help/inertia.c4
-rw-r--r--apps/plugins/puzzles/help/keen.c4
-rw-r--r--apps/plugins/puzzles/help/lightup.c4
-rw-r--r--apps/plugins/puzzles/help/loopy.c4
-rw-r--r--apps/plugins/puzzles/help/magnets.c4
-rw-r--r--apps/plugins/puzzles/help/map.c4
-rw-r--r--apps/plugins/puzzles/help/mines.c4
-rw-r--r--apps/plugins/puzzles/help/net.c4
-rw-r--r--apps/plugins/puzzles/help/netslide.c4
-rw-r--r--apps/plugins/puzzles/help/palisade.c4
-rw-r--r--apps/plugins/puzzles/help/pattern.c4
-rw-r--r--apps/plugins/puzzles/help/pearl.c4
-rw-r--r--apps/plugins/puzzles/help/pegs.c4
-rw-r--r--apps/plugins/puzzles/help/range.c4
-rw-r--r--apps/plugins/puzzles/help/rect.c4
-rw-r--r--apps/plugins/puzzles/help/samegame.c4
-rw-r--r--apps/plugins/puzzles/help/signpost.c4
-rw-r--r--apps/plugins/puzzles/help/singles.c4
-rw-r--r--apps/plugins/puzzles/help/sixteen.c4
-rw-r--r--apps/plugins/puzzles/help/slant.c4
-rw-r--r--apps/plugins/puzzles/help/solo.c4
-rw-r--r--apps/plugins/puzzles/help/tents.c4
-rw-r--r--apps/plugins/puzzles/help/towers.c4
-rw-r--r--apps/plugins/puzzles/help/tracks.c4
-rw-r--r--apps/plugins/puzzles/help/twiddle.c4
-rw-r--r--apps/plugins/puzzles/help/undead.c4
-rw-r--r--apps/plugins/puzzles/help/unequal.c4
-rw-r--r--apps/plugins/puzzles/help/unruly.c4
-rw-r--r--apps/plugins/puzzles/help/untangle.c4
-rw-r--r--apps/plugins/puzzles/rockbox.c11
42 files changed, 84 insertions, 89 deletions
diff --git a/apps/plugins/puzzles/compress.c b/apps/plugins/puzzles/compress.c
index 0e52c4b..78b2aa4 100644
--- a/apps/plugins/puzzles/compress.c
+++ b/apps/plugins/puzzles/compress.c
@@ -60,7 +60,7 @@ void dump_bytes(unsigned char *buf, int len)
*
* const char help_text_words[];
* const unsigned short help_text_len;
- * const struct style_text help_text_style[];
+ * struct style_text help_text_style[];
*
* help_text_words consists of help_text_len bytes containing the
* words of the help text, delimited with NULs, not a standard C
@@ -78,7 +78,7 @@ int main()
printf("#include \"lib/display_text.h\"\n\n");
- printf("const struct style_text help_text_style[] = {\n");
+ printf("struct style_text help_text_style[] = {\n");
/* break up words on spaces and newline while printing indices of
* underlined words */
diff --git a/apps/plugins/puzzles/help.h b/apps/plugins/puzzles/help.h
index a5d2cda..a583990 100644
--- a/apps/plugins/puzzles/help.h
+++ b/apps/plugins/puzzles/help.h
@@ -6,6 +6,6 @@
extern const char help_text[];
#ifdef ROCKBOX
extern const char quick_help_text[];
-extern const struct style_text help_text_style[];
+extern struct style_text help_text_style[];
extern const unsigned short help_text_len, quick_help_text_len, help_text_words;
#endif
diff --git a/apps/plugins/puzzles/help/blackbox.c b/apps/plugins/puzzles/help/blackbox.c
index 98a8f86..a211ecb 100644
--- a/apps/plugins/puzzles/help/blackbox.c
+++ b/apps/plugins/puzzles/help/blackbox.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 450, TEXT_UNDERLINE },
{ 476, TEXT_UNDERLINE },
diff --git a/apps/plugins/puzzles/help/bridges.c b/apps/plugins/puzzles/help/bridges.c
index 439fdfc..2fc7c90 100644
--- a/apps/plugins/puzzles/help/bridges.c
+++ b/apps/plugins/puzzles/help/bridges.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 180, TEXT_CENTER | C_RED },
{ 312, TEXT_UNDERLINE },
diff --git a/apps/plugins/puzzles/help/cube.c b/apps/plugins/puzzles/help/cube.c
index e877b19..32fa816 100644
--- a/apps/plugins/puzzles/help/cube.c
+++ b/apps/plugins/puzzles/help/cube.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 207, TEXT_CENTER | C_RED },
{ 319, TEXT_CENTER | C_RED },
diff --git a/apps/plugins/puzzles/help/dominosa.c b/apps/plugins/puzzles/help/dominosa.c
index 76ec218..becc209 100644
--- a/apps/plugins/puzzles/help/dominosa.c
+++ b/apps/plugins/puzzles/help/dominosa.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 88, TEXT_CENTER | C_RED },
{ 151, TEXT_UNDERLINE },
diff --git a/apps/plugins/puzzles/help/fifteen.c b/apps/plugins/puzzles/help/fifteen.c
index 9b36ff1..f1bee5b 100644
--- a/apps/plugins/puzzles/help/fifteen.c
+++ b/apps/plugins/puzzles/help/fifteen.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 83, TEXT_UNDERLINE },
{ 86, TEXT_CENTER | C_RED },
diff --git a/apps/plugins/puzzles/help/filling.c b/apps/plugins/puzzles/help/filling.c
index d6f9494..d876ed2 100644
--- a/apps/plugins/puzzles/help/filling.c
+++ b/apps/plugins/puzzles/help/filling.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 141, TEXT_CENTER | C_RED },
{ 306, TEXT_CENTER | C_RED },
diff --git a/apps/plugins/puzzles/help/flip.c b/apps/plugins/puzzles/help/flip.c
index 3bb2bd2..2c11fc4 100644
--- a/apps/plugins/puzzles/help/flip.c
+++ b/apps/plugins/puzzles/help/flip.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 76, TEXT_CENTER | C_RED },
{ 164, TEXT_UNDERLINE },
diff --git a/apps/plugins/puzzles/help/flood.c b/apps/plugins/puzzles/help/flood.c
index 290cb13..6841e50 100644
--- a/apps/plugins/puzzles/help/flood.c
+++ b/apps/plugins/puzzles/help/flood.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 155, TEXT_CENTER | C_RED },
{ 261, TEXT_CENTER | C_RED },
diff --git a/apps/plugins/puzzles/help/galaxies.c b/apps/plugins/puzzles/help/galaxies.c
index beb3954..b6d836d 100644
--- a/apps/plugins/puzzles/help/galaxies.c
+++ b/apps/plugins/puzzles/help/galaxies.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 94, TEXT_CENTER | C_RED },
{ 402, TEXT_CENTER | C_RED },
diff --git a/apps/plugins/puzzles/help/guess.c b/apps/plugins/puzzles/help/guess.c
index 4bfe7f7..dbeb34c 100644
--- a/apps/plugins/puzzles/help/guess.c
+++ b/apps/plugins/puzzles/help/guess.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 123, TEXT_CENTER | C_RED },
{ 404, TEXT_CENTER | C_RED },
diff --git a/apps/plugins/puzzles/help/inertia.c b/apps/plugins/puzzles/help/inertia.c
index ededa0d..486a5ac 100644
--- a/apps/plugins/puzzles/help/inertia.c
+++ b/apps/plugins/puzzles/help/inertia.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 39, TEXT_UNDERLINE },
{ 110, TEXT_UNDERLINE },
diff --git a/apps/plugins/puzzles/help/keen.c b/apps/plugins/puzzles/help/keen.c
index 22383e1..5ed75b3 100644
--- a/apps/plugins/puzzles/help/keen.c
+++ b/apps/plugins/puzzles/help/keen.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 324, TEXT_CENTER | C_RED },
{ 391, TEXT_UNDERLINE },
diff --git a/apps/plugins/puzzles/help/lightup.c b/apps/plugins/puzzles/help/lightup.c
index e520a74..c588a6b 100644
--- a/apps/plugins/puzzles/help/lightup.c
+++ b/apps/plugins/puzzles/help/lightup.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 169, TEXT_CENTER | C_RED },
{ 304, TEXT_CENTER | C_RED },
diff --git a/apps/plugins/puzzles/help/loopy.c b/apps/plugins/puzzles/help/loopy.c
index 8845bfc..a9d20ed 100644
--- a/apps/plugins/puzzles/help/loopy.c
+++ b/apps/plugins/puzzles/help/loopy.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 169, TEXT_CENTER | C_RED },
{ 220, TEXT_UNDERLINE },
diff --git a/apps/plugins/puzzles/help/magnets.c b/apps/plugins/puzzles/help/magnets.c
index 923b211..7e679f3 100644
--- a/apps/plugins/puzzles/help/magnets.c
+++ b/apps/plugins/puzzles/help/magnets.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 143, TEXT_CENTER | C_RED },
{ 323, TEXT_CENTER | C_RED },
diff --git a/apps/plugins/puzzles/help/map.c b/apps/plugins/puzzles/help/map.c
index d046f99..676272e 100644
--- a/apps/plugins/puzzles/help/map.c
+++ b/apps/plugins/puzzles/help/map.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 81, TEXT_UNDERLINE },
{ 157, TEXT_CENTER | C_RED },
diff --git a/apps/plugins/puzzles/help/mines.c b/apps/plugins/puzzles/help/mines.c
index 66a81b0..689c483 100644
--- a/apps/plugins/puzzles/help/mines.c
+++ b/apps/plugins/puzzles/help/mines.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 29, TEXT_UNDERLINE },
{ 119, TEXT_UNDERLINE },
diff --git a/apps/plugins/puzzles/help/net.c b/apps/plugins/puzzles/help/net.c
index 3328c42..a27fd65 100644
--- a/apps/plugins/puzzles/help/net.c
+++ b/apps/plugins/puzzles/help/net.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 3, TEXT_UNDERLINE },
{ 120, TEXT_CENTER | C_RED },
diff --git a/apps/plugins/puzzles/help/netslide.c b/apps/plugins/puzzles/help/netslide.c
index ab187f4..259e434 100644
--- a/apps/plugins/puzzles/help/netslide.c
+++ b/apps/plugins/puzzles/help/netslide.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
LAST_STYLE_ITEM
};
diff --git a/apps/plugins/puzzles/help/palisade.c b/apps/plugins/puzzles/help/palisade.c
index dfa5c5b..2034c7c 100644
--- a/apps/plugins/puzzles/help/palisade.c
+++ b/apps/plugins/puzzles/help/palisade.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 87, TEXT_CENTER | C_RED },
{ 149, TEXT_CENTER | C_RED },
diff --git a/apps/plugins/puzzles/help/pattern.c b/apps/plugins/puzzles/help/pattern.c
index b9dd0ea..c0e5fc3 100644
--- a/apps/plugins/puzzles/help/pattern.c
+++ b/apps/plugins/puzzles/help/pattern.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 137, TEXT_UNDERLINE },
{ 173, TEXT_CENTER | C_RED },
diff --git a/apps/plugins/puzzles/help/pearl.c b/apps/plugins/puzzles/help/pearl.c
index ac2988a..84dec04 100644
--- a/apps/plugins/puzzles/help/pearl.c
+++ b/apps/plugins/puzzles/help/pearl.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 138, TEXT_UNDERLINE },
{ 164, TEXT_UNDERLINE },
diff --git a/apps/plugins/puzzles/help/pegs.c b/apps/plugins/puzzles/help/pegs.c
index 17151eb..b07fb0a 100644
--- a/apps/plugins/puzzles/help/pegs.c
+++ b/apps/plugins/puzzles/help/pegs.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 72, TEXT_CENTER | C_RED },
{ 228, TEXT_CENTER | C_RED },
diff --git a/apps/plugins/puzzles/help/range.c b/apps/plugins/puzzles/help/range.c
index ddf6705..d8b6bf4 100644
--- a/apps/plugins/puzzles/help/range.c
+++ b/apps/plugins/puzzles/help/range.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 212, TEXT_CENTER | C_RED },
{ 245, TEXT_UNDERLINE },
diff --git a/apps/plugins/puzzles/help/rect.c b/apps/plugins/puzzles/help/rect.c
index c971942..579ff29 100644
--- a/apps/plugins/puzzles/help/rect.c
+++ b/apps/plugins/puzzles/help/rect.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 144, TEXT_CENTER | C_RED },
{ 311, TEXT_CENTER | C_RED },
diff --git a/apps/plugins/puzzles/help/samegame.c b/apps/plugins/puzzles/help/samegame.c
index 0eefab2..be7c0ae 100644
--- a/apps/plugins/puzzles/help/samegame.c
+++ b/apps/plugins/puzzles/help/samegame.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 116, TEXT_CENTER | C_RED },
{ 229, TEXT_CENTER | C_RED },
diff --git a/apps/plugins/puzzles/help/signpost.c b/apps/plugins/puzzles/help/signpost.c
index 06201f7..f12c526 100644
--- a/apps/plugins/puzzles/help/signpost.c
+++ b/apps/plugins/puzzles/help/signpost.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 158, TEXT_CENTER | C_RED },
{ 495, TEXT_CENTER | C_RED },
diff --git a/apps/plugins/puzzles/help/singles.c b/apps/plugins/puzzles/help/singles.c
index ced0c3b..d6d88e9 100644
--- a/apps/plugins/puzzles/help/singles.c
+++ b/apps/plugins/puzzles/help/singles.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 122, TEXT_CENTER | C_RED },
{ 212, TEXT_CENTER | C_RED },
diff --git a/apps/plugins/puzzles/help/sixteen.c b/apps/plugins/puzzles/help/sixteen.c
index bbd601c..c1cbee5 100644
--- a/apps/plugins/puzzles/help/sixteen.c
+++ b/apps/plugins/puzzles/help/sixteen.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 113, TEXT_UNDERLINE },
{ 187, TEXT_CENTER | C_RED },
diff --git a/apps/plugins/puzzles/help/slant.c b/apps/plugins/puzzles/help/slant.c
index 57a939e..3c46d46 100644
--- a/apps/plugins/puzzles/help/slant.c
+++ b/apps/plugins/puzzles/help/slant.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 125, TEXT_CENTER | C_RED },
{ 328, TEXT_CENTER | C_RED },
diff --git a/apps/plugins/puzzles/help/solo.c b/apps/plugins/puzzles/help/solo.c
index aa49d56..94f4c26 100644
--- a/apps/plugins/puzzles/help/solo.c
+++ b/apps/plugins/puzzles/help/solo.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 360, TEXT_UNDERLINE },
{ 390, TEXT_CENTER | C_RED },
diff --git a/apps/plugins/puzzles/help/tents.c b/apps/plugins/puzzles/help/tents.c
index b120ba3..6ab7968 100644
--- a/apps/plugins/puzzles/help/tents.c
+++ b/apps/plugins/puzzles/help/tents.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 102, TEXT_UNDERLINE },
{ 160, TEXT_CENTER | C_RED },
diff --git a/apps/plugins/puzzles/help/towers.c b/apps/plugins/puzzles/help/towers.c
index 80067ee..534ec8a 100644
--- a/apps/plugins/puzzles/help/towers.c
+++ b/apps/plugins/puzzles/help/towers.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 216, TEXT_CENTER | C_RED },
{ 291, TEXT_UNDERLINE },
diff --git a/apps/plugins/puzzles/help/tracks.c b/apps/plugins/puzzles/help/tracks.c
index 8800cbf..eafeeea 100644
--- a/apps/plugins/puzzles/help/tracks.c
+++ b/apps/plugins/puzzles/help/tracks.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 86, TEXT_CENTER | C_RED },
{ 207, TEXT_CENTER | C_RED },
diff --git a/apps/plugins/puzzles/help/twiddle.c b/apps/plugins/puzzles/help/twiddle.c
index 2ae720e..300a69d 100644
--- a/apps/plugins/puzzles/help/twiddle.c
+++ b/apps/plugins/puzzles/help/twiddle.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 137, TEXT_CENTER | C_RED },
{ 297, TEXT_CENTER | C_RED },
diff --git a/apps/plugins/puzzles/help/undead.c b/apps/plugins/puzzles/help/undead.c
index 90e7940..91a347d 100644
--- a/apps/plugins/puzzles/help/undead.c
+++ b/apps/plugins/puzzles/help/undead.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 202, TEXT_CENTER | C_RED },
{ 282, TEXT_UNDERLINE },
diff --git a/apps/plugins/puzzles/help/unequal.c b/apps/plugins/puzzles/help/unequal.c
index 1e91635..52b2a1c 100644
--- a/apps/plugins/puzzles/help/unequal.c
+++ b/apps/plugins/puzzles/help/unequal.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 239, TEXT_CENTER | C_RED },
{ 306, TEXT_UNDERLINE },
diff --git a/apps/plugins/puzzles/help/unruly.c b/apps/plugins/puzzles/help/unruly.c
index 0cb36f9..31e8816 100644
--- a/apps/plugins/puzzles/help/unruly.c
+++ b/apps/plugins/puzzles/help/unruly.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 99, TEXT_CENTER | C_RED },
{ 221, TEXT_CENTER | C_RED },
diff --git a/apps/plugins/puzzles/help/untangle.c b/apps/plugins/puzzles/help/untangle.c
index 9d72b8b..4a90fa8 100644
--- a/apps/plugins/puzzles/help/untangle.c
+++ b/apps/plugins/puzzles/help/untangle.c
@@ -1,10 +1,10 @@
-/* auto-generated on Mar 17 2018 by genhelp.sh */
+/* auto-generated on Apr 19 2018 by genhelp.sh */
/* help text is compressed using LZ4; see compress.c for details */
/* DO NOT EDIT! */
#include "lib/display_text.h"
-const struct style_text help_text_style[] = {
+struct style_text help_text_style[] = {
{ 0, TEXT_CENTER | C_RED },
{ 64, TEXT_CENTER | C_RED },
{ 100, TEXT_CENTER | C_RED },
diff --git a/apps/plugins/puzzles/rockbox.c b/apps/plugins/puzzles/rockbox.c
index b3a225a..1982da8 100644
--- a/apps/plugins/puzzles/rockbox.c
+++ b/apps/plugins/puzzles/rockbox.c
@@ -1310,11 +1310,6 @@ static void rb_status_bar(void *handle, const char *text)
LOGF("game title is %s\n", text);
}
-static int get_titleheight(void)
-{
- return rb->font_get(FONT_UI)->height;
-}
-
static void draw_title(bool clear_first)
{
const char *base;
@@ -1327,7 +1322,7 @@ static void draw_title(bool clear_first)
rb->snprintf(str, sizeof(str), "%s%s", base, zoom_enabled ? (view_mode ? " (viewing)" : " (interaction)") : "");
/* quick hack */
- bool orig_clipped;
+ bool orig_clipped = false;
if(!zoom_enabled)
{
orig_clipped = clipped;
@@ -3421,10 +3416,10 @@ enum plugin_status plugin_start(const void *param)
{
/* Solo needs a big stack */
int stack_sz = 16 * DEFAULT_STACK_SIZE;
- uintptr_t old = smalloc(stack_sz);
+ uintptr_t old = (uintptr_t)smalloc(stack_sz);
/* word alignment */
- long *stack = ((uintptr_t)old & (uintptr_t)(~0x3)) + 4;
+ long *stack = (long*)((char*)(((uintptr_t)old & (uintptr_t)(~0x3)) + 4));
stack_sz -= ((char*)stack - (char*)old);
thread = rb->create_thread(puzzles_main, stack, stack_sz, 0, "puzzles"