diff --git a/include/core.h b/include/core.h index b958cb9..aa6fabf 100644 --- a/include/core.h +++ b/include/core.h @@ -76,14 +76,14 @@ typedef struct shoppyou { // ID of hole - an invalid record #define HOLE_ID (-1) -// Hole sasa constant -static const Sasa HOLE_SASA = {HOLE_ID}; +// Hole sasa constant with hole ID +extern const Sasa HOLE_SASA; -// Hole tanzaku constant -static const Tanzaku HOLE_TANZAKU = {HOLE_ID}; +// Hole tanzaku constant with hole ID +extern const Tanzaku HOLE_TANZAKU; -// Hole kazari constant -static const Kazari HOLE_KAZARI = {HOLE_ID}; +// Hole kazari constant with hole ID +extern const Kazari HOLE_KAZARI; // ==================== SASAHYOU SECTION ==================== // diff --git a/src/core/sappyou.c b/src/core/sappyou.c index 4c381b5..0bd84b0 100644 --- a/src/core/sappyou.c +++ b/src/core/sappyou.c @@ -4,6 +4,8 @@ #include "../../include/core.h" +const Tanzaku HOLE_TANZAKU = {HOLE_ID}; + // Sappyou file signature: 七夕冊表 const uint16_t SAPPYOU_SIG[4] = {L'七', L'夕', L'冊', L'表'}; diff --git a/src/core/sasahyou.c b/src/core/sasahyou.c index 1b0960d..f6c4f35 100644 --- a/src/core/sasahyou.c +++ b/src/core/sasahyou.c @@ -5,6 +5,8 @@ #include "../../include/core.h" +const Sasa HOLE_SASA = {HOLE_ID}; + // Sasahyou file signature: 七夕笹表 const uint16_t SASAHYOU_SIG[4] = {L'七', L'夕', L'笹', L'表'}; diff --git a/src/core/shoppyou.c b/src/core/shoppyou.c index a2d9c84..9087832 100644 --- a/src/core/shoppyou.c +++ b/src/core/shoppyou.c @@ -4,6 +4,8 @@ #include "../../include/core.h" +const Kazari HOLE_KAZARI = {HOLE_ID}; + // Shoppyou file signature: 七夕飾表 static const uint16_t SHOPPYOU_SIG[4] = {L'七', L'夕', L'飾', L'表'};