summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2022-09-25 20:56:44 +0200
committerLouis Burda <quent.burda@gmail.com>2022-09-25 20:56:44 +0200
commit47c4ebe5fb3abccff948575c63e458605dc1d39c (patch)
treeacf93db12d6ef219167175b83a65f1a06227ddc0
parent4969c44faeabff37612f41638e5d0e53e6a91b63 (diff)
downloadpietr-47c4ebe5fb3abccff948575c63e458605dc1d39c.tar.gz
pietr-47c4ebe5fb3abccff948575c63e458605dc1d39c.zip
Reorder globals
-rw-r--r--pietr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/pietr.c b/pietr.c
index d9667fe..56d7453 100644
--- a/pietr.c
+++ b/pietr.c
@@ -62,7 +62,7 @@ static const char *inst_names[] = {
""
};
-static int inst_lut[18] = {
+static const int inst_lut[18] = {
[0 * 3 + 0] = NONE,
[0 * 3 + 1] = PUSH,
[0 * 3 + 2] = POP,
@@ -83,16 +83,16 @@ static int inst_lut[18] = {
[5 * 3 + 2] = OUTC,
};
-static const size_t stacksize = 2048;
-static int debug = 0;
-
-static uint32_t colors[20] = {
+static const uint32_t colors[20] = {
0xffc0c0, 0xffffc0, 0xc0ffc0, 0xc0ffff, 0xc0c0ff, 0xffc0ff,
0xff0000, 0xffff00, 0x00ff00, 0x00ffff, 0x0000ff, 0xff00ff,
0xc00000, 0xc0c000, 0x00c000, 0x00c0c0, 0x0000c0, 0xc000c0,
0x000000, 0xffffff,
};
+static const size_t stacksize = 2048;
+static int debug = 0;
+
int
getcolor(uint8_t *pix, int stride, int x, int y)
{