Kouhei Sutou
null+****@clear*****
Mon Dec 16 14:10:11 JST 2013
Kouhei Sutou 2013-12-16 14:10:11 +0900 (Mon, 16 Dec 2013) New Revision: f9202349ad2c5a44c547a1f2b9608d34e29663b8 https://github.com/groonga/groonga/commit/f9202349ad2c5a44c547a1f2b9608d34e29663b8 Message: Use _LEN instead of _SIZE for byte size of a string Because GRN_TEXT_LEN() uses _LEN. Modified files: doc/source/reference/api/grn_column.txt include/groonga.h Modified: doc/source/reference/api/grn_column.txt (+15 -15) =================================================================== --- doc/source/reference/api/grn_column.txt 2013-12-16 14:06:00 +0900 (f139148) +++ doc/source/reference/api/grn_column.txt 2013-12-16 14:10:11 +0900 (67b9470) @@ -22,15 +22,15 @@ Reference It returns the name of :doc:`/reference/pseudo_column` ``_id``. - It is useful to use with :c:macro:`GRN_COLUMN_NAME_ID_SIZE` like + It is useful to use with :c:macro:`GRN_COLUMN_NAME_ID_LEN` like the following: grn_obj *id_column; - id_column = grn_ctx_get(ctx, GRN_COLUMN_NAME_ID, GRN_COLUMN_NAME_ID_SIZE); + id_column = grn_ctx_get(ctx, GRN_COLUMN_NAME_ID, GRN_COLUMN_NAME_ID_LEN); Since 3.1.1. -.. c:macro:: GRN_COLUMN_NAME_ID_SIZE +.. c:macro:: GRN_COLUMN_NAME_ID_LEN It returns the byte size of :c:macro:`GRN_COLUMN_NAME_ID`. @@ -40,15 +40,15 @@ Reference It returns the name of :doc:`/reference/pseudo_column` ``_key``. - It is useful to use with :c:macro:`GRN_COLUMN_NAME_KEY_SIZE` like + It is useful to use with :c:macro:`GRN_COLUMN_NAME_KEY_LEN` like the following: grn_obj *key_column; - key_column = grn_ctx_get(ctx, GRN_COLUMN_NAME_KEY, GRN_COLUMN_NAME_KEY_SIZE); + key_column = grn_ctx_get(ctx, GRN_COLUMN_NAME_KEY, GRN_COLUMN_NAME_KEY_LEN); Since 3.1.1. -.. c:macro:: GRN_COLUMN_NAME_KEY_SIZE +.. c:macro:: GRN_COLUMN_NAME_KEY_LEN It returns the byte size of :c:macro:`GRN_COLUMN_NAME_KEY`. @@ -58,15 +58,15 @@ Reference It returns the name of :doc:`/reference/pseudo_column` ``_value``. - It is useful to use with :c:macro:`GRN_COLUMN_NAME_VALUE_SIZE` like + It is useful to use with :c:macro:`GRN_COLUMN_NAME_VALUE_LEN` like the following: grn_obj *value_column; - value_column = grn_ctx_get(ctx, GRN_COLUMN_NAME_VALUE, GRN_COLUMN_NAME_VALUE_SIZE); + value_column = grn_ctx_get(ctx, GRN_COLUMN_NAME_VALUE, GRN_COLUMN_NAME_VALUE_LEN); Since 3.1.1. -.. c:macro:: GRN_COLUMN_NAME_VALUE_SIZE +.. c:macro:: GRN_COLUMN_NAME_VALUE_LEN It returns the byte size of :c:macro:`GRN_COLUMN_NAME_VALUE`. @@ -76,15 +76,15 @@ Reference It returns the name of :doc:`/reference/pseudo_column` ``_score``. - It is useful to use with :c:macro:`GRN_COLUMN_NAME_SCORE_SIZE` like + It is useful to use with :c:macro:`GRN_COLUMN_NAME_SCORE_LEN` like the following: grn_obj *score_column; - score_column = grn_ctx_get(ctx, GRN_COLUMN_NAME_SCORE, GRN_COLUMN_NAME_SCORE_SIZE); + score_column = grn_ctx_get(ctx, GRN_COLUMN_NAME_SCORE, GRN_COLUMN_NAME_SCORE_LEN); Since 3.1.1. -.. c:macro:: GRN_COLUMN_NAME_SCORE_SIZE +.. c:macro:: GRN_COLUMN_NAME_SCORE_LEN It returns the byte size of :c:macro:`GRN_COLUMN_NAME_SCORE`. @@ -94,15 +94,15 @@ Reference It returns the name of :doc:`/reference/pseudo_column` ``_nsubrecs``. - It is useful to use with :c:macro:`GRN_COLUMN_NAME_NSUBRECS_SIZE` like + It is useful to use with :c:macro:`GRN_COLUMN_NAME_NSUBRECS_LEN` like the following: grn_obj *nsubrecs_column; - nsubrecs_column = grn_ctx_get(ctx, GRN_COLUMN_NAME_NSUBRECS, GRN_COLUMN_NAME_NSUBRECS_SIZE); + nsubrecs_column = grn_ctx_get(ctx, GRN_COLUMN_NAME_NSUBRECS, GRN_COLUMN_NAME_NSUBRECS_LEN); Since 3.1.1. -.. c:macro:: GRN_COLUMN_NAME_NSUBRECS_SIZE +.. c:macro:: GRN_COLUMN_NAME_NSUBRECS_LEN It returns the byte size of :c:macro:`GRN_COLUMN_NAME_NSUBRECS`. Modified: include/groonga.h (+5 -5) =================================================================== --- include/groonga.h 2013-12-16 14:06:00 +0900 (83f9840) +++ include/groonga.h 2013-12-16 14:10:11 +0900 (94ded74) @@ -722,15 +722,15 @@ GRN_API unsigned int grn_table_size(grn_ctx *ctx, grn_obj *table); */ #define GRN_COLUMN_NAME_ID "_id" -#define GRN_COLUMN_NAME_ID_SIZE (sizeof(GRN_COLUMN_NAME_ID) - 1) +#define GRN_COLUMN_NAME_ID_LEN (sizeof(GRN_COLUMN_NAME_ID) - 1) #define GRN_COLUMN_NAME_KEY "_key" -#define GRN_COLUMN_NAME_KEY_SIZE (sizeof(GRN_COLUMN_NAME_KEY) - 1) +#define GRN_COLUMN_NAME_KEY_LEN (sizeof(GRN_COLUMN_NAME_KEY) - 1) #define GRN_COLUMN_NAME_VALUE "_value" -#define GRN_COLUMN_NAME_VALUE_SIZE (sizeof(GRN_COLUMN_NAME_VALUE) - 1) +#define GRN_COLUMN_NAME_VALUE_LEN (sizeof(GRN_COLUMN_NAME_VALUE) - 1) #define GRN_COLUMN_NAME_SCORE "_score" -#define GRN_COLUMN_NAME_SCORE_SIZE (sizeof(GRN_COLUMN_NAME_SCORE) - 1) +#define GRN_COLUMN_NAME_SCORE_LEN (sizeof(GRN_COLUMN_NAME_SCORE) - 1) #define GRN_COLUMN_NAME_NSUBRECS "_nsubrecs" -#define GRN_COLUMN_NAME_NSUBRECS_SIZE (sizeof(GRN_COLUMN_NAME_NSUBRECS) - 1) +#define GRN_COLUMN_NAME_NSUBRECS_LEN (sizeof(GRN_COLUMN_NAME_NSUBRECS) - 1) GRN_API grn_obj *grn_column_create(grn_ctx *ctx, grn_obj *table, const char *name, unsigned int name_size, -------------- next part -------------- HTML����������������������������... 下载