1 /* Program type definitions. */ 2 3 #include <stdlib.h> 4 #include "types.h" 5 6 /* Common operations. */ 7 8 __attr __new(const __table *table, __ref cls, size_t size); 9 10 __fragment *__new_fragment(unsigned int n); 11 12 void __newdata_sequence(__attr args[], unsigned int number); 13 14 void __newdata_mapping(__attr args[], unsigned int number); 15 16 void __raise_memory_error(); 17 void __raise_overflow_error(); 18 void __raise_zero_division_error(); 19 void __raise_type_error(); 20 21 __attr __invoke(__attr callable, int always_callable, 22 unsigned int nkwargs, __param kwcodes[], __attr kwargs[], 23 unsigned int nargs, __attr args[]); 24 25 /* Error routines. */ 26 27 __attr __unbound_method(__attr args[]); 28 29 /* Generic operations depending on specific program details. */ 30 31 void __SETDEFAULT(__ref obj, int pos, __attr value); 32 33 __attr __GETDEFAULT(__ref obj, int pos); 34 35 int __BOOL(__attr attr);