diff options
author | David Robillard <d@drobilla.net> | 2023-05-27 17:11:59 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-05-27 17:11:59 -0400 |
commit | 6c41747975d22f35342791dbeb595d2a08f0950b (patch) | |
tree | 690c3d2ac58db57c5c4b34e60c57e92fa2ba9f53 /include/pugl | |
parent | e72fe37d25ddc21f8e3a9494cfb9912e08f8c9aa (diff) | |
download | pugl-6c41747975d22f35342791dbeb595d2a08f0950b.tar.gz pugl-6c41747975d22f35342791dbeb595d2a08f0950b.tar.bz2 pugl-6c41747975d22f35342791dbeb595d2a08f0950b.zip |
Make explicit enumeration constants unsigned wherever possible
Diffstat (limited to 'include/pugl')
-rw-r--r-- | include/pugl/pugl.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/pugl/pugl.h b/include/pugl/pugl.h index 7d9f0c0..9d29ed8 100644 --- a/include/pugl/pugl.h +++ b/include/pugl/pugl.h @@ -75,7 +75,7 @@ typedef enum { realized views), which is used for things like loading configuration, or custom window management rules. */ - PUGL_CLASS_NAME = 1, + PUGL_CLASS_NAME = 1U, /** The title of the window or application. @@ -134,8 +134,8 @@ typedef enum { /// Common flags for all event types typedef enum { - PUGL_IS_SEND_EVENT = 1, ///< Event is synthetic - PUGL_IS_HINT = 2 ///< Event is a hint (not direct user input) + PUGL_IS_SEND_EVENT = 1U << 0U, ///< Event is synthetic + PUGL_IS_HINT = 1U << 1U, ///< Event is a hint (not direct user input) } PuglEventFlag; /// Bitwise OR of #PuglEventFlag values @@ -342,14 +342,14 @@ typedef struct { */ typedef enum { // ASCII codes commonly mapped to keys - PUGL_KEY_BACKSPACE = 0x08, - PUGL_KEY_ENTER = 0x0D, - PUGL_KEY_ESCAPE = 0x1B, - PUGL_KEY_DELETE = 0x7F, - PUGL_KEY_SPACE = 0x20, + PUGL_KEY_BACKSPACE = 0x08U, + PUGL_KEY_ENTER = 0x0DU, + PUGL_KEY_ESCAPE = 0x1BU, + PUGL_KEY_DELETE = 0x7FU, + PUGL_KEY_SPACE = 0x20U, // Unicode Private Use Area - PUGL_KEY_F1 = 0xE000, + PUGL_KEY_F1 = 0xE000U, PUGL_KEY_F2, PUGL_KEY_F3, PUGL_KEY_F4, |