refactor: rearrange files
This commit is contained in:
parent
a69d8ac042
commit
d421eadde4
@ -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};
|
||||||
|
|
||||||
@ -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};
|
||||||
|
|
||||||
@ -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};
|
||||||
|
|
||||||
@ -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 ||
|
||||||
@ -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 ||
|
||||||
@ -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) {
|
||||||
@ -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) {
|
||||||
@ -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) "[7;36m"s"[0m"
|
#define TABLE_HEADER(s) "[7;36m"s"[0m"
|
||||||
Loading…
x
Reference in New Issue
Block a user