Fix some more missing #pragma onces (#20241)

This commit is contained in:
Ryan 2023-03-24 04:21:37 +11:00 committed by GitHub
parent fa4dfb542f
commit 1e07ff1fb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 50 additions and 4 deletions

View file

@ -1,3 +1,5 @@
#pragma once
#ifdef OLED_ENABLE #ifdef OLED_ENABLE
void render_logo(void); void render_logo(void);

View file

@ -14,4 +14,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#pragma once
void render_bongocat(void); void render_bongocat(void);

View file

@ -15,4 +15,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#pragma once
void render_layer_status(void); void render_layer_status(void);

View file

@ -15,4 +15,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#pragma once
void render_logo(void); void render_logo(void);

View file

@ -7,6 +7,8 @@
* With this disgusting bodge, you can just edit your .defs and compile! * With this disgusting bodge, you can just edit your .defs and compile!
*/ */
#pragma once
// Clear all X Macros // Clear all X Macros
#define PRES BLANK #define PRES BLANK
#define KEYS BLANK #define KEYS BLANK

View file

@ -1,3 +1,5 @@
#pragma once
#include "engine.h" #include "engine.h"
// Configuration options for the engine // Configuration options for the engine

View file

@ -1,3 +1,5 @@
#pragma once
// Keymap helpers // Keymap helpers
// define reference layers per layer. // define reference layers per layer.
#define REF_LAYER_FOR_LAYER(LAYER, REF_LAYER) \ #define REF_LAYER_FOR_LAYER(LAYER, REF_LAYER) \

View file

@ -6,6 +6,9 @@
* using a external generator (Like is done for the ASETNIOP base keymaps) * using a external generator (Like is done for the ASETNIOP base keymaps)
* With this disgusting bodge, you can just edit your .defs and compile! * With this disgusting bodge, you can just edit your .defs and compile!
*/ */
#pragma once
#include "g/engine.h" #include "g/engine.h"
// Clear all X Macros // Clear all X Macros

View file

@ -14,4 +14,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#pragma once
void render_logo(void); void render_logo(void);

View file

@ -15,6 +15,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#pragma once
extern const unsigned char font[] PROGMEM; extern const unsigned char font[] PROGMEM;
#define ROW_1 OLED_DISPLAY_WIDTH #define ROW_1 OLED_DISPLAY_WIDTH

View file

@ -1,3 +1,5 @@
#pragma once
#include "quantum.h" #include "quantum.h"
typedef enum taphold_mode_t { typedef enum taphold_mode_t {

View file

@ -1,3 +1,5 @@
#pragma once
#define COLOR_BLANK 0, 0, 0 #define COLOR_BLANK 0, 0, 0
#define COLOR_BLACK 0, 0, 0 #define COLOR_BLACK 0, 0, 0

View file

@ -1,3 +1,5 @@
#pragma once
void rgbsps_set(uint8_t index, uint8_t r, uint8_t g, uint8_t b); void rgbsps_set(uint8_t index, uint8_t r, uint8_t g, uint8_t b);
void rgbsps_setall(uint8_t r, uint8_t g, uint8_t b); void rgbsps_setall(uint8_t r, uint8_t g, uint8_t b);
void rgbsps_turnoff(void); void rgbsps_turnoff(void);

View file

@ -1,3 +1,5 @@
#pragma once
// list of OUTPUT(row) ports // list of OUTPUT(row) ports
#define MATRIX_OUT_PORTS (Port_D, MCU_GPIO, D0), (Port_C, MCU_GPIO, C0), (Port_E, MCU_GPIO, E0), (Port_B, MCU_GPIO, B0) #define MATRIX_OUT_PORTS (Port_D, MCU_GPIO, D0), (Port_C, MCU_GPIO, C0), (Port_E, MCU_GPIO, E0), (Port_B, MCU_GPIO, B0)
// list of OUTPUT(row) pins // list of OUTPUT(row) pins

View file

@ -1,3 +1,5 @@
#pragma once
#define MATRIX_EXTENSION_74HC157 B2 #define MATRIX_EXTENSION_74HC157 B2
// #define MATRIX_EXTENSION_74HC153 B2, B6 // #define MATRIX_EXTENSION_74HC153 B2, B6

View file

@ -1,3 +1,5 @@
#pragma once
#if defined(__AVR__) #if defined(__AVR__)
/* -------------------- AVR (Pro Micro) ----------------------- */ /* -------------------- AVR (Pro Micro) ----------------------- */

View file

@ -1,8 +1,5 @@
#ifndef SUART #pragma once
#define SUART
void xmit(uint8_t); void xmit(uint8_t);
uint8_t rcvr(void); uint8_t rcvr(void);
uint8_t recv(void); uint8_t recv(void);
#endif /* SUART */

View file

@ -14,4 +14,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#pragma once
void render_bongocat(void); void render_bongocat(void);

View file

@ -14,4 +14,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#pragma once
void render_galaxy(void); void render_galaxy(void);

View file

@ -14,4 +14,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#pragma once
void render_logo(void); void render_logo(void);

View file

@ -14,4 +14,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#pragma once
void render_bongocat(void); void render_bongocat(void);

View file

@ -1,3 +1,5 @@
#pragma once
#include <stdint.h> #include <stdint.h>
#include "action.h" #include "action.h"

View file

@ -1,3 +1,5 @@
#pragma once
#ifdef OLED_ENABLE #ifdef OLED_ENABLE
#include <stdint.h> #include <stdint.h>

View file

@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#pragma once
#include "quantum.h" #include "quantum.h"
#ifndef VIA_ENABLE #ifndef VIA_ENABLE

View file

@ -14,6 +14,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#pragma once
#include "quantum.h" #include "quantum.h"
enum layer_names { enum layer_names {