Abstract type: Difference between revisions

m (J: punctuation)
Line 157:
static sAbsMethods cName ## _Iface = { &m1, &m2, &m3 }; \
AbsCls cName ## _Instance( void *clInst) { \
AbsCls ac = (AbsCls)malloc(sizeof(struct sAbstractCls)); \
if (ac) { \
ac->klass = &cName ## _Iface; \
Line 197:
Silly NewSilly(double vInit, const char *strInit)
{
Silly sily = (Silly)malloc(sizeof( struct sillyStruct ));
sily->v1 = vInit;
sily->str[0] = '\0';
Anonymous user