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 ]
|
[ name>> typedef ]
|
||||||
[ swap "c-type" set-word-prop ]
|
[ swap "c-type" set-word-prop ]
|
||||||
[
|
[
|
||||||
swap dup word? [
|
swap dup c-type-name? [
|
||||||
"pointer-c-type" word-prop
|
resolve-pointer-type
|
||||||
"pointer-c-type" set-word-prop
|
"pointer-c-type" set-word-prop
|
||||||
] [ 2drop ] if
|
] [ 2drop ] if
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue