summaryrefslogtreecommitdiffstats
path: root/darwin/DarwinProcess.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-12-15 19:44:48 +0100
committercgzones <cgzones@googlemail.com>2020-12-19 21:13:32 +0100
commit89473cc9ae950bbb5e291d1f186d372f66f66394 (patch)
treed1e21dbd0df28c00c467695711c8dde884e746a1 /darwin/DarwinProcess.h
parentd872e363081a892d65dede6a90721d3a2e8b0ee6 (diff)
Rework enum ProcessField
Use only one enum instead of a global and a platform specific one. Drop Platform_numberOfFields global variable. Set known size of Process_fields array
Diffstat (limited to 'darwin/DarwinProcess.h')
-rw-r--r--darwin/DarwinProcess.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/darwin/DarwinProcess.h b/darwin/DarwinProcess.h
index 33dbcd14..60b57dfa 100644
--- a/darwin/DarwinProcess.h
+++ b/darwin/DarwinProcess.h
@@ -12,11 +12,6 @@ in the source distribution for its full text.
#include "DarwinProcessList.h"
#include "Settings.h"
-typedef enum DarwinProcessFields_ {
- // Add platform-specific fields here, with ids >= 100
- TRANSLATED = 100,
- LAST_PROCESSFIELD = 101,
-} DarwinProcessField;
typedef struct DarwinProcess_ {
Process super;
@@ -29,7 +24,7 @@ typedef struct DarwinProcess_ {
extern const ProcessClass DarwinProcess_class;
-extern ProcessFieldData Process_fields[];
+extern ProcessFieldData Process_fields[LAST_PROCESSFIELD];
Process* DarwinProcess_new(const Settings* settings);

© 2014-2024 Faster IT GmbH | imprint | privacy policy