| 60 | } |
| 61 | |
| 62 | struct CALC_IStatus* CALC_IStatusImpl_create() |
| 63 | { |
| 64 | static struct CALC_IStatusVTable vtable = { |
| 65 | {NULL}, |
| 66 | CALC_IStatus_VERSION, |
| 67 | CALC_IStatusImpl_dispose, |
| 68 | CALC_IStatusImpl_getCode, |
| 69 | CALC_IStatusImpl_setCode |
| 70 | }; |
| 71 | |
| 72 | struct CALC_IStatusImpl* impl = malloc(sizeof(struct CALC_IStatusImpl)); |
| 73 | impl->vtable = &vtable; |
| 74 | impl->code = 0; |
| 75 | |
| 76 | return (struct CALC_IStatus*) impl; |
| 77 | } |
| 78 | |
| 79 | |
| 80 | //-------------------------------------- |
no outgoing calls
no test coverage detected