[Groonga-commit] pgroonga/pgroonga at 5960b74 [master] Add missing extern

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Feb 5 21:47:13 JST 2017


Kouhei Sutou	2017-02-05 21:47:13 +0900 (Sun, 05 Feb 2017)

  New Revision: 5960b74a95085afa2be774983af2685389dd0ca0
  https://github.com/pgroonga/pgroonga/commit/5960b74a95085afa2be774983af2685389dd0ca0

  Message:
    Add missing extern

  Modified files:
    src/pgrn-global.h
    src/pgrn-groonga.h
    src/pgroonga.h

  Modified: src/pgrn-global.h (+2 -2)
===================================================================
--- src/pgrn-global.h    2017-02-05 21:43:02 +0900 (cfa1d40)
+++ src/pgrn-global.h    2017-02-05 21:47:13 +0900 (7be9178)
@@ -28,8 +28,8 @@ struct PGrnBuffers
 	grn_obj inspect;
 };
 
-grn_ctx PGrnContext;
-struct PGrnBuffers PGrnBuffers;
+extern grn_ctx PGrnContext;
+extern struct PGrnBuffers PGrnBuffers;
 
 void PGrnInitializeBuffers(void);
 void PGrnFinalizeBuffers(void);

  Modified: src/pgrn-groonga.h (+3 -3)
===================================================================
--- src/pgrn-groonga.h    2017-02-05 21:43:02 +0900 (71735a4)
+++ src/pgrn-groonga.h    2017-02-05 21:47:13 +0900 (3ad42c8)
@@ -5,9 +5,9 @@
 
 #include <groonga.h>
 
-bool PGrnIsLZ4Available;
-bool PGrnIsZlibAvailable;
-bool PGrnIsZstdAvailable;
+extern bool PGrnIsLZ4Available;
+extern bool PGrnIsZlibAvailable;
+extern bool PGrnIsZstdAvailable;
 
 void PGrnInitializeGroongaInformation(void);
 

  Modified: src/pgroonga.h (+1 -1)
===================================================================
--- src/pgroonga.h    2017-02-05 21:43:02 +0900 (8a0f3ed)
+++ src/pgroonga.h    2017-02-05 21:47:13 +0900 (3cb4674)
@@ -56,4 +56,4 @@
 #define PGrnLexiconNameFormat			"Lexicon%u_%u"
 #define PGrnIndexColumnName				"index"
 
-bool PGrnGroongaInitialized;
+extern bool PGrnGroongaInitialized;
-------------- next part --------------
HTML����������������������������...
下载 



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