hg: remove reserved identifiers
authorDavid Demelier <markand@malikania.fr>
Thu, 21 Oct 2021 11:21:21 +0200
changeset 48274 d86908050375
parent 48268 16c3fe46929a
child 48277 96aa3a68d3b5
hg: remove reserved identifiers Per 7.1.3 paragraph, from C draft: All identifiers that begin with an underscore and either an uppercase letter or another underscore are always reserved for any use.
mercurial/bdiff.h
mercurial/bitmanipulation.h
mercurial/compat.h
mercurial/mpatch.h
--- a/mercurial/bdiff.h	Mon Oct 18 16:24:00 2021 -0700
+++ b/mercurial/bdiff.h	Thu Oct 21 11:21:21 2021 +0200
@@ -1,5 +1,5 @@
-#ifndef _HG_BDIFF_H_
-#define _HG_BDIFF_H_
+#ifndef HG_BDIFF_H
+#define HG_BDIFF_H
 
 #include "compat.h"
 
--- a/mercurial/bitmanipulation.h	Mon Oct 18 16:24:00 2021 -0700
+++ b/mercurial/bitmanipulation.h	Thu Oct 21 11:21:21 2021 +0200
@@ -1,5 +1,5 @@
-#ifndef _HG_BITMANIPULATION_H_
-#define _HG_BITMANIPULATION_H_
+#ifndef HG_BITMANIPULATION_H
+#define HG_BITMANIPULATION_H
 
 #include <string.h>
 
--- a/mercurial/compat.h	Mon Oct 18 16:24:00 2021 -0700
+++ b/mercurial/compat.h	Thu Oct 21 11:21:21 2021 +0200
@@ -1,5 +1,5 @@
-#ifndef _HG_COMPAT_H_
-#define _HG_COMPAT_H_
+#ifndef HG_COMPAT_H
+#define HG_COMPAT_H
 
 #ifdef _WIN32
 #ifdef _MSC_VER
--- a/mercurial/mpatch.h	Mon Oct 18 16:24:00 2021 -0700
+++ b/mercurial/mpatch.h	Thu Oct 21 11:21:21 2021 +0200
@@ -1,5 +1,5 @@
-#ifndef _HG_MPATCH_H_
-#define _HG_MPATCH_H_
+#ifndef HG_MPATCH_H
+#define HG_MPATCH_H
 
 #define MPATCH_ERR_NO_MEM -3
 #define MPATCH_ERR_CANNOT_BE_DECODED -2