void RankFormatter_Init( RankFormatter* self ) { self->_sizeOfSelf = sizeof(RankFormatter); self->type = RankFormatter_Type; self->_delete = _RankFormatter_Delete; self->_print = _RankFormatter_Print; self->_copy = _LineFormatter_Copy; _LineFormatter_Init( (LineFormatter*)self, _LineFormatter_Format ); _RankFormatter_Init( self, _LineFormatter_Format ); }
LineFormatter* _LineFormatter_New( LINEFORMATTER_DEFARGS ) { LineFormatter* self; /* Allocate memory */ assert( _sizeOfSelf >= sizeof(LineFormatter) ); self = (LineFormatter*)_Stg_Class_New( STG_CLASS_PASSARGS ); _LineFormatter_Init( self, _format ); return self; }