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