diff options
| author | Ryan <fauxpark@gmail.com> | 2023-03-24 04:21:37 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-23 17:21:37 +0000 |
| commit | 1e07ff1fb108a305feca659b17ec03ba3e750455 (patch) | |
| tree | 2e6de7250e713a53a9c5d35759e3b6add867ebb4 | |
| parent | fa4dfb542fb62e0279e679a10f1ea7e01b4bf61c (diff) | |
Fix some more missing `#pragma once`s (#20241)
25 files changed, 50 insertions, 4 deletions
diff --git a/keyboards/25keys/cassette42/common/oled_helper.h b/keyboards/25keys/cassette42/common/oled_helper.h index daeb7bfa4d..d677c2a872 100644 --- a/keyboards/25keys/cassette42/common/oled_helper.h +++ b/keyboards/25keys/cassette42/common/oled_helper.h | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 1 | #ifdef OLED_ENABLE | 3 | #ifdef OLED_ENABLE |
| 2 | 4 | ||
| 3 | void render_logo(void); | 5 | void render_logo(void); |
diff --git a/keyboards/doio/kb16/lib/bongocat/bongocat.h b/keyboards/doio/kb16/lib/bongocat/bongocat.h index 65ceabc682..2ffeca1993 100644 --- a/keyboards/doio/kb16/lib/bongocat/bongocat.h +++ b/keyboards/doio/kb16/lib/bongocat/bongocat.h | |||
| @@ -14,4 +14,6 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #pragma once | ||
| 18 | |||
| 17 | void render_bongocat(void); | 19 | void render_bongocat(void); |
diff --git a/keyboards/doio/kb16/lib/layer_status/layer_status.h b/keyboards/doio/kb16/lib/layer_status/layer_status.h index a367a829d7..2c4b08f25a 100644 --- a/keyboards/doio/kb16/lib/layer_status/layer_status.h +++ b/keyboards/doio/kb16/lib/layer_status/layer_status.h | |||
| @@ -15,4 +15,6 @@ | |||
| 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ | 16 | */ |
| 17 | 17 | ||
| 18 | #pragma once | ||
| 19 | |||
| 18 | void render_layer_status(void); | 20 | void render_layer_status(void); |
diff --git a/keyboards/doio/kb16/lib/logo.h b/keyboards/doio/kb16/lib/logo.h index 91d1ddce34..bb3ddc446e 100644 --- a/keyboards/doio/kb16/lib/logo.h +++ b/keyboards/doio/kb16/lib/logo.h | |||
| @@ -15,4 +15,6 @@ | |||
| 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ | 16 | */ |
| 17 | 17 | ||
| 18 | #pragma once | ||
| 19 | |||
| 18 | void render_logo(void); | 20 | void render_logo(void); |
diff --git a/keyboards/gboards/engine/keymap_engine.h b/keyboards/gboards/engine/keymap_engine.h index 599c1ca3e4..dfed493e21 100644 --- a/keyboards/gboards/engine/keymap_engine.h +++ b/keyboards/gboards/engine/keymap_engine.h | |||
| @@ -7,6 +7,8 @@ | |||
| 7 | * With this disgusting bodge, you can just edit your .defs and compile! | 7 | * With this disgusting bodge, you can just edit your .defs and compile! |
| 8 | */ | 8 | */ |
| 9 | 9 | ||
| 10 | #pragma once | ||
| 11 | |||
| 10 | // Clear all X Macros | 12 | // Clear all X Macros |
| 11 | #define PRES BLANK | 13 | #define PRES BLANK |
| 12 | #define KEYS BLANK | 14 | #define KEYS BLANK |
diff --git a/keyboards/gboards/g/config_default.h b/keyboards/gboards/g/config_default.h index 821c2c4ad5..56dd634d13 100644 --- a/keyboards/gboards/g/config_default.h +++ b/keyboards/gboards/g/config_default.h | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 1 | #include "engine.h" | 3 | #include "engine.h" |
| 2 | 4 | ||
| 3 | // Configuration options for the engine | 5 | // Configuration options for the engine |
diff --git a/keyboards/gboards/g/keymap_combo.h b/keyboards/gboards/g/keymap_combo.h index 68ea44b1b4..c062a298a5 100644 --- a/keyboards/gboards/g/keymap_combo.h +++ b/keyboards/gboards/g/keymap_combo.h | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 1 | // Keymap helpers | 3 | // Keymap helpers |
| 2 | // define reference layers per layer. | 4 | // define reference layers per layer. |
| 3 | #define REF_LAYER_FOR_LAYER(LAYER, REF_LAYER) \ | 5 | #define REF_LAYER_FOR_LAYER(LAYER, REF_LAYER) \ |
diff --git a/keyboards/gboards/g/keymap_engine.h b/keyboards/gboards/g/keymap_engine.h index 055b5941e4..e134472da0 100644 --- a/keyboards/gboards/g/keymap_engine.h +++ b/keyboards/gboards/g/keymap_engine.h | |||
| @@ -6,6 +6,9 @@ | |||
| 6 | * using a external generator (Like is done for the ASETNIOP base keymaps) | 6 | * using a external generator (Like is done for the ASETNIOP base keymaps) |
| 7 | * With this disgusting bodge, you can just edit your .defs and compile! | 7 | * With this disgusting bodge, you can just edit your .defs and compile! |
| 8 | */ | 8 | */ |
| 9 | |||
| 10 | #pragma once | ||
| 11 | |||
| 9 | #include "g/engine.h" | 12 | #include "g/engine.h" |
| 10 | 13 | ||
| 11 | // Clear all X Macros | 14 | // Clear all X Macros |
diff --git a/keyboards/gopolar/gg86/lib/logo.h b/keyboards/gopolar/gg86/lib/logo.h index 08ab8ea529..d1197b15f5 100644 --- a/keyboards/gopolar/gg86/lib/logo.h +++ b/keyboards/gopolar/gg86/lib/logo.h | |||
| @@ -14,4 +14,6 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #pragma once | ||
| 18 | |||
| 17 | void render_logo(void); | 19 | void render_logo(void); |
diff --git a/keyboards/gopolar/gg86/lib/wave.h b/keyboards/gopolar/gg86/lib/wave.h index f4e5e5052c..d87525c1d4 100644 --- a/keyboards/gopolar/gg86/lib/wave.h +++ b/keyboards/gopolar/gg86/lib/wave.h | |||
| @@ -15,6 +15,8 @@ | |||
| 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ | 16 | */ |
| 17 | 17 | ||
| 18 | #pragma once | ||
| 19 | |||
| 18 | extern const unsigned char font[] PROGMEM; | 20 | extern const unsigned char font[] PROGMEM; |
| 19 | 21 | ||
| 20 | #define ROW_1 OLED_DISPLAY_WIDTH | 22 | #define ROW_1 OLED_DISPLAY_WIDTH |
diff --git a/keyboards/handwired/d48/taphold.h b/keyboards/handwired/d48/taphold.h index 3bc5ca0275..2a691aa63f 100644 --- a/keyboards/handwired/d48/taphold.h +++ b/keyboards/handwired/d48/taphold.h | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 1 | #include "quantum.h" | 3 | #include "quantum.h" |
| 2 | 4 | ||
| 3 | typedef enum taphold_mode_t { | 5 | typedef enum taphold_mode_t { |
diff --git a/keyboards/handwired/promethium/color.h b/keyboards/handwired/promethium/color.h index 077242d5f1..2bbfcb83a7 100644 --- a/keyboards/handwired/promethium/color.h +++ b/keyboards/handwired/promethium/color.h | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 1 | #define COLOR_BLANK 0, 0, 0 | 3 | #define COLOR_BLANK 0, 0, 0 |
| 2 | 4 | ||
| 3 | #define COLOR_BLACK 0, 0, 0 | 5 | #define COLOR_BLACK 0, 0, 0 |
diff --git a/keyboards/handwired/promethium/rgbsps.h b/keyboards/handwired/promethium/rgbsps.h index 72612a7a82..77689344fc 100644 --- a/keyboards/handwired/promethium/rgbsps.h +++ b/keyboards/handwired/promethium/rgbsps.h | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 1 | void rgbsps_set(uint8_t index, uint8_t r, uint8_t g, uint8_t b); | 3 | void rgbsps_set(uint8_t index, uint8_t r, uint8_t g, uint8_t b); |
| 2 | void rgbsps_setall(uint8_t r, uint8_t g, uint8_t b); | 4 | void rgbsps_setall(uint8_t r, uint8_t g, uint8_t b); |
| 3 | void rgbsps_turnoff(void); | 5 | void rgbsps_turnoff(void); |
diff --git a/keyboards/handwired/symmetric70_proto/matrix_fast/test_config.h b/keyboards/handwired/symmetric70_proto/matrix_fast/test_config.h index 25b5d4e018..bc9adddbbd 100644 --- a/keyboards/handwired/symmetric70_proto/matrix_fast/test_config.h +++ b/keyboards/handwired/symmetric70_proto/matrix_fast/test_config.h | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 1 | // list of OUTPUT(row) ports | 3 | // list of OUTPUT(row) ports |
| 2 | #define MATRIX_OUT_PORTS (Port_D, MCU_GPIO, D0), (Port_C, MCU_GPIO, C0), (Port_E, MCU_GPIO, E0), (Port_B, MCU_GPIO, B0) | 4 | #define MATRIX_OUT_PORTS (Port_D, MCU_GPIO, D0), (Port_C, MCU_GPIO, C0), (Port_E, MCU_GPIO, E0), (Port_B, MCU_GPIO, B0) |
| 3 | // list of OUTPUT(row) pins | 5 | // list of OUTPUT(row) pins |
diff --git a/keyboards/handwired/symmetric70_proto/matrix_fast/test_config_74hc157.h b/keyboards/handwired/symmetric70_proto/matrix_fast/test_config_74hc157.h index 6abc25b862..bb310f28f9 100644 --- a/keyboards/handwired/symmetric70_proto/matrix_fast/test_config_74hc157.h +++ b/keyboards/handwired/symmetric70_proto/matrix_fast/test_config_74hc157.h | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 1 | #define MATRIX_EXTENSION_74HC157 B2 | 3 | #define MATRIX_EXTENSION_74HC157 B2 |
| 2 | // #define MATRIX_EXTENSION_74HC153 B2, B6 | 4 | // #define MATRIX_EXTENSION_74HC153 B2, B6 |
| 3 | 5 | ||
diff --git a/keyboards/handwired/symmetric70_proto/matrix_fast/test_config_direct.h b/keyboards/handwired/symmetric70_proto/matrix_fast/test_config_direct.h index aeea12950d..8b475ddcd6 100644 --- a/keyboards/handwired/symmetric70_proto/matrix_fast/test_config_direct.h +++ b/keyboards/handwired/symmetric70_proto/matrix_fast/test_config_direct.h | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 1 | #if defined(__AVR__) | 3 | #if defined(__AVR__) |
| 2 | /* -------------------- AVR (Pro Micro) ----------------------- */ | 4 | /* -------------------- AVR (Pro Micro) ----------------------- */ |
| 3 | 5 | ||
diff --git a/keyboards/hhkb/rn42/suart.h b/keyboards/hhkb/rn42/suart.h index 7d92be0692..40e40648c7 100644 --- a/keyboards/hhkb/rn42/suart.h +++ b/keyboards/hhkb/rn42/suart.h | |||
| @@ -1,8 +1,5 @@ | |||
| 1 | #ifndef SUART | 1 | #pragma once |
| 2 | #define SUART | ||
| 3 | 2 | ||
| 4 | void xmit(uint8_t); | 3 | void xmit(uint8_t); |
| 5 | uint8_t rcvr(void); | 4 | uint8_t rcvr(void); |
| 6 | uint8_t recv(void); | 5 | uint8_t recv(void); |
| 7 | |||
| 8 | #endif /* SUART */ | ||
diff --git a/keyboards/horrortroll/handwired_k552/lib/bongocat.h b/keyboards/horrortroll/handwired_k552/lib/bongocat.h index 65ceabc682..2ffeca1993 100644 --- a/keyboards/horrortroll/handwired_k552/lib/bongocat.h +++ b/keyboards/horrortroll/handwired_k552/lib/bongocat.h | |||
| @@ -14,4 +14,6 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #pragma once | ||
| 18 | |||
| 17 | void render_bongocat(void); | 19 | void render_bongocat(void); |
diff --git a/keyboards/horrortroll/handwired_k552/lib/galaxy.h b/keyboards/horrortroll/handwired_k552/lib/galaxy.h index 54ce2ad90a..3173278eff 100644 --- a/keyboards/horrortroll/handwired_k552/lib/galaxy.h +++ b/keyboards/horrortroll/handwired_k552/lib/galaxy.h | |||
| @@ -14,4 +14,6 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #pragma once | ||
| 18 | |||
| 17 | void render_galaxy(void); | 19 | void render_galaxy(void); |
diff --git a/keyboards/horrortroll/handwired_k552/lib/logo.h b/keyboards/horrortroll/handwired_k552/lib/logo.h index 5a917ae820..ba53e55476 100644 --- a/keyboards/horrortroll/handwired_k552/lib/logo.h +++ b/keyboards/horrortroll/handwired_k552/lib/logo.h | |||
| @@ -14,4 +14,6 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #pragma once | ||
| 18 | |||
| 17 | void render_logo(void); | 19 | void render_logo(void); |
diff --git a/keyboards/horrortroll/lemon40/lib/bongocat.h b/keyboards/horrortroll/lemon40/lib/bongocat.h index 65ceabc682..2ffeca1993 100644 --- a/keyboards/horrortroll/lemon40/lib/bongocat.h +++ b/keyboards/horrortroll/lemon40/lib/bongocat.h | |||
| @@ -14,4 +14,6 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #pragma once | ||
| 18 | |||
| 17 | void render_bongocat(void); | 19 | void render_bongocat(void); |
diff --git a/keyboards/marksard/rhymestone/common/oled_helper.h b/keyboards/marksard/rhymestone/common/oled_helper.h index 34bacc6a89..9495937e2a 100644 --- a/keyboards/marksard/rhymestone/common/oled_helper.h +++ b/keyboards/marksard/rhymestone/common/oled_helper.h | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 1 | #include <stdint.h> | 3 | #include <stdint.h> |
| 2 | #include "action.h" | 4 | #include "action.h" |
| 3 | 5 | ||
diff --git a/keyboards/marksard/treadstone48/common/oled_helper.h b/keyboards/marksard/treadstone48/common/oled_helper.h index 82c1feba4a..3dc186f05c 100644 --- a/keyboards/marksard/treadstone48/common/oled_helper.h +++ b/keyboards/marksard/treadstone48/common/oled_helper.h | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 1 | #ifdef OLED_ENABLE | 3 | #ifdef OLED_ENABLE |
| 2 | 4 | ||
| 3 | #include <stdint.h> | 5 | #include <stdint.h> |
diff --git a/keyboards/work_louder/rgb_functions.h b/keyboards/work_louder/rgb_functions.h index 8940cddefc..9ad7cdb19c 100644 --- a/keyboards/work_louder/rgb_functions.h +++ b/keyboards/work_louder/rgb_functions.h | |||
| @@ -14,6 +14,8 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #pragma once | ||
| 18 | |||
| 17 | #include "quantum.h" | 19 | #include "quantum.h" |
| 18 | 20 | ||
| 19 | #ifndef VIA_ENABLE | 21 | #ifndef VIA_ENABLE |
diff --git a/keyboards/yushakobo/quick17/quick17_prefs.h b/keyboards/yushakobo/quick17/quick17_prefs.h index a6096f0f26..25f2e1e0ae 100644 --- a/keyboards/yushakobo/quick17/quick17_prefs.h +++ b/keyboards/yushakobo/quick17/quick17_prefs.h | |||
| @@ -14,6 +14,8 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #pragma once | ||
| 18 | |||
| 17 | #include "quantum.h" | 19 | #include "quantum.h" |
| 18 | 20 | ||
| 19 | enum layer_names { | 21 | enum layer_names { |
