[Groonga-commit] groonga/groonga [master] Revert "[normalizer] added const."

Back to archive index

null+****@clear***** null+****@clear*****
2012年 2月 14日 (火) 13:58:46 JST


Kouhei Sutou	2012-02-14 13:58:46 +0900 (Tue, 14 Feb 2012)

  New Revision: ac81093535dc9674fdd215d597ca5ed06469d0af

  Log:
    Revert "[normalizer] added const."
    
    This reverts commit 32063e39429a51309b15aab764b3ee527586bd67.

  Modified files:
    include/groonga.h
    lib/normalizer.c

  Modified: include/groonga.h (+4 -4)
===================================================================
--- include/groonga.h    2012-02-14 13:58:37 +0900 (17a0b28)
+++ include/groonga.h    2012-02-14 13:58:46 +0900 (55dc855)
@@ -2498,13 +2498,13 @@ GRN_API grn_rc grn_normalized_text_set_value(grn_ctx *ctx,
                                              char *value,
                                              unsigned int length,
                                              unsigned int length_in_bytes);
-GRN_API const short *grn_normalized_text_get_checks(grn_ctx *ctx,
-                                                    grn_obj *normalized_text);
+GRN_API short *grn_normalized_text_get_checks(grn_ctx *ctx,
+                                              grn_obj *normalized_text);
 GRN_API grn_rc grn_normalized_text_set_checks(grn_ctx *ctx,
                                               grn_obj *normalized_text,
                                               short *checks);
-GRN_API const unsigned char *grn_normalized_text_get_types(grn_ctx *ctx,
-                                                           grn_obj *normalized_text);
+GRN_API unsigned char *grn_normalized_text_get_types(grn_ctx *ctx,
+                                                     grn_obj *normalized_text);
 GRN_API grn_rc grn_normalized_text_set_types(grn_ctx *ctx,
                                              grn_obj *normalized_text,
                                              unsigned char *types);

  Modified: lib/normalizer.c (+2 -2)
===================================================================
--- lib/normalizer.c    2012-02-14 13:58:37 +0900 (3462498)
+++ lib/normalizer.c    2012-02-14 13:58:46 +0900 (1e647e8)
@@ -172,7 +172,7 @@ grn_normalized_text_set_value(grn_ctx *ctx, grn_obj *normalized_text,
   GRN_API_RETURN(rc);
 }
 
-const short *
+short *
 grn_normalized_text_get_checks(grn_ctx *ctx, grn_obj *normalized_text)
 {
   int16_t *checks = NULL;
@@ -203,7 +203,7 @@ grn_normalized_text_set_checks(grn_ctx *ctx, grn_obj *normalized_text,
   GRN_API_RETURN(rc);
 }
 
-const unsigned char *
+unsigned char *
 grn_normalized_text_get_types(grn_ctx *ctx, grn_obj *normalized_text)
 {
   uint_least8_t *types = NULL;




Groonga-commit メーリングリストの案内
Back to archive index