paul@126 | 1 | /* Program type definitions. */ |
paul@126 | 2 | |
paul@126 | 3 | #include "types.h" |
paul@126 | 4 | |
paul@126 | 5 | /* Common operations. */ |
paul@126 | 6 | |
paul@126 | 7 | __attr __new(const __table *table, __ref cls, int size); |
paul@159 | 8 | |
paul@159 | 9 | __attr __newdata(__attr args[], unsigned int number); |
paul@159 | 10 | |
paul@156 | 11 | __attr __invoke(__attr callable, int always_callable, |
paul@156 | 12 | unsigned int nkwargs, __param kwcodes[], __attr kwargs[], |
paul@156 | 13 | unsigned int nargs, __attr args[]); |
paul@126 | 14 | |
paul@126 | 15 | /* Error routines. */ |
paul@126 | 16 | |
paul@126 | 17 | __attr __unbound_method(__attr args[]); |
paul@126 | 18 | |
paul@126 | 19 | /* Generic operations depending on specific program details. */ |
paul@126 | 20 | |
paul@126 | 21 | void __SETDEFAULT(__ref obj, int pos, __attr value); |
paul@159 | 22 | |
paul@126 | 23 | __attr __GETDEFAULT(__ref obj, int pos); |
paul@159 | 24 | |
paul@144 | 25 | int __BOOL(__attr attr); |