Joy Online Manual
| NAME |
| objc:typedef - Define a new type |
| SYNOPSIS |
objc:typedef type name
| DESCRIPTION |
| Joy allows you to define new types in a manner analogous to the C typedef statement.
All typedefs from the header files ansi.h, libc.h, AppKit.h, Foundation.h, itkTcl.h, and itkObjC.h are already present by default. The following types are available in Joy: |
| Objective-C | Joy | |
| id | id | |
| Class | Class | |
| SEL | SEL | |
| char * | STR or {char *} | |
| void | void | |
| BOOL | BOOL | |
| char | char | |
| unsigned char | uchar | |
| short | short | |
| unsigned short | ushort | |
| int | int | |
| unsigned int | uint | |
| long | long | |
| unsigned long | ulong | |
| long long | longlong | |
| unsigned long long | ulonglong | |
| float | float | |
| double | double | |
| type * | {type *} | |
| rtype (*type) (type1, ...) | {void *} | |
| type [n] | {type n} | |
| union tag {type a; ...} | {union type ...} | |
| struct tag {type a; ...} | {struct type ...} | |
| type : m; type : n; ... | {bitfield m n ...} | |
| enum tag {const, ...} | int |
| EXAMPLES |
joy> objc:typedef {char 20} string20
joy> objc:typedef {struct NSPoint float} circle
| SEE ALSO |
objc:decode
objc:encode
objc:expandType
objc:info
objc:isValue
objc:loadTypedefs
| KEYWORDS |
| type |
| Index |