| At line 11 added 12 lines. |
| + Given the following functions dealing with callbacks: |
| + {{{ |
| + typedef void KillFunc(void *); |
| + typedef int CallbackFunction(Hdb *node, void *msg, void *data); |
| + typedef struct Callback Callback; |
| + |
| + InvokeCallback(Hdb *node, void *msg); |
| + Callback *MakeCallback(CallbackFunction *cbFunc, void *data, KillFunc *killFunc); |
| + AppendCallback(Hdb *node, Callback *cb); |
| + PrependCallback(Hdb *node, Callback *cb); |
| + }}} |
| + |
| Removed line 19 |
| - Hdb *node; |
| Lines 27-29 were replaced by line 38 |
| - the callback. |
| - |
| - SetClassCast converts an anonymous message to an implementation. It returns |
| + the callback. SetClassCast converts an anonymous message to an implementation. It returns |
| Line 52 was replaced by line 61 |
| - CallCallback(callbacklist, &setMsg); |
| + InvokeCallback(node, &setMsg); |