#5 允许配置ID重用;提供工具函数Maat_helper_read_column,用于处理行列。
This commit is contained in:
@@ -258,6 +258,12 @@ int Maat_rule_get_ex_new_index(Maat_feather_t feather, const char* compile_table
|
||||
//returned data is duplicated by dup_func of Maat_rule_get_ex_new_index, caller is responsible to free the data.
|
||||
MAAT_RULE_EX_DATA Maat_rule_get_ex_data(Maat_feather_t feather, const struct Maat_rule_t* rule, int idx);
|
||||
|
||||
//Helper function for parsing space or tab seperated line.
|
||||
//column_seq: column sequence is numberd from 1.
|
||||
//Return 0 if success.
|
||||
int Maat_helper_read_column(const char* line, int column_seq, size_t *column_offset, size_t *column_len);
|
||||
|
||||
|
||||
//Following functions are similar to Maat_rule_get_ex_data, except they are effective on plugin table.
|
||||
typedef void* MAAT_PLUGIN_EX_DATA;
|
||||
typedef void Maat_plugin_EX_new_func_t(int table_id, const char* key, const char* table_line, MAAT_PLUGIN_EX_DATA* ad, long argl, void *argp);
|
||||
|
||||
Reference in New Issue
Block a user