Switch to modern '#pragma once' guards

pull/18/head
Jesse Vincent 9 years ago
parent 2fb20e0a38
commit 605694567d

@ -1,6 +1,4 @@
//#define DEBUG_SERIAL false #pragma once
#ifndef KEYBOARD_CONFIG_H
#define KEYBOARD_CONFIG_H
#include "WS2812.h" #include "WS2812.h"
#define EEPROM_KEYMAP_LOCATION 0 #define EEPROM_KEYMAP_LOCATION 0
@ -44,11 +42,3 @@ int right_rowpins[]= {8,9,10,11};
#endif #endif
// if we're sticking to boot protocol, these could all be 6 + mods
// but *mumble*
#define KEYS_HELD_BUFFER 12
#endif

@ -1,5 +1,5 @@
#ifndef KeyboardIO_H_ #pragma once
#define KeyboardIO_H_
#include <Arduino.h> #include <Arduino.h>
//add your includes for the project KeyboardIO here //add your includes for the project KeyboardIO here
#include <EEPROM.h> #include <EEPROM.h>
@ -101,5 +101,3 @@ int setup_sx1509(sx1509Class sx1509, int colpins[], int rowpins[]);
#define VERSION "locally-built" #define VERSION "locally-built"
#endif #endif
//Do not add code below this line
#endif /* KeyboardIO_H_ */

@ -1,6 +1,4 @@
#ifndef debouncing_h #pragma once
#define debouncing_h
// switch debouncing and status // switch debouncing and status
@ -10,5 +8,3 @@ boolean key_is_pressed (byte keyState);
boolean key_is_not_pressed (byte keyState); boolean key_is_not_pressed (byte keyState);
boolean key_toggled_on(byte keyState); boolean key_toggled_on(byte keyState);
boolean key_toggled_off(byte keyState); boolean key_toggled_off(byte keyState);
#endif

@ -1,3 +1,6 @@
#pragma once
#include "HIDTables.h" #include "HIDTables.h"
#include "HIDAliases.h" #include "HIDAliases.h"
typedef struct { typedef struct {

@ -1,3 +1,5 @@
#pragma once
#define KEYMAP_COLEMAK { /* Generated keymap for COLEMAK */ {Key_skip, Key_1, Key_2, Key_3, Key_4, Key_5, Key_skip, Key_skip, Key_6, Key_7, Key_8, Key_9, Key_0, Key_skip},\ #define KEYMAP_COLEMAK { /* Generated keymap for COLEMAK */ {Key_skip, Key_1, Key_2, Key_3, Key_4, Key_5, Key_skip, Key_skip, Key_6, Key_7, Key_8, Key_9, Key_0, Key_skip},\
{Key_Backtick, Key_Q, Key_W, Key_F, Key_P, Key_G, Key_skip, Key_skip, Key_J, Key_L, Key_U, Key_Y, Key_Semicolon, Key_Equals},\ {Key_Backtick, Key_Q, Key_W, Key_F, Key_P, Key_G, Key_skip, Key_skip, Key_J, Key_L, Key_U, Key_Y, Key_Semicolon, Key_Equals},\
{Key_PageUp, Key_A, Key_R, Key_S, Key_T, Key_D, Key_Tab, Key_Return, Key_H, Key_N, Key_E, Key_I, Key_O, Key_Quote},\ {Key_PageUp, Key_A, Key_R, Key_S, Key_T, Key_D, Key_Tab, Key_Return, Key_H, Key_N, Key_E, Key_I, Key_O, Key_Quote},\

@ -1,5 +1,6 @@
#ifndef LED_CONTROL_H
#define LED_CONTROL_H #pragma once
#include "WS2812.h" #include "WS2812.h"
#define LED_MODES 7 #define LED_MODES 7
@ -118,4 +119,3 @@ void led_effect_numlock_update();
void led_bootup(); void led_bootup();
void led_type_letter(int letter); void led_type_letter(int letter);
#endif

@ -1,7 +1,6 @@
#ifndef mouse_movement_h
#define mouse_movement_h #pragma once
double mouseActiveForCycles = 0; double mouseActiveForCycles = 0;
float carriedOverX = 0; float carriedOverX = 0;
float carriedOverY = 0; float carriedOverY = 0;
#endif
Loading…
Cancel
Save