mirror of
https://github.com/open-goal/jak-project
synced 2026-08-18 13:53:01 -04:00
undo changes to goalsrc
This commit is contained in:
+5
-5
@@ -2,21 +2,21 @@
|
||||
(in-package goal)
|
||||
|
||||
;; definition for method 4 of type string
|
||||
(defmethod length string ((obj string))
|
||||
(let ((v1-0 (-> obj data)))
|
||||
(defmethod length string ((this string))
|
||||
(let ((v1-0 (-> this data)))
|
||||
(while (nonzero? (-> v1-0 0))
|
||||
(nop!)
|
||||
(nop!)
|
||||
(nop!)
|
||||
(set! v1-0 (&-> v1-0 1))
|
||||
)
|
||||
(&- v1-0 (the-as uint (-> obj data)))
|
||||
(&- v1-0 (the-as uint (-> this data)))
|
||||
)
|
||||
)
|
||||
|
||||
;; definition for method 5 of type string
|
||||
(defmethod asize-of string ((obj string))
|
||||
(+ (-> obj allocated-length) 1 (-> string size))
|
||||
(defmethod asize-of string ((this string))
|
||||
(+ (-> this allocated-length) 1 (-> string size))
|
||||
)
|
||||
|
||||
;; definition for function copy-string<-string
|
||||
|
||||
Reference in New Issue
Block a user