mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-25 15:25:45 +00:00
a1a027b9bd
Reasoning: - implementation was unsound -- broke down when I added a fairly basic macro definition expanding to a struct initializer in a *.c file. - made it way too easy (e.g. via otherwise totally innocuous git commands) to end up with timestamps such that it always ran MakeHeader.py but never used its output, leading to overbuild noise when running what should be a null 'make'. - but mostly: it's just an awkward way of dealing with C code.
27 lines
645 B
C
27 lines
645 B
C
/*
|
|
htop - UnsupportedProcess.c
|
|
(C) 2015 Hisham H. Muhammad
|
|
Released under the GNU GPL, see the COPYING file
|
|
in the source distribution for its full text.
|
|
*/
|
|
|
|
#include "Process.h"
|
|
#include "UnsupportedProcess.h"
|
|
#include <stdlib.h>
|
|
|
|
|
|
Process* UnsupportedProcess_new(Settings* settings) {
|
|
Process* this = xCalloc(1, sizeof(Process));
|
|
Object_setClass(this, Class(Process));
|
|
Process_init(this, settings);
|
|
return this;
|
|
}
|
|
|
|
void UnsupportedProcess_delete(Object* cast) {
|
|
Process* this = (Process*) cast;
|
|
Object_setClass(this, Class(Process));
|
|
Process_done((Process*)cast);
|
|
// free platform-specific fields here
|
|
free(this);
|
|
}
|