[Groonga-commit] groonga/groonga at de1fff2 [master] Add GRN_DAT_API.

Back to archive index

susumu.yata null+****@clear*****
Thu Nov 7 11:38:09 JST 2013


susumu.yata	2013-11-07 11:38:09 +0900 (Thu, 07 Nov 2013)

  New Revision: de1fff2e487f1e0db6673606eef018a8ca9e8d8f
  https://github.com/groonga/groonga/commit/de1fff2e487f1e0db6673606eef018a8ca9e8d8f

  Message:
    Add GRN_DAT_API.
    
    To avoid VC++ warnings C4251 and C4275.

  Modified files:
    lib/dat/array.hpp
    lib/dat/base.hpp
    lib/dat/block.hpp
    lib/dat/check.hpp
    lib/dat/cursor.hpp
    lib/dat/entry.hpp
    lib/dat/header.hpp
    lib/dat/key.hpp
    lib/dat/node.hpp
    lib/dat/string.hpp
    lib/dat/vector.hpp

  Modified: lib/dat/array.hpp (+1 -1)
===================================================================
--- lib/dat/array.hpp    2013-11-06 20:26:42 +0900 (a58e274)
+++ lib/dat/array.hpp    2013-11-07 11:38:09 +0900 (5536552)
@@ -25,7 +25,7 @@ namespace dat {
 
 // This class is used to detect an out-of-range access in debug mode.
 template <typename T>
-class Array {
+class GRN_DAT_API Array {
  public:
   Array() : ptr_(NULL), size_(0) {}
   Array(void *ptr, UInt32 size) : ptr_(static_cast<T *>(ptr)), size_(size) {

  Modified: lib/dat/base.hpp (+1 -1)
===================================================================
--- lib/dat/base.hpp    2013-11-06 20:26:42 +0900 (2ee9a9a)
+++ lib/dat/base.hpp    2013-11-07 11:38:09 +0900 (577e69e)
@@ -26,7 +26,7 @@ namespace dat {
 // The most significant bit represents whether or not the node is a linker.
 // BASE of a linker represents the position of its associated key and BASE of
 // a non-linker represents the offset to its child nodes.
-class Base {
+class GRN_DAT_API Base {
  public:
   Base() : value_(0) {}
 

  Modified: lib/dat/block.hpp (+1 -1)
===================================================================
--- lib/dat/block.hpp    2013-11-06 20:26:42 +0900 (685baea)
+++ lib/dat/block.hpp    2013-11-07 11:38:09 +0900 (4675083)
@@ -23,7 +23,7 @@
 namespace grn {
 namespace dat {
 
-class Block {
+class GRN_DAT_API Block {
  public:
   Block() : next_(0), prev_(0), first_phantom_(0), num_phantoms_(0) {}
 

  Modified: lib/dat/check.hpp (+1 -1)
===================================================================
--- lib/dat/check.hpp    2013-11-06 20:26:42 +0900 (840ef37)
+++ lib/dat/check.hpp    2013-11-07 11:38:09 +0900 (f7e5787)
@@ -23,7 +23,7 @@
 namespace grn {
 namespace dat {
 
-class Check {
+class GRN_DAT_API Check {
  public:
   Check() : value_(0) {}
 

  Modified: lib/dat/cursor.hpp (+1 -1)
===================================================================
--- lib/dat/cursor.hpp    2013-11-06 20:26:42 +0900 (7095445)
+++ lib/dat/cursor.hpp    2013-11-07 11:38:09 +0900 (0a4887e)
@@ -23,7 +23,7 @@
 namespace grn {
 namespace dat {
 
-class Cursor {
+class GRN_DAT_API Cursor {
  public:
   Cursor() {}
   virtual ~Cursor() {}

  Modified: lib/dat/entry.hpp (+1 -1)
===================================================================
--- lib/dat/entry.hpp    2013-11-06 20:26:42 +0900 (1a10081)
+++ lib/dat/entry.hpp    2013-11-07 11:38:09 +0900 (0c0b3ad)
@@ -26,7 +26,7 @@ namespace dat {
 // The most significant bit represents whether or not the entry is valid.
 // A valid entry stores the position of its associated key and an invalid entry
 // stores the index of the next invalid entry.
-class Entry {
+class GRN_DAT_API Entry {
  public:
   Entry() : value_(0) {}
 

  Modified: lib/dat/header.hpp (+1 -1)
===================================================================
--- lib/dat/header.hpp    2013-11-06 20:26:42 +0900 (6b8a9ab)
+++ lib/dat/header.hpp    2013-11-07 11:38:09 +0900 (4f383ac)
@@ -23,7 +23,7 @@
 namespace grn {
 namespace dat {
 
-class Header {
+class GRN_DAT_API Header {
  public:
   Header()
       : file_size_(0),

  Modified: lib/dat/key.hpp (+1 -1)
===================================================================
--- lib/dat/key.hpp    2013-11-06 20:26:42 +0900 (6f8671c)
+++ lib/dat/key.hpp    2013-11-07 11:38:09 +0900 (21ae474)
@@ -23,7 +23,7 @@
 namespace grn {
 namespace dat {
 
-class Key {
+class GRN_DAT_API Key {
  public:
   const UInt8 &operator[](UInt32 i) const {
     GRN_DAT_DEBUG_THROW_IF(i >= length());

  Modified: lib/dat/node.hpp (+1 -1)
===================================================================
--- lib/dat/node.hpp    2013-11-06 20:26:42 +0900 (d6171d4)
+++ lib/dat/node.hpp    2013-11-07 11:38:09 +0900 (45ae508)
@@ -25,7 +25,7 @@
 namespace grn {
 namespace dat {
 
-class Node {
+class GRN_DAT_API Node {
  public:
   Node() : base_(), check_() {}
 

  Modified: lib/dat/string.hpp (+1 -1)
===================================================================
--- lib/dat/string.hpp    2013-11-06 20:26:42 +0900 (b9402fe)
+++ lib/dat/string.hpp    2013-11-07 11:38:09 +0900 (ecbb1e7)
@@ -23,7 +23,7 @@
 namespace grn {
 namespace dat {
 
-class String {
+class GRN_DAT_API String {
  public:
   String()
       : ptr_(NULL),

  Modified: lib/dat/vector.hpp (+1 -1)
===================================================================
--- lib/dat/vector.hpp    2013-11-06 20:26:42 +0900 (80c8a1a)
+++ lib/dat/vector.hpp    2013-11-07 11:38:09 +0900 (4f32c59)
@@ -26,7 +26,7 @@ namespace grn {
 namespace dat {
 
 template <typename T>
-class Vector {
+class GRN_DAT_API Vector {
  public:
   Vector() : buf_(NULL), size_(0), capacity_(0) {}
   ~Vector() {
-------------- next part --------------
HTML����������������������������...
Download 



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