Ejemplo n.º 1
0
IoIPAddress *IoIPAddress_new(void *state)
{
	IoObject *proto = IoState_protoWithInitFunction_((IoState *)state, IoIPAddress_proto);
	return IOCLONE(proto);
}
Ejemplo n.º 2
0
IoCairoFontExtents *IoCairoFontExtents_newWithRawFontExtents(void *state, cairo_font_extents_t *extents)
{
	IoCairoFontExtents *self = IOCLONE(IoState_protoWithInitFunction_(state, IoCairoFontExtents_proto));
	memcpy(EXTENTS(self), extents, sizeof(cairo_font_extents_t));
	return self;
}
Ejemplo n.º 3
0
Archivo: IoObject.c Proyecto: dru/io
IoObject *IoObject_protoFinish(void *state)
{
	IoMethodTable methodTable[] = {
	{"clone", IoObject_clone},
	{"cloneWithoutInit", IoObject_cloneWithoutInit},
	{"shallowCopy", IoObject_shallowCopy},
	{"write", IoObject_protoWrite},
	{"writeln", IoObject_protoWriteLn},
	{"type", IoObject_type},

	// logic

	{"compare", IoObject_protoCompare},
	{"<", IoObject_isLessThan_},
	{">", IoObject_isGreaterThan_},
	{">=", IoObject_isGreaterThanOrEqualTo_},
	{"<=", IoObject_isLessThanOrEqualTo_},

	// comparison

	{"isIdenticalTo", IoObject_isIdenticalTo},
	{"==", IoObject_equals},
	{"!=", IoObject_notEquals},

	// introspection

	//{"self", IoObject_self},
	{"setSlot", IoObject_protoSet_to_},
	{"setSlotWithType", IoObject_protoSetSlotWithType},
	{"updateSlot", IoObject_protoUpdateSlot_to_},
	{"getSlot", IoObject_protoGetSlot_},
	{"getLocalSlot", IoObject_protoGetLocalSlot_},
	{"hasLocalSlot", IoObject_protoHasLocalSlot},
	{"hasProto", IoObject_protoHasProto_},
	{"removeSlot", IoObject_protoRemoveSlot},
	{"removeAllSlots", IoObject_protoRemoveAllSlots},
	{"slotNames", IoObject_protoSlotNames},
	{"slotValues", IoObject_protoSlotValues},

	// method invocation

	{"perform", IoObject_protoPerform},
	{"performWithArgList", IoObject_protoPerformWithArgList},
	{"ancestorWithSlot", IoObject_ancestorWithSlot},
	{"contextWithSlot", IoObject_contextWithSlot},

	// control

	{"block", IoObject_block},
	{"method", IoBlock_method},
	{"for", IoObject_for},
	{"if", IoObject_if},
	{"", IoObject_evalArg},
	//{"truthValueOfArg", IoObject_truthValueOfArg},
	{"evalArg", IoObject_evalArg},
	{"evalArgAndReturnSelf", IoObject_evalArgAndReturnSelf},
	{"evalArgAndReturnNil", IoObject_evalArgAndReturnNil},

	{"return", IoObject_return},
	{"returnIfNonNil", IoObject_returnIfNonNil},
	{"loop", IoObject_loop},
	{"while", IoObject_while},
	{"break", IoObject_break},
	{"continue", IoObject_continue},
	{"stopStatus", IoObject_stopStatus},

	// utility

	{"print", IoObject_lobbyPrint},
	{"do", IoObject_do},
	{"message", IoObject_message},
	{"doMessage", IoObject_doMessage},
	{"doString", IoObject_doString},
	{"doFile", IoObject_doFile},

	// reflection

	{"uniqueId", IoObject_uniqueId},

	// memory utilities

	//{"compact", IoObject_compactMethod},

	{"init", IoObject_self},

	// enumeration

	{"foreachSlot", IoObject_foreachSlot},
	{"-", IoObject_subtract},

	{"thisContext", IoObject_self},
	{"thisMessage", IoObject_thisMessage},
	{"thisLocalContext", IoObject_locals},

	// protos

	{"setProto", IoObject_setProto},
	{"setProtos", IoObject_setProtos},
	{"appendProto", IoObject_appendProto},
	{"prependProto", IoObject_prependProto},
	{"removeProto", IoObject_removeProto},
	{"removeAllProtos", IoObject_removeAllProtos},
	{"protos", IoObject_protosMethod},
	{"proto", IoObject_objectProto},
	{"tailCall", IoObject_tailCall},
	{"setIsActivatable", IoObject_setIsActivatableMethod},
	{"isActivatable", IoObject_isActivatableMethod},
	{"argIsActivationRecord", IoObject_argIsActivationRecord},
	{"argIsCall", IoObject_argIsCall},
	{"become", IoObject_become},

	{"ownsSlots", IoObject_protoOwnsSlots}, // a debug method
	{"memorySize", IoObject_memorySizeMethod},
	
	{"hasDirtySlot", IoObject_hasDirtySlot_},
	{"markClean", IoObject_markClean},

	{NULL, NULL},
	};

	IoObject *self = IoState_protoWithInitFunction_((IoState *)state, IoObject_proto);

	IoObject_addTaglessMethodTable_(self, methodTable);
	return self;
}
Ejemplo n.º 4
0
Archivo: IoGLE.c Proyecto: Akiyah/io
IoObject *IoGLE_rawClone(IoGLE *self)
{ 
	return IoState_protoWithInitFunction_(IOSTATE, IoGLE_proto); 
}
Ejemplo n.º 5
0
IoCoroutine *IoCoroutine_new(void *state)
{
	IoObject *proto = IoState_protoWithInitFunction_((IoState *)state, IoCoroutine_proto);
	IoObject *self = IOCLONE(proto);
	return self;
}
Ejemplo n.º 6
0
IoObject* IoMySQL_new(void* state) {
	IoObject* proto = IoState_protoWithInitFunction_(state, IoMySQL_proto);
	return IOCLONE(proto);
}
Ejemplo n.º 7
0
IoCFFIArray *IoCFFIArray_new(void *state)
{
	IoObject *proto = IoState_protoWithInitFunction_(state, IoCFFIArray_proto);
	return IOCLONE(proto);
}
Ejemplo n.º 8
0
IoYajlGen *IoYajlGen_new(void *state)
{
	IoObject *proto = IoState_protoWithInitFunction_(state, IoYajlGen_proto);
	return IOCLONE(proto);
}
Ejemplo n.º 9
0
IoULimit *IoULimit_new(void *state)
{
	IoULimit *proto = IoState_protoWithInitFunction_(state, IoULimit_proto);
	return IOCLONE(proto);
}
Ejemplo n.º 10
0
IoCairoFontFace *IoCairoFontFace_newWithRawFontFace_(void *state, cairo_font_face_t *face)
{
	IoCairoFontFace *self = IOCLONE(IoState_protoWithInitFunction_(state, IoCairoFontFace_proto));
	IoObject_setDataPointer_(self, face);
	return self;
}
Ejemplo n.º 11
0
IoFnmatch *IoFnmatch_new(void *state)
{
	IoFnmatch *proto = IoState_protoWithInitFunction_(state, IoFnmatch_proto);
	return IOCLONE(proto);
}
Ejemplo n.º 12
0
Archivo: IoSyslog.c Proyecto: BMeph/io
IoSyslog *IoSyslog_new(void *state)
{
	IoSyslog *proto = IoState_protoWithInitFunction_(state, IoSyslog_proto);
	return IOCLONE(proto);
}
Ejemplo n.º 13
0
IoTheoraComment *IoTheoraComment_new(void *state)
{
	IoObject *proto = IoState_protoWithInitFunction_(state, IoTheoraComment_proto);
	return IOCLONE(proto);
}
Ejemplo n.º 14
0
Archivo: IoSeq.c Proyecto: Akiyah/io
IoSeq *IoSeq_new(void *state)
{
	IoSeq *proto = IoState_protoWithInitFunction_((IoState *)state, IoSeq_proto);
	return IOCLONE(proto);
}
Ejemplo n.º 15
0
IoAsyncRequest *IoAsyncRequest_new(void *state)
{
	IoObject *proto = IoState_protoWithInitFunction_(state, IoAsyncRequest_proto);
	return IOCLONE(proto);
}
Ejemplo n.º 16
0
IoDirectory *IoDirectory_new(void *state)
{
	IoDirectory *proto = IoState_protoWithInitFunction_((IoState *)state, IoDirectory_proto);
	return IOCLONE(proto);
}
Ejemplo n.º 17
0
IoMP3Decoder *IoMP3Decoder_new(void *state)
{
	IoObject *proto = IoState_protoWithInitFunction_(state, IoMP3Decoder_proto);
	return IOCLONE(proto);
}
Ejemplo n.º 18
0
Archivo: IoAVCodec.c Proyecto: josip/io
IoAVCodec *IoAVCodec_new(void *state)
{
	IoObject *proto = IoState_protoWithInitFunction_(state, IoAVCodec_proto);
	return IOCLONE(proto);
}
Ejemplo n.º 19
0
IoTokyoCabinetPrefixCursor *IoTokyoCabinetPrefixCursor_new(void *state)
{
	IoObject *proto = IoState_protoWithInitFunction_((IoState *)state, IoTokyoCabinetPrefixCursor_proto);
	return IOCLONE(proto);
}
Ejemplo n.º 20
0
Archivo: IoUUID.c Proyecto: Akiyah/io
IoUUID *IoUUID_new(void *state)
{
	IoUUID *proto = IoState_protoWithInitFunction_(state, IoUUID_proto);
	return IOCLONE(proto);
}
Ejemplo n.º 21
0
Archivo: IoGLE.c Proyecto: Akiyah/io
IoGLE *IoGLE_new(void *state)
{ return IoState_protoWithInitFunction_(state, IoGLE_proto); }
// _new creates a new object from this prototype
IoObject *IoCInvokeStructureInstance_new(void *state)
{
        IoObject *proto = IoState_protoWithInitFunction_(state, IoCInvokeStructureInstance_proto);
        return IOCLONE(proto);
}
Ejemplo n.º 23
0
IoTheoraSetupInfo *IoTheoraSetupInfo_new(void *state)
{
	IoObject *proto = IoState_protoWithInitFunction_(state, IoTheoraSetupInfo_proto);
	return IOCLONE(proto);
}
Ejemplo n.º 24
0
IoClutterInputDevice *IoClutterInputDevice_new(void *state) {
  IoObject *proto = IoState_protoWithInitFunction_((IoState *)state, IoClutterInputDevice_proto);
  return IOCLONE(proto);
}
Ejemplo n.º 25
0
Archivo: IoSkipDB.c Proyecto: anthem/io
IoSkipDB *IoSkipDB_new(void *state)
{
	IoObject *proto = IoState_protoWithInitFunction_((IoState *)state, IoSkipDB_proto);
	return IOCLONE(proto);
}
Ejemplo n.º 26
0
Archivo: IoDynLib.c Proyecto: BMeph/io
IoDynLib *IoDynLib_new(void *state)
{
	IoDynLib *proto = IoState_protoWithInitFunction_((IoState *)state, protoId);
	return IOCLONE(proto);
}