- Timestamp:
- Sep 22, 2008, 5:31:01 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/ablib/src/Classes/System/Collections/Generic/Stack.ab
r607 r631 15 15 End Sub 16 16 17 Sub initialize() 18 This.items = GC_malloc(1) 19 End Sub 17 20 Public 18 21 Sub Stack () 19 This.i tems = GC_malloc( 1)22 This.initialize() 20 23 End Sub 21 24 22 25 Sub Stack ( capacity As Long ) 23 This.i tems = GC_malloc( 1)26 This.initialize() 24 27 If capacity > 0 Then 25 28 This.size = capacity 26 29 Realloc(capacity) 27 30 End If 31 End Sub 32 33 Sub Stack ( enumerator As IEnumerator<T> ) 34 This.initialize() 35 While enumerator.MoveNext() 36 This.Push(enumerator.Current()) 37 Wend 28 38 End Sub 29 39
Note:
See TracChangeset
for help on using the changeset viewer.