fixes novel_types.h
authorPeng Wu <alexepico@gmail.com>
Wed, 20 Mar 2013 08:30:16 +0000 (16:30 +0800)
committerPeng Wu <alexepico@gmail.com>
Wed, 20 Mar 2013 08:30:16 +0000 (16:30 +0800)
src/include/novel_types.h
src/lookup/lookup.h
utils/training/prune_k_mixture_model.cpp

index eb71af6..3011012 100644 (file)
@@ -27,7 +27,6 @@
 #ifndef NOVEL_TYPES_H
 #define NOVEL_TYPES_H
 
-#include <limits.h>
 #include <glib.h>
 
 namespace pinyin{
@@ -130,8 +129,6 @@ typedef guint32 table_offset_t;
 
 typedef double parameter_t;
 
-#define LAMBDA_PARAMETER 0.347121
-
 /* Array of ChewingKey/ChewingKeyRest */
 typedef GArray * ChewingKeyVector;
 typedef GArray * ChewingKeyRestVector;
@@ -164,6 +161,8 @@ typedef enum {
     USER_DICTIONARY
 } PHRASE_INDEX_LIBRARIES;
 
+#define LAMBDA_PARAMETER 0.347121
+
 };
 
 #endif
index 6bf7a71..498d7ea 100644 (file)
@@ -28,6 +28,7 @@
  */
 
 #include "novel_types.h"
+#include <limits.h>
 
 namespace pinyin{
 
index 4d2be84..4084fc5 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <errno.h>
 #include <locale.h>
+#include <limits.h>
 #include "pinyin_internal.h"
 #include "k_mixture_model.h"