2026-03-01 20:48:09 +09:00
|
|
|
#ifndef __TAIGA_H__
|
|
|
|
|
#define __TAIGA_H__
|
|
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <string.h>
|
|
|
|
|
#include <stdlib.h>
|
2026-03-01 23:36:33 +09:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
#include <sys/stat.h>
|
2026-03-01 22:48:04 +09:00
|
|
|
#ifdef _WIN32
|
|
|
|
|
#include <direct.h>
|
2026-03-01 23:36:33 +09:00
|
|
|
#include <io.h>
|
2026-03-01 22:48:04 +09:00
|
|
|
#else
|
|
|
|
|
#include <unistd.h>
|
2026-03-01 23:36:33 +09:00
|
|
|
#include <dirent.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
|
#define io_mkdir(x,y) _mkdir(x)
|
|
|
|
|
#define io_chdir(x) _chdir(x)
|
|
|
|
|
#define io_stat _stat
|
|
|
|
|
|
|
|
|
|
#define IO_S_ISDIR(m) ((m) & _S_IFDIR)
|
|
|
|
|
#else
|
|
|
|
|
#define io_mkdir mkdir
|
|
|
|
|
#define io_chdir chdir
|
|
|
|
|
#define io_stat stat
|
|
|
|
|
|
|
|
|
|
#define IO_S_ISDIR(m) ((m) & S_IFDIR)
|
|
|
|
|
|
|
|
|
|
#define IO_DIR DIR
|
|
|
|
|
#define io_dirent dirent
|
|
|
|
|
#define io_opendir opendir
|
|
|
|
|
#define io_readdir readdir
|
|
|
|
|
#define io_closedir closedir
|
2026-03-01 22:48:04 +09:00
|
|
|
#endif
|
2026-03-01 20:48:09 +09:00
|
|
|
|
2026-03-01 22:43:41 +09:00
|
|
|
/* site.c */
|
2026-03-01 20:54:30 +09:00
|
|
|
int action_site(int argc, char** argv);
|
|
|
|
|
|
2026-03-01 22:43:41 +09:00
|
|
|
/* help.c */
|
|
|
|
|
int action_help(int argc, char** argv);
|
|
|
|
|
|
|
|
|
|
/* seed.c */
|
|
|
|
|
int action_seed(int argc, char** argv);
|
|
|
|
|
|
2026-03-01 23:36:33 +09:00
|
|
|
/* util.c */
|
|
|
|
|
char* u_strvacat(const char* str, ...);
|
|
|
|
|
|
2026-03-01 20:48:09 +09:00
|
|
|
#endif
|