Krolyxon
Commit b28449e

Branches

Refs →

nsxivb28449e

fix: don't use reserved identifiers

identifiers beginning with an underscore is reserved by the C standard.
Author
NRK
Date
2022-06-15 13:42 +0600
Committer
Gitea · 2022-06-25 08:27 +0200
Parent
f23d57d
Commit
b28449e10c92c304434645872199d8f8cb2448b4

+9 −9

6 files changed

  1. M commands.h +1 −1
  2. M config.def.h +4 −4
  3. M image.c +1 −1
  4. M main.c +1 −1
  5. M thumbs.c +1 −1
  6. M window.c +1 −1
M commands.h View
@@ -44,7 +44,7 @@ bool ct_scroll(arg_t);
4444 bool ct_drag_mark_image(arg_t);
4545 bool ct_select(arg_t);
4646
47−#ifdef _MAPPINGS_CONFIG
47+#ifdef INCLUDE_MAPPINGS_CONFIG
4848 /* global */
4949 #define g_change_gamma { cg_change_gamma, MODE_ALL }
5050 #define g_first { cg_first, MODE_ALL }
M config.def.h View
@@ -1,4 +1,4 @@
1−#ifdef _WINDOW_CONFIG
1+#ifdef INCLUDE_WINDOW_CONFIG
22
33 /* default window dimensions (overwritten via -g option): */
44 static const int WIN_WIDTH = 800;
@@ -20,7 +20,7 @@ static const bool TOP_STATUSBAR = false;
2020 #endif /* HAVE_LIBFONTS */
2121
2222 #endif
23−#ifdef _IMAGE_CONFIG
23+#ifdef INCLUDE_IMAGE_CONFIG
2424
2525 /* levels (in percent) to use when zooming via '-' and '+':
2626 * (first/last value is used as min/max zoom level)
@@ -62,7 +62,7 @@ static const int CACHE_SIZE_LIMIT = 256 * 1024 * 1024; /* but not above 256MiB
6262 static const int CACHE_SIZE_FALLBACK = 32 * 1024 * 1024; /* fallback to 32MiB if we can't determine total memory */
6363
6464 #endif
65−#ifdef _THUMBS_CONFIG
65+#ifdef INCLUDE_THUMBS_CONFIG
6666
6767 /* thumbnail sizes in pixels (width == height): */
6868 static const int thumb_sizes[] = { 32, 64, 96, 128, 160 };
@@ -71,7 +71,7 @@ static const int thumb_sizes[] = { 32, 64, 96, 128, 160 };
7171 static const int THUMB_SIZE = 3;
7272
7373 #endif
74−#ifdef _MAPPINGS_CONFIG
74+#ifdef INCLUDE_MAPPINGS_CONFIG
7575
7676 /* these modifiers will be used when processing keybindings */
7777 static const unsigned int USED_MODMASK = ShiftMask | ControlMask | Mod1Mask;
M image.c View
@@ -18,7 +18,7 @@
1818 */
1919
2020 #include "nsxiv.h"
21−#define _IMAGE_CONFIG
21+#define INCLUDE_IMAGE_CONFIG
2222 #include "config.h"
2323
2424 #include <errno.h>
M main.c View
@@ -18,7 +18,7 @@
1818 */
1919
2020 #include "nsxiv.h"
21−#define _MAPPINGS_CONFIG
21+#define INCLUDE_MAPPINGS_CONFIG
2222 #include "commands.h"
2323 #include "config.h"
2424
M thumbs.c View
@@ -18,7 +18,7 @@
1818 */
1919
2020 #include "nsxiv.h"
21−#define _THUMBS_CONFIG
21+#define INCLUDE_THUMBS_CONFIG
2222 #include "config.h"
2323
2424 #include <errno.h>
M window.c View
@@ -18,7 +18,7 @@
1818 */
1919
2020 #include "nsxiv.h"
21−#define _WINDOW_CONFIG
21+#define INCLUDE_WINDOW_CONFIG
2222 #include "config.h"
2323 #include "icon/data.h"
2424