aboutsummaryrefslogtreecommitdiffstats
path: root/include/pugl
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-10-07 15:19:39 -0400
committerDavid Robillard <d@drobilla.net>2022-10-07 15:22:43 -0400
commit17d90bda87dd445a974de7e644629593ade617d8 (patch)
tree319a23c713a4d089863d9c169d63a1d2d413521c /include/pugl
parented4c8a50505ab02a8f3a01e41f5f86acca04b81d (diff)
downloadpugl-17d90bda87dd445a974de7e644629593ade617d8.tar.gz
pugl-17d90bda87dd445a974de7e644629593ade617d8.tar.bz2
pugl-17d90bda87dd445a974de7e644629593ade617d8.zip
Use uppercase integer literal suffixes
Diffstat (limited to 'include/pugl')
-rw-r--r--include/pugl/pugl.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/pugl/pugl.h b/include/pugl/pugl.h
index 397d25e..431efab 100644
--- a/include/pugl/pugl.h
+++ b/include/pugl/pugl.h
@@ -109,10 +109,10 @@ typedef struct {
/// Keyboard modifier flags
typedef enum {
- PUGL_MOD_SHIFT = 1u << 0u, ///< Shift key
- PUGL_MOD_CTRL = 1u << 1u, ///< Control key
- PUGL_MOD_ALT = 1u << 2u, ///< Alt/Option key
- PUGL_MOD_SUPER = 1u << 3u ///< Mod4/Command/Windows key
+ PUGL_MOD_SHIFT = 1U << 0U, ///< Shift key
+ PUGL_MOD_CTRL = 1U << 1U, ///< Control key
+ PUGL_MOD_ALT = 1U << 2U, ///< Alt/Option key
+ PUGL_MOD_SUPER = 1U << 3U ///< Mod4/Command/Windows key
} PuglMod;
/// Bitwise OR of #PuglMod values
@@ -690,7 +690,7 @@ typedef enum {
X11: Calls XInitThreads() which is required for some drivers.
*/
- PUGL_WORLD_THREADS = 1u << 0u
+ PUGL_WORLD_THREADS = 1U << 0U
} PuglWorldFlag;
/// Bitwise OR of #PuglWorldFlag values
@@ -862,7 +862,7 @@ typedef enum {
} PuglViewHint;
/// The number of #PuglViewHint values
-#define PUGL_NUM_VIEW_HINTS ((unsigned)PUGL_REFRESH_RATE + 1u)
+#define PUGL_NUM_VIEW_HINTS ((unsigned)PUGL_REFRESH_RATE + 1U)
/// A special view hint value
typedef enum {
@@ -909,7 +909,7 @@ typedef enum {
} PuglSizeHint;
/// The number of #PuglSizeHint values
-#define PUGL_NUM_SIZE_HINTS ((unsigned)PUGL_MAX_ASPECT + 1u)
+#define PUGL_NUM_SIZE_HINTS ((unsigned)PUGL_MAX_ASPECT + 1U)
/// A function called when an event occurs
typedef PuglStatus (*PuglEventFunc)(PuglView* view, const PuglEvent* event);
@@ -1265,7 +1265,7 @@ typedef enum {
} PuglCursor;
/// The number of #PuglCursor values
-#define PUGL_NUM_CURSORS ((unsigned)PUGL_CURSOR_UP_DOWN + 1u)
+#define PUGL_NUM_CURSORS ((unsigned)PUGL_CURSOR_UP_DOWN + 1U)
/**
Grab the keyboard input focus.