Przeglądaj źródła

Update transformer macro

Use appropriate name for null transformer.
master
TheoryOfNekomata 1 rok temu
rodzic
commit
482c2faf41
1 zmienionych plików z 4 dodań i 4 usunięć
  1. +4
    -4
      ini-config.h

+ 4
- 4
ini-config.h Wyświetl plik

@@ -10,7 +10,7 @@
typedef struct {
void* serialize;
void* deserialize;
} INI_ConfigSerializerPair;
} INI_ConfigTransformer;

struct INI_ConfigItem;

@@ -38,7 +38,7 @@ typedef struct INI_ConfigItem {
const char* cmdline_option;
const void* default_value;
void* validator;
INI_ConfigSerializerPair transformer;
INI_ConfigTransformer transformer;
void* dest;
} INI_ConfigItem;

@@ -131,7 +131,7 @@ void INI_ConfigOverrideString(INI_ConfigItem*, uint8_t, const char*[]);
.override = INI_ConfigOverrideString, \
}

#define INI_CONFIG_SERIALIZER_PAIR_NONE (INI_ConfigSerializerPair) { \
#define INI_CONFIG_TRANSFORMER_NONE (INI_ConfigTransformer) { \
.serialize = NULL, \
.deserialize = NULL, \
}
@@ -148,7 +148,7 @@ void INI_ConfigOverrideString(INI_ConfigItem*, uint8_t, const char*[]);
NULL, \
NULL, \
NULL, \
INI_CONFIG_SERIALIZER_PAIR_NONE, \
INI_CONFIG_TRANSFORMER_NONE, \
NULL, \
}



Ładowanie…
Anuluj
Zapisz