浏览代码

Generate hash for static strings. Resolves #500.

Brucey 5 年之前
父节点
当前提交
78e9711eed
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      ctranslator.bmx
  2. 1 1
      options.bmx

+ 1 - 1
ctranslator.bmx

@@ -6387,7 +6387,7 @@ End If
 				If key.count > 0 Then
 				If key.count > 0 Then
 					Emit "static BBString " + key.id + "={"
 					Emit "static BBString " + key.id + "={"
 					Emit "&bbStringClass,"
 					Emit "&bbStringClass,"
-					'Emit "2147483647,"
+					Emit bmx_gen_hash(s) + ","
 					Emit s.length + ","
 					Emit s.length + ","
 
 
 					Local t:String = "{"
 					Local t:String = "{"

+ 1 - 1
options.bmx

@@ -25,7 +25,7 @@ SuperStrict
 
 
 Import "base.configmap.bmx"
 Import "base.configmap.bmx"
 
 
-Const version:String = "0.124"
+Const version:String = "0.125"
 
 
 Const BUILDTYPE_APP:Int = 0
 Const BUILDTYPE_APP:Int = 0
 Const BUILDTYPE_MODULE:Int = 1
 Const BUILDTYPE_MODULE:Int = 1