Lines Matching refs:NAME
8 * %array_functions(TYPE,NAME)
20 %define %array_functions(TYPE,NAME)
22 static TYPE *new_##NAME(int nelements) { %}
30 static void delete_##NAME(TYPE *ary) { %}
38 static TYPE NAME##_getitem(TYPE *ary, int index) {
41 static void NAME##_setitem(TYPE *ary, int index, TYPE value) {
46 TYPE *new_##NAME(int nelements);
47 void delete_##NAME(TYPE *ary);
48 TYPE NAME##_getitem(TYPE *ary, int index);
49 void NAME##_setitem(TYPE *ary, int index, TYPE value);
55 * %array_class(TYPE,NAME)
60 * struct NAME {
61 * NAME(int nelements);
62 * ~NAME();
66 * static NAME *frompointer(TYPE *t);
71 %define %array_class(TYPE,NAME)
73 typedef TYPE NAME;
76 typedef struct {} NAME;
78 %extend NAME {
80 NAME(int nelements) {
83 ~NAME() {
87 NAME(int nelements) {
90 ~NAME() {
104 static NAME *frompointer(TYPE *t) {
105 return (NAME *) t;
109 %types(NAME = TYPE);