Covert Meter attributes to file-local constant arrays

This commit is contained in:
Christian Göttsche
2020-09-28 12:23:07 +02:00
committed by cgzones
parent 843949131a
commit 6db2d52261
20 changed files with 31 additions and 37 deletions

View File

@ -17,8 +17,10 @@ in the source distribution for its full text.
#include <assert.h>
int MemoryMeter_attributes[] = {
MEMORY_USED, MEMORY_BUFFERS, MEMORY_CACHE
static const int MemoryMeter_attributes[] = {
MEMORY_USED,
MEMORY_BUFFERS,
MEMORY_CACHE
};
static void MemoryMeter_updateValues(Meter* this, char* buffer, int size) {