From f6b8058db91239315fa1f843f9ad72ed594f8e86 Mon Sep 17 00:00:00 2001 From: zhengchao Date: Mon, 24 Dec 2018 13:32:08 +0600 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E9=AB=98=E5=8F=98=E9=87=8F=E5=90=8D?= =?UTF-8?q?=E7=9A=84=E5=8F=AF=E8=AF=BB=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/Maat_rule.h | 4 ++-- src/entry/Maat_api.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/Maat_rule.h b/inc/Maat_rule.h index c6917d9..1b2f5dc 100644 --- a/inc/Maat_rule.h +++ b/inc/Maat_rule.h @@ -259,9 +259,9 @@ int Maat_rule_get_ex_new_index(Maat_feather_t feather, const char* compile_table 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. +//Nth_column: the Nth column 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); +int Maat_helper_read_column(const char* line, int Nth_column, 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. diff --git a/src/entry/Maat_api.cpp b/src/entry/Maat_api.cpp index 107f139..43e217c 100644 --- a/src/entry/Maat_api.cpp +++ b/src/entry/Maat_api.cpp @@ -2286,8 +2286,8 @@ int Maat_read_state(Maat_feather_t feather,enum MAAT_STATE_OPT type, void* valu } return 0; } -int Maat_helper_read_column(const char* line, int column_seq, size_t *column_offset, size_t *column_len) +int Maat_helper_read_column(const char* line, int Nth_column, size_t *column_offset, size_t *column_len) { - return get_column_pos(line, column_seq, column_offset, column_len); + return get_column_pos(line, Nth_column, column_offset, column_len); }