重构渲染iris文件的代码,逐条写入内存后,再一次性写入文件。

This commit is contained in:
zhengchao
2020-01-22 18:25:01 +08:00
parent 94f11e5a7b
commit d914fa1cb2
6 changed files with 119 additions and 150 deletions

View File

@@ -6,7 +6,7 @@
#define MAX_COMPILE_EX_DATA_NUM 2
#define MAX_FOREIGN_CLMN_NUM 8
#define MAX_PLUGIN_PER_TABLE 32
#define MAX_CHARSET_NUM 16
#define MAX_CHARSET_NUM __CHARSET_MAX
#define MAX_CONJUNCTION_TABLE_NUM 8
#define MAX_TABLE_NAME_LEN 256

View File

@@ -64,6 +64,8 @@ char* str_tolower(char* string);
char *strtok_r_esc(char *s, const char delim, char **save_ptr);
char *str_unescape_and(char*s);
char* str_unescape(char* s);
size_t memcat(void**dest, size_t offset, size_t *n_dest, const void* src, size_t n_src);
pid_t gettid(void);
int system_cmd_mkdir(const char* path);
int system_cmd_rm(const char* src_file);