aboutsummaryrefslogtreecommitdiff
path: root/quantum/process_keycode
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-12-26 15:53:12 +1100
committerGitHub <noreply@github.com>2020-12-26 15:53:12 +1100
commit48f4768d33313e6a6ed48c31f95eb44feda10a51 (patch)
tree49944f8e0399fc661b9adbf7d8c0962995634579 /quantum/process_keycode
parent53eb7f0774881e8a9f6186a51e15135edc6f8575 (diff)
downloadqmk_firmware-48f4768d33313e6a6ed48c31f95eb44feda10a51.tar.gz
qmk_firmware-48f4768d33313e6a6ed48c31f95eb44feda10a51.zip
Change include guards in quantum/ to pragma once (#11239)
Diffstat (limited to 'quantum/process_keycode')
-rw-r--r--quantum/process_keycode/process_audio.h5
-rw-r--r--quantum/process_keycode/process_clicky.h5
-rw-r--r--quantum/process_keycode/process_combo.h5
-rw-r--r--quantum/process_keycode/process_key_lock.h5
-rw-r--r--quantum/process_keycode/process_leader.h5
-rw-r--r--quantum/process_keycode/process_midi.h5
-rw-r--r--quantum/process_keycode/process_music.h5
-rw-r--r--quantum/process_keycode/process_printer.h5
-rw-r--r--quantum/process_keycode/process_steno.h6
-rw-r--r--quantum/process_keycode/process_tap_dance.h6
-rw-r--r--quantum/process_keycode/process_terminal.h5
-rw-r--r--quantum/process_keycode/process_terminal_nop.h5
12 files changed, 14 insertions, 48 deletions
diff --git a/quantum/process_keycode/process_audio.h b/quantum/process_keycode/process_audio.h
index 3a84c3d86..d89a834ea 100644
--- a/quantum/process_keycode/process_audio.h
+++ b/quantum/process_keycode/process_audio.h
@@ -1,5 +1,4 @@
1#ifndef PROCESS_AUDIO_H 1#pragma once
2#define PROCESS_AUDIO_H
3 2
4float compute_freq_for_midi_note(uint8_t note); 3float compute_freq_for_midi_note(uint8_t note);
5 4
@@ -9,5 +8,3 @@ void process_audio_noteoff(uint8_t note);
9void process_audio_all_notes_off(void); 8void process_audio_all_notes_off(void);
10 9
11void audio_on_user(void); 10void audio_on_user(void);
12
13#endif
diff --git a/quantum/process_keycode/process_clicky.h b/quantum/process_keycode/process_clicky.h
index f746edb95..67b6463c5 100644
--- a/quantum/process_keycode/process_clicky.h
+++ b/quantum/process_keycode/process_clicky.h
@@ -1,5 +1,4 @@
1#ifndef PROCESS_CLICKY_H 1#pragma once
2#define PROCESS_CLICKY_H
3 2
4void clicky_play(void); 3void clicky_play(void);
5bool process_clicky(uint16_t keycode, keyrecord_t *record); 4bool process_clicky(uint16_t keycode, keyrecord_t *record);
@@ -13,5 +12,3 @@ void clicky_on(void);
13void clicky_off(void); 12void clicky_off(void);
14 13
15bool is_clicky_on(void); 14bool is_clicky_on(void);
16
17#endif
diff --git a/quantum/process_keycode/process_combo.h b/quantum/process_keycode/process_combo.h
index 0f01aae93..e51a2f1f4 100644
--- a/quantum/process_keycode/process_combo.h
+++ b/quantum/process_keycode/process_combo.h
@@ -14,8 +14,7 @@
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#ifndef PROCESS_COMBO_H 17#pragma once
18#define PROCESS_COMBO_H
19 18
20#include "progmem.h" 19#include "progmem.h"
21#include "quantum.h" 20#include "quantum.h"
@@ -62,5 +61,3 @@ void combo_enable(void);
62void combo_disable(void); 61void combo_disable(void);
63void combo_toggle(void); 62void combo_toggle(void);
64bool is_combo_enabled(void); 63bool is_combo_enabled(void);
65
66#endif
diff --git a/quantum/process_keycode/process_key_lock.h b/quantum/process_keycode/process_key_lock.h
index a8e110a4b..baa0b3907 100644
--- a/quantum/process_keycode/process_key_lock.h
+++ b/quantum/process_keycode/process_key_lock.h
@@ -14,11 +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#ifndef PROCESS_KEY_LOCK_H 17#pragma once
18#define PROCESS_KEY_LOCK_H
19 18
20#include "quantum.h" 19#include "quantum.h"
21 20
22bool process_key_lock(uint16_t *keycode, keyrecord_t *record); 21bool process_key_lock(uint16_t *keycode, keyrecord_t *record);
23
24#endif // PROCESS_KEY_LOCK_H
diff --git a/quantum/process_keycode/process_leader.h b/quantum/process_keycode/process_leader.h
index e0edf57b3..9844f27a1 100644
--- a/quantum/process_keycode/process_leader.h
+++ b/quantum/process_keycode/process_leader.h
@@ -14,8 +14,7 @@
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#ifndef PROCESS_LEADER_H 17#pragma once
18#define PROCESS_LEADER_H
19 18
20#include "quantum.h" 19#include "quantum.h"
21 20
@@ -37,5 +36,3 @@ void qk_leader_start(void);
37 extern uint16_t leader_sequence[5]; \ 36 extern uint16_t leader_sequence[5]; \
38 extern uint8_t leader_sequence_size 37 extern uint8_t leader_sequence_size
39#define LEADER_DICTIONARY() if (leading && timer_elapsed(leader_time) > LEADER_TIMEOUT) 38#define LEADER_DICTIONARY() if (leading && timer_elapsed(leader_time) > LEADER_TIMEOUT)
40
41#endif
diff --git a/quantum/process_keycode/process_midi.h b/quantum/process_keycode/process_midi.h
index ef5661dd4..68c6eda66 100644
--- a/quantum/process_keycode/process_midi.h
+++ b/quantum/process_keycode/process_midi.h
@@ -14,8 +14,7 @@
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#ifndef PROCESS_MIDI_H 17#pragma once
18#define PROCESS_MIDI_H
19 18
20#include "quantum.h" 19#include "quantum.h"
21 20
@@ -53,5 +52,3 @@ uint8_t midi_compute_note(uint16_t keycode);
53# endif // MIDI_ADVANCED 52# endif // MIDI_ADVANCED
54 53
55#endif // MIDI_ENABLE 54#endif // MIDI_ENABLE
56
57#endif
diff --git a/quantum/process_keycode/process_music.h b/quantum/process_keycode/process_music.h
index 292bc5374..01014aa6c 100644
--- a/quantum/process_keycode/process_music.h
+++ b/quantum/process_keycode/process_music.h
@@ -14,8 +14,7 @@
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#ifndef PROCESS_MUSIC_H 17#pragma once
18#define PROCESS_MUSIC_H
19 18
20#include "quantum.h" 19#include "quantum.h"
21 20
@@ -57,5 +56,3 @@ bool music_mask_user(uint16_t keycode);
57# endif 56# endif
58 57
59#endif // defined(AUDIO_ENABLE) || (defined(MIDI_ENABLE) && defined(MIDI_BASIC)) 58#endif // defined(AUDIO_ENABLE) || (defined(MIDI_ENABLE) && defined(MIDI_BASIC))
60
61#endif
diff --git a/quantum/process_keycode/process_printer.h b/quantum/process_keycode/process_printer.h
index 71d3a4b56..3c6d06ff9 100644
--- a/quantum/process_keycode/process_printer.h
+++ b/quantum/process_keycode/process_printer.h
@@ -14,13 +14,10 @@
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#ifndef PROCESS_PRINTER_H 17#pragma once
18#define PROCESS_PRINTER_H
19 18
20#include "quantum.h" 19#include "quantum.h"
21 20
22#include "protocol/serial.h" 21#include "protocol/serial.h"
23 22
24bool process_printer(uint16_t keycode, keyrecord_t *record); 23bool process_printer(uint16_t keycode, keyrecord_t *record);
25
26#endif
diff --git a/quantum/process_keycode/process_steno.h b/quantum/process_keycode/process_steno.h
index ed049eb13..d11fd40af 100644
--- a/quantum/process_keycode/process_steno.h
+++ b/quantum/process_keycode/process_steno.h
@@ -13,8 +13,8 @@
13 * You should have received a copy of the GNU General Public License 13 * You should have received a copy of the GNU General Public License
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#ifndef PROCESS_STENO_H 16
17#define PROCESS_STENO_H 17#pragma once
18 18
19#include "quantum.h" 19#include "quantum.h"
20 20
@@ -25,5 +25,3 @@ void steno_init(void);
25void steno_set_mode(steno_mode_t mode); 25void steno_set_mode(steno_mode_t mode);
26uint8_t *steno_get_state(void); 26uint8_t *steno_get_state(void);
27uint8_t *steno_get_chord(void); 27uint8_t *steno_get_chord(void);
28
29#endif
diff --git a/quantum/process_keycode/process_tap_dance.h b/quantum/process_keycode/process_tap_dance.h
index 09ceef74d..a013c5cab 100644
--- a/quantum/process_keycode/process_tap_dance.h
+++ b/quantum/process_keycode/process_tap_dance.h
@@ -13,8 +13,8 @@
13 * You should have received a copy of the GNU General Public License 13 * You should have received a copy of the GNU General Public License
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#ifndef PROCESS_TAP_DANCE_H 16
17#define PROCESS_TAP_DANCE_H 17#pragma once
18 18
19#ifdef TAP_DANCE_ENABLE 19#ifdef TAP_DANCE_ENABLE
20 20
@@ -101,5 +101,3 @@ void qk_tap_dance_dual_role_reset(qk_tap_dance_state_t *state, void *user_data);
101# define TD(n) KC_NO 101# define TD(n) KC_NO
102 102
103#endif 103#endif
104
105#endif
diff --git a/quantum/process_keycode/process_terminal.h b/quantum/process_keycode/process_terminal.h
index 8426f442b..0159131e5 100644
--- a/quantum/process_keycode/process_terminal.h
+++ b/quantum/process_keycode/process_terminal.h
@@ -14,8 +14,7 @@
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#ifndef PROCESS_TERMINAL_H 17#pragma once
18#define PROCESS_TERMINAL_H
19 18
20#include "quantum.h" 19#include "quantum.h"
21 20
@@ -23,5 +22,3 @@ extern const char keycode_to_ascii_lut[58];
23extern const char shifted_keycode_to_ascii_lut[58]; 22extern const char shifted_keycode_to_ascii_lut[58];
24extern const char terminal_prompt[8]; 23extern const char terminal_prompt[8];
25bool process_terminal(uint16_t keycode, keyrecord_t *record); 24bool process_terminal(uint16_t keycode, keyrecord_t *record);
26
27#endif \ No newline at end of file
diff --git a/quantum/process_keycode/process_terminal_nop.h b/quantum/process_keycode/process_terminal_nop.h
index 56895b33c..36e25320c 100644
--- a/quantum/process_keycode/process_terminal_nop.h
+++ b/quantum/process_keycode/process_terminal_nop.h
@@ -14,12 +14,9 @@
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#ifndef PROCESS_TERMINAL_H 17#pragma once
18#define PROCESS_TERMINAL_H
19 18
20#include "quantum.h" 19#include "quantum.h"
21 20
22#define TERM_ON KC_NO 21#define TERM_ON KC_NO
23#define TERM_OFF KC_NO 22#define TERM_OFF KC_NO
24
25#endif \ No newline at end of file