Lichen

templates/progops.h

284:c4617743ba3b
2016-11-30 Paul Boddie Replaced explicit declarations with an include directive.
     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 __mapping *__new_mapping(unsigned int n);    13     14 void __newdata_sequence(__attr args[], unsigned int number);    15     16 void __newdata_mapping(__attr args[], unsigned int number);    17     18 __attr __invoke(__attr callable, int always_callable,    19                 unsigned int nkwargs, __param kwcodes[], __attr kwargs[],    20                 unsigned int nargs, __attr args[]);    21     22 /* Error routines. */    23     24 __attr __unbound_method(__attr args[]);    25     26 /* Generic operations depending on specific program details. */    27     28 void __SETDEFAULT(__ref obj, int pos, __attr value);    29     30 __attr __GETDEFAULT(__ref obj, int pos);    31     32 int __BOOL(__attr attr);