Use easy-help in 'size-of'
parent
d193aad524
commit
beff592f76
|
@ -1,19 +1,39 @@
|
||||||
|
|
||||||
USING: io io.encodings.ascii io.files io.files.temp io.launcher
|
USING: io io.encodings.ascii io.files io.files.temp io.launcher
|
||||||
locals math.parser sequences sequences.deep ;
|
locals math.parser sequences sequences.deep
|
||||||
|
help.syntax
|
||||||
|
easy-help ;
|
||||||
|
|
||||||
IN: size-of
|
IN: size-of
|
||||||
|
|
||||||
! Use 'size-of' to find out the size in bytes of a C type.
|
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
!
|
|
||||||
! The 'headers' argument is a list of header files to use. You may
|
DEFER: size-of
|
||||||
! pass 'f' to only use 'stdio.h'.
|
|
||||||
!
|
HELP: size-of
|
||||||
! Examples:
|
|
||||||
!
|
Description:
|
||||||
! f "int" size-of .
|
|
||||||
!
|
Use 'size-of' to find out the size in bytes of a C type.
|
||||||
! { "X11/Xlib.h" } "XAnyEvent" size-of .
|
|
||||||
|
The 'headers' argument is a list of header files to use. You may
|
||||||
|
pass 'f' to only use 'stdio.h'. ..
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
! Find the size of 'int'
|
||||||
|
|
||||||
|
f "int" size-of . ..
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
! Find the size of the 'XAnyEvent' struct from Xlib.h
|
||||||
|
|
||||||
|
{ "X11/Xlib.h" } "XAnyEvent" size-of . ..
|
||||||
|
|
||||||
|
;
|
||||||
|
|
||||||
|
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
|
||||||
:: size-of ( HEADERS TYPE -- n )
|
:: size-of ( HEADERS TYPE -- n )
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue