have typedefs take on the old type's pointer type even when the new type is a word and the old a string
parent
40620d470f
commit
58756c27c5
|
@ -318,8 +318,8 @@ M: word typedef ( old new -- )
|
|||
[ name>> typedef ]
|
||||
[ swap "c-type" set-word-prop ]
|
||||
[
|
||||
swap dup word? [
|
||||
"pointer-c-type" word-prop
|
||||
swap dup c-type-name? [
|
||||
resolve-pointer-type
|
||||
"pointer-c-type" set-word-prop
|
||||
] [ 2drop ] if
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue