Browse Source

Refactored use of "enum" for variable names.

woollybah 6 năm trước cách đây
mục cha
commit
d5921d7331
3 tập tin đã thay đổi với 17 bổ sung17 xóa
  1. 7 7
      json.mod/json.bmx
  2. 6 6
      linkedlist.mod/linkedlist.bmx
  3. 4 4
      stringbuilder.mod/stringbuilder.bmx

+ 7 - 7
json.mod/json.bmx

@@ -225,9 +225,9 @@ Type TJSONArray Extends TJSON
 	End Method
 
 	Method ObjectEnumerator:TJSONArrayEnum()
-		Local enum:TJSONArrayEnum =New TJSONArrayEnum
-		enum.array = Self
-		Return enum
+		Local enumeration:TJSONArrayEnum =New TJSONArrayEnum
+		enumeration.array = Self
+		Return enumeration
 	End Method
 
 End Type
@@ -429,10 +429,10 @@ Type TJSONObject Extends TJSON
 	End Method
 
 	Method ObjectEnumerator:TJSONObjectEnum()
-		Local enum:TJSONObjectEnum =New TJSONObjectEnum
-		enum.obj = Self
-		enum.objectIter = json_object_iter(jsonPtr)
-		Return enum
+		Local enumeration:TJSONObjectEnum =New TJSONObjectEnum
+		enumeration.obj = Self
+		enumeration.objectIter = json_object_iter(jsonPtr)
+		Return enumeration
 	End Method
 	
 	Rem

+ 6 - 6
linkedlist.mod/linkedlist.bmx

@@ -472,16 +472,16 @@ Type TList
 ?Threaded
 			LockMutex(TListEnum._mutex)
 ?
-		Local enum:TListEnum=TListEnum(TListEnum._pool.RemoveFirst())
+		Local enumeration:TListEnum=TListEnum(TListEnum._pool.RemoveFirst())
 ?Threaded
 			UnlockMutex(TListEnum._mutex)
 ?
-		If Not enum Then
-			enum = New TListEnum
+		If Not enumeration Then
+			enumeration = New TListEnum
 		End If
-		enum._link=_head._succ
-		enum._list = Self
-		Return enum
+		enumeration._link=_head._succ
+		enumeration._list = Self
+		Return enumeration
 	End Method
 
 	Rem

+ 4 - 4
stringbuilder.mod/stringbuilder.bmx

@@ -492,10 +492,10 @@ Type TSplitBuffer
 	End Method
 
 	Method ObjectEnumerator:TSplitBufferEnum()
-		Local enum:TSplitBufferEnum = New TSplitBufferEnum
-		enum.buffer = Self
-		enum.length = Length()
-		Return enum
+		Local enumeration:TSplitBufferEnum = New TSplitBufferEnum
+		enumeration.buffer = Self
+		enumeration.length = Length()
+		Return enumeration
 	End Method
 
 	Method Delete()