diff options
author | David Hunt <dhunt@iolanthe.attlocal.net> | 2015-07-12 11:26:33 -0500 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-08-19 13:46:41 -0300 |
commit | feb7a01fd32d4a63b9cfb178c67cc95c05c9dc00 (patch) | |
tree | 0d82a9640e852046724daabeea1a0f9f0633530e /unsupported/UnsupportedProcess.c | |
parent | 5e602f18d5f619f7dba6d9fccefacdb991db391d (diff) |
Make unsupported run
Diffstat (limited to 'unsupported/UnsupportedProcess.c')
-rw-r--r-- | unsupported/UnsupportedProcess.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/unsupported/UnsupportedProcess.c b/unsupported/UnsupportedProcess.c index be41a4b9..47760a6d 100644 --- a/unsupported/UnsupportedProcess.c +++ b/unsupported/UnsupportedProcess.c @@ -10,25 +10,21 @@ in the source distribution for its full text. #include <stdlib.h> /*{ - -typedef struct UnsupportedProcess_ { - Process super; - // add platform-specific fields here -} UnsupportedProcess; +#include "Settings.h" #define Process_delete UnsupportedProcess_delete }*/ -UnsupportedProcess* UnsupportedProcess_new(Settings* settings) { - UnsupportedProcess* this = calloc(sizeof(UnsupportedProcess), 1); +Process* UnsupportedProcess_new(Settings* settings) { + Process* this = calloc(sizeof(Process), 1); Object_setClass(this, Class(Process)); - Process_init(&this->super, settings); + Process_init(this, settings); return this; } void UnsupportedProcess_delete(Object* cast) { - UnsupportedProcess* this = (UnsupportedProcess*) cast; + Process* this = (Process*) cast; Object_setClass(this, Class(Process)); Process_done((Process*)cast); // free platform-specific fields here |