refactor: rearrange files

This commit is contained in:
Masahiko AMANO 2023-01-14 15:12:12 +03:00
parent a69d8ac042
commit d421eadde4
9 changed files with 13 additions and 13 deletions

View File

@ -2,7 +2,7 @@
#include <string.h> #include <string.h>
#include <time.h> #include <time.h>
#include "../include/core_func.h" #include "../../include/core_func.h"
const Tanzaku HOLE_TANZAKU = {HOLE_ID}; const Tanzaku HOLE_TANZAKU = {HOLE_ID};

View File

@ -3,7 +3,7 @@
#include <time.h> #include <time.h>
#include <stdio.h> #include <stdio.h>
#include "../include/core_func.h" #include "../../include/core_func.h"
const Sasa HOLE_SASA = {HOLE_ID}; const Sasa HOLE_SASA = {HOLE_ID};

View File

@ -2,7 +2,7 @@
#include <string.h> #include <string.h>
#include <time.h> #include <time.h>
#include "../include/core_func.h" #include "../../include/core_func.h"
const Kazari HOLE_KAZARI = {HOLE_ID}; const Kazari HOLE_KAZARI = {HOLE_ID};

View File

@ -3,8 +3,8 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <time.h> #include <time.h>
#include "../include/core_func.h" #include "../../include/core_func.h"
#include "../include/tanabata.h" #include "../../include/tanabata.h"
int tanabata_init(Tanabata *tanabata) { int tanabata_init(Tanabata *tanabata) {
if (sasahyou_init(&tanabata->sasahyou) != 0 || if (sasahyou_init(&tanabata->sasahyou) != 0 ||

View File

@ -1,7 +1,7 @@
#include <malloc.h> #include <malloc.h>
#include "../include/core_func.h" #include "../../include/core_func.h"
#include "../include/tanabata.h" #include "../../include/tanabata.h"
int tanabata_kazari_add(Tanabata *tanabata, uint64_t sasa_id, uint64_t tanzaku_id) { int tanabata_kazari_add(Tanabata *tanabata, uint64_t sasa_id, uint64_t tanzaku_id) {
if (sasa_id >= tanabata->sasahyou.size || tanzaku_id >= tanabata->sappyou.size || if (sasa_id >= tanabata->sasahyou.size || tanzaku_id >= tanabata->sappyou.size ||

View File

@ -1,8 +1,8 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "../include/core_func.h" #include "../../include/core_func.h"
#include "../include/tanabata.h" #include "../../include/tanabata.h"
int tanabata_sasa_add(Tanabata *tanabata, const char *path) { int tanabata_sasa_add(Tanabata *tanabata, const char *path) {
if (path == NULL || tanabata->sasahyou.size == -1 && tanabata->sasahyou.hole_cnt == 0) { if (path == NULL || tanabata->sasahyou.size == -1 && tanabata->sasahyou.hole_cnt == 0) {

View File

@ -1,7 +1,7 @@
#include <string.h> #include <string.h>
#include "../include/core_func.h" #include "../../include/core_func.h"
#include "../include/tanabata.h" #include "../../include/tanabata.h"
int tanabata_tanzaku_add(Tanabata *tanabata, const char *name, const char *description) { int tanabata_tanzaku_add(Tanabata *tanabata, const char *name, const char *description) {
if (name == NULL || description == NULL || tanabata->sappyou.size == -1 && tanabata->sappyou.hole_cnt == 0) { if (name == NULL || description == NULL || tanabata->sappyou.size == -1 && tanabata->sappyou.hole_cnt == 0) {

View File

@ -4,8 +4,8 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <time.h> #include <time.h>
#include "../include/constants.h" #include "../../include/constants.h"
#include "../include/tanabata.h" #include "../../include/tanabata.h"
// Stylization macros // Stylization macros
#define TABLE_HEADER(s) ""s"" #define TABLE_HEADER(s) ""s""