[Groonga-commit] groonga/groonga at 8eb96d9 [master] Remove needless GRN_API_ENTER/RETURN

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Oct 8 22:52:46 JST 2013


Kouhei Sutou	2013-10-08 22:52:46 +0900 (Tue, 08 Oct 2013)

  New Revision: 8eb96d9ecb2245f645f2e56c05bedef5c1cbd91d
  https://github.com/groonga/groonga/commit/8eb96d9ecb2245f645f2e56c05bedef5c1cbd91d

  Message:
    Remove needless GRN_API_ENTER/RETURN
    
    They are for public API not internal API. Many people don't know about
    it because it is not documented. Sorry. (It should be documented for
    new developers.)

  Modified files:
    lib/mrb.c

  Modified: lib/mrb.c (+1 -2)
===================================================================
--- lib/mrb.c    2013-10-08 22:46:52 +0900 (8024e83)
+++ lib/mrb.c    2013-10-08 22:52:46 +0900 (e8cf3d3)
@@ -67,7 +67,6 @@ grn_mrb_open_script(grn_ctx *ctx, const char *name)
   int name_length, max_name_length;
   FILE *script_file;
 
-  GRN_API_ENTER;
   if (name[0] == '/') {
     path[0] = '\0';
   } else {
@@ -95,7 +94,7 @@ grn_mrb_open_script(grn_ctx *ctx, const char *name)
     script_file = fopen(path, "r");
   }
 
-  GRN_API_RETURN(script_file);
+  return script_file;
 }
 
 mrb_value
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index