Fix typo in TYPEDEF: documentation
							parent
							
								
									ce92275c8e
								
							
						
					
					
						commit
						b10ab726a3
					
				|  | @ -49,14 +49,14 @@ $nl | ||||||
| 
 | 
 | ||||||
| HELP: TYPEDEF: | HELP: TYPEDEF: | ||||||
| { $syntax "TYPEDEF: old new" } | { $syntax "TYPEDEF: old new" } | ||||||
| { $values { "word" "a word with stack effect " { $snippet "( -- ? )" } } { "old" "a C type" } { "new" "a C type" } } | { $values { "old" "a C type" } { "new" "a C type" } } | ||||||
| { $description "Alises the C type " { $snippet "old" } " under the name " { $snippet "new" } " if ." } | { $description "Aliases the C type " { $snippet "old" } " under the name " { $snippet "new" } " if ." } | ||||||
| { $notes "This word differs from " { $link typedef } " in that it runs at parse time, to ensure correct ordering of operations when loading source files. Words defined in source files are compiled before top-level forms are run, so if a source file defines C binding words and uses " { $link typedef } ", the type alias won't be available at compile time." } ; | { $notes "This word differs from " { $link typedef } " in that it runs at parse time, to ensure correct ordering of operations when loading source files. Words defined in source files are compiled before top-level forms are run, so if a source file defines C binding words and uses " { $link typedef } ", the type alias won't be available at compile time." } ; | ||||||
| 
 | 
 | ||||||
| HELP: TYPEDEF-IF: | HELP: TYPEDEF-IF: | ||||||
| { $syntax "TYPEDEF-IF: word old new" } | { $syntax "TYPEDEF-IF: word old new" } | ||||||
| { $values { "word" "a word with stack effect " { $snippet "( -- ? )" } } { "old" "a C type" } { "new" "a C type" } } | { $values { "word" "a word with stack effect " { $snippet "( -- ? )" } } { "old" "a C type" } { "new" "a C type" } } | ||||||
| { $description "Alises the C type " { $snippet "old" } " under the name " { $snippet "new" } " if " { $snippet "word" } " evaluates to a true value." } | { $description "Aliases the C type " { $snippet "old" } " under the name " { $snippet "new" } " if " { $snippet "word" } " evaluates to a true value." } | ||||||
| { $notes "This word differs from " { $link typedef } " in that it runs at parse time, to ensure correct ordering of operations when loading source files. Words defined in source files are compiled before top-level forms are run, so if a source file defines C binding words and uses " { $link typedef } ", the type alias won't be available at compile time." } ; | { $notes "This word differs from " { $link typedef } " in that it runs at parse time, to ensure correct ordering of operations when loading source files. Words defined in source files are compiled before top-level forms are run, so if a source file defines C binding words and uses " { $link typedef } ", the type alias won't be available at compile time." } ; | ||||||
| 
 | 
 | ||||||
| HELP: C-STRUCT: | HELP: C-STRUCT: | ||||||
|  | @ -87,7 +87,9 @@ HELP: typedef | ||||||
| { $description "Alises the C type " { $snippet "old" } " under the name " { $snippet "new" } "." } | { $description "Alises the C type " { $snippet "old" } " under the name " { $snippet "new" } "." } | ||||||
| { $notes "Using this word in the same source file which defines C bindings can cause problems, because words are compiled before top-level forms are run. Use the " { $link POSTPONE: TYPEDEF: } " word instead." } ; | { $notes "Using this word in the same source file which defines C bindings can cause problems, because words are compiled before top-level forms are run. Use the " { $link POSTPONE: TYPEDEF: } " word instead." } ; | ||||||
| 
 | 
 | ||||||
| { typedef POSTPONE: TYPEDEF: } related-words | { typedef POSTPONE: TYPEDEF: POSTPONE: TYPEDEF-IF: } related-words | ||||||
|  | { POSTPONE: TYPEDEF: typedef POSTPONE: TYPEDEF-IF: } related-words | ||||||
|  | { POSTPONE: TYPEDEF-IF: POSTPONE: TYPEDEF: typedef } related-words | ||||||
| 
 | 
 | ||||||
| HELP: c-struct? | HELP: c-struct? | ||||||
| { $values { "type" "a string" } { "?" "a boolean" } } | { $values { "type" "a string" } { "?" "a boolean" } } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue