Skip to content

Commit

Permalink
alien.c-types: some 32/64 differences
Browse files Browse the repository at this point in the history
perhaps the previous way was simpler...
  • Loading branch information
mrjbq7 committed Aug 10, 2024
1 parent 0fc0612 commit a4f86aa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions basis/alien/c-types/c-types.factor
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,8 @@ M: pointer lookup-c-type
\ double typedef

<c-type>
fixnum >>class
fixnum >>boxed-class
cell 8 = fixnum integer ? >>class
cell 8 = fixnum integer ? >>boxed-class
[ alien-signed-4 ] >>getter
[ set-alien-signed-4 ] >>setter
4 >>size
Expand All @@ -334,20 +334,20 @@ M: pointer lookup-c-type
4 >>align-first
"from_signed_4" >>boxer
"to_signed_4" >>unboxer
[ >fixnum ] >>unboxer-quot
cell 8 = [ >fixnum ] [ >integer ] ? >>unboxer-quot
\ int typedef

<c-type>
fixnum >>class
fixnum >>boxed-class
cell 8 = fixnum integer ? >>class
cell 8 = fixnum integer ? >>boxed-class
[ alien-unsigned-4 ] >>getter
[ set-alien-unsigned-4 ] >>setter
4 >>size
4 >>align
4 >>align-first
"from_unsigned_4" >>boxer
"to_unsigned_4" >>unboxer
[ >fixnum ] >>unboxer-quot
cell 8 = [ >fixnum ] [ >integer ] ? >>unboxer-quot
\ uint typedef

cell 8 = [ <c-type> ] [ <long-long-type> ] if
Expand Down

0 comments on commit a4f86aa

Please sign in to comment.