alien: fix docs (add space between sentences).
							parent
							
								
									7103dfab6b
								
							
						
					
					
						commit
						216f2332be
					
				| 
						 | 
					@ -86,7 +86,7 @@ HELP: pointer:
 | 
				
			||||||
{ $description "Constructs a " { $link pointer } " C type." } ;
 | 
					{ $description "Constructs a " { $link pointer } " C type." } ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
HELP: pointer
 | 
					HELP: pointer
 | 
				
			||||||
{ $class-description "Represents a pointer C type. The " { $snippet "to" } " slot contains the C type being pointed to." { $link byte-array } " and " { $link alien } " values can be provided as pointer function inputs, but see " { $link "byte-arrays-gc" } " for notes about passing byte arrays into C functions. Objects with methods on " { $link >c-ptr } ", such as structs and specialized arrays, may also be used as pointer inputs."
 | 
					{ $class-description "Represents a pointer C type. The " { $snippet "to" } " slot contains the C type being pointed to. Both " { $link byte-array } " and " { $link alien } " values can be provided as pointer function inputs, but see " { $link "byte-arrays-gc" } " for notes about passing byte arrays into C functions. Objects with methods on " { $link >c-ptr } ", such as structs and specialized arrays, may also be used as pointer inputs."
 | 
				
			||||||
$nl
 | 
					$nl
 | 
				
			||||||
"Pointer output values are represented in Factor as " { $link alien } "s. If the pointed-to type is a struct, the alien will automatically be wrapped in a struct object if it is not null."
 | 
					"Pointer output values are represented in Factor as " { $link alien } "s. If the pointed-to type is a struct, the alien will automatically be wrapped in a struct object if it is not null."
 | 
				
			||||||
$nl
 | 
					$nl
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -83,7 +83,7 @@ HELP: ENUM:
 | 
				
			||||||
HELP: C-TYPE:
 | 
					HELP: C-TYPE:
 | 
				
			||||||
{ $syntax "C-TYPE: type" }
 | 
					{ $syntax "C-TYPE: type" }
 | 
				
			||||||
{ $values { "type" "a new C type" } }
 | 
					{ $values { "type" "a new C type" } }
 | 
				
			||||||
{ $description "Defines a new, opaque C type. Since it is opaque, " { $snippet "type" } " will not be directly usable as a parameter or return type of a " { $link POSTPONE: FUNCTION: } " or as a slot of a " { $link POSTPONE: STRUCT: } ". However, it can be used as the type of a " { $link pointer } "."
 | 
					{ $description "Defines a new, opaque C type. Since it is opaque, " { $snippet "type" } " will not be directly usable as a parameter or return type of a " { $link POSTPONE: FUNCTION: } " or as a slot of a " { $link POSTPONE: STRUCT: } ". However, it can be used as the type of a " { $link pointer } "." $nl
 | 
				
			||||||
{ $snippet "C-TYPE:" } " can also be used to forward declare C types, allowing circular dependencies to occur between types. For example:"
 | 
					{ $snippet "C-TYPE:" } " can also be used to forward declare C types, allowing circular dependencies to occur between types. For example:"
 | 
				
			||||||
{ $code """C-TYPE: forward 
 | 
					{ $code """C-TYPE: forward 
 | 
				
			||||||
STRUCT: backward { x forward* } ;
 | 
					STRUCT: backward { x forward* } ;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue