示例#1
0
文件: UArray.c 项目: bomma/io
void UArray_unsupported_with_(const UArray *self, const char *methodName, const UArray *other)
{
	//UArray_error_(self, "Error: '%s' not supported between '%s' and '%s'\n");
	printf("Error: '%s' not supported between '%s' and '%s'\n",
		   methodName, CTYPE_name(self->itemType), CTYPE_name(other->itemType));
	exit(-1);
}
示例#2
0
IO_METHOD(IoSeq, itemType)
{
	/*doc Sequence itemType
	Returns machine type of elements. 
	*/

	return IOSYMBOL(CTYPE_name(UArray_itemType(DATA(self))));
}
示例#3
0
文件: IoSeq_immutable.c 项目: quag/io
IoObject *IoSeq_itemType(IoSeq *self, IoObject *locals, IoMessage *m)
{
	/*doc Sequence itemType
	Returns machine type of elements. 
	*/

	return IOSYMBOL(CTYPE_name(UArray_itemType(DATA(self))));
}
示例#4
0
文件: UArray.c 项目: bomma/io
void UArray_show(const UArray *self)
{
	printf("UArray_%p %s\t", (void *)self, CTYPE_name(self->itemType));
	printf("size: %i ", (int)self->size);
	printf("itemSize: %i ", (int)self->itemSize);
	printf("data: ");
	UArray_print(self);
	printf("\n");
}