Delegates: Difference between revisions
Content deleted Content added
Line 114: | Line 114: | ||
Delegate NewDelegate( Responder rspndr ) |
Delegate NewDelegate( Responder rspndr ) |
||
{ |
{ |
||
Delegate dl = |
Delegate dl = malloc(sizeof(struct sDelegate)); |
||
dl->operation = rspndr; |
dl->operation = rspndr; |
||
return dl; |
return dl; |
||
Line 142: | Line 142: | ||
Delegator NewDelegator( int p, char *phrase) |
Delegator NewDelegator( int p, char *phrase) |
||
{ |
{ |
||
Delegator d = |
Delegator d = malloc(sizeof(struct sDelegator)); |
||
d->param = p; |
d->param = p; |
||
d->phrase = phrase; |
d->phrase = phrase; |