chore(color): color UI code cleanup - round 3 (#5351)

This commit is contained in:
philmoz
2024-08-01 10:05:52 +10:00
committed by GitHub
parent a362feed91
commit 23df4f63bb
104 changed files with 554 additions and 824 deletions
+1 -4
View File
@@ -19,8 +19,7 @@
* GNU General Public License for more details.
*/
#ifndef _yaml_bits_h_
#define _yaml_bits_h_
#pragma once
#include <stdint.h>
@@ -45,5 +44,3 @@ char* yaml_unsigned2hex(uint32_t i);
char* yaml_rgb2hex(uint32_t i);
int32_t yaml_to_signed(uint32_t i, uint32_t bits);
#endif
+1 -4
View File
@@ -19,13 +19,10 @@
* GNU General Public License for more details.
*/
#ifndef _YAML_DATASTRUCTS_H_
#define _YAML_DATASTRUCTS_H_
#pragma once
struct YamlNode;
const YamlNode* get_radiodata_nodes();
const YamlNode* get_modeldata_nodes();
const YamlNode* get_partialmodel_nodes();
#endif
+1 -4
View File
@@ -19,8 +19,7 @@
* GNU General Public License for more details.
*/
#ifndef _YAML_DEFS_H_
#define _YAML_DEFS_H_
#pragma once
#if defined(YAML_GENERATOR)
@@ -71,5 +70,3 @@
#define CUST_IDX(tag, read, write)
#endif
#endif
+1 -4
View File
@@ -19,8 +19,7 @@
* GNU General Public License for more details.
*/
#ifndef _YAML_LABELSLIST_H_
#define _YAML_LABELSLIST_H_
#pragma once
#define MODULE_ID_STR "mod%did"
#define MODULE_TYPE_STR "mod%dtype"
@@ -30,5 +29,3 @@ struct YamlParserCalls;
void* get_labelslist_iter();
const YamlParserCalls* get_labelslist_parser_calls();
#endif
+1 -4
View File
@@ -19,8 +19,7 @@
* GNU General Public License for more details.
*/
#ifndef _YAML_MODELSLIST_H_
#define _YAML_MODELSLIST_H_
#pragma once
#include <vector>
#include <string>
@@ -29,5 +28,3 @@ struct YamlParserCalls;
void* get_modelslist_iter(std::vector<std::string>* filelist);
const YamlParserCalls* get_modelslist_parser_calls();
#endif
+1 -4
View File
@@ -19,8 +19,7 @@
* GNU General Public License for more details.
*/
#ifndef _node_h_
#define _node_h_
#pragma once
#include <stdint.h>
#include <stddef.h>
@@ -210,5 +209,3 @@ struct YamlNode
{ 0, YDT_ARRAY, 1, NULL, {{ (nodes), {{ NULL }}}} }
#endif
#endif
+1 -4
View File
@@ -19,8 +19,7 @@
* GNU General Public License for more details.
*/
#ifndef _yaml_parser_h_
#define _yaml_parser_h_
#pragma once
#include <stdint.h>
@@ -102,5 +101,3 @@ public:
void set_eof() { eof = true; }
};
#endif
+1 -5
View File
@@ -19,8 +19,7 @@
* GNU General Public License for more details.
*/
#ifndef _YAML_TREE_WALKER_H_
#define _YAML_TREE_WALKER_H_
#pragma once
#include <stdint.h>
#include "yaml_node.h"
@@ -168,6 +167,3 @@ public:
// utils
uint32_t yaml_parse_enum(const struct YamlIdStr* choices, const char* val, uint8_t val_len);
const char* yaml_output_enum(int32_t i, const struct YamlIdStr* choices);
#endif