[llvm] r210794 - adding re-include guards into lib/Support/reg*.h
Artyom Skrobov
Artyom.Skrobov at arm.com
Thu Jun 12 09:07:56 PDT 2014
Author: askrobov
Date: Thu Jun 12 11:07:56 2014
New Revision: 210794
URL: http://llvm.org/viewvc/llvm-project?rev=210794&view=rev
Log:
adding re-include guards into lib/Support/reg*.h
Modified:
llvm/trunk/lib/Support/regcclass.h
llvm/trunk/lib/Support/regcname.h
llvm/trunk/lib/Support/regex2.h
llvm/trunk/lib/Support/regutils.h
Modified: llvm/trunk/lib/Support/regcclass.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/regcclass.h?rev=210794&r1=210793&r2=210794&view=diff
==============================================================================
--- llvm/trunk/lib/Support/regcclass.h (original)
+++ llvm/trunk/lib/Support/regcclass.h Thu Jun 12 11:07:56 2014
@@ -37,6 +37,9 @@
* @(#)cclass.h 8.3 (Berkeley) 3/20/94
*/
+#ifndef LLVM_SUPPORT_REGCCLASS_H
+#define LLVM_SUPPORT_REGCCLASS_H
+
/* character-class table */
static struct cclass {
const char *name;
@@ -68,3 +71,5 @@ static struct cclass {
""} ,
{ NULL, 0, "" }
};
+
+#endif
Modified: llvm/trunk/lib/Support/regcname.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/regcname.h?rev=210794&r1=210793&r2=210794&view=diff
==============================================================================
--- llvm/trunk/lib/Support/regcname.h (original)
+++ llvm/trunk/lib/Support/regcname.h Thu Jun 12 11:07:56 2014
@@ -35,6 +35,9 @@
* @(#)cname.h 8.3 (Berkeley) 3/20/94
*/
+#ifndef LLVM_SUPPORT_REGCNAME_H
+#define LLVM_SUPPORT_REGCNAME_H
+
/* character-name table */
static struct cname {
const char *name;
@@ -137,3 +140,5 @@ static struct cname {
{ "DEL", '\177' },
{ NULL, 0 }
};
+
+#endif
Modified: llvm/trunk/lib/Support/regex2.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/regex2.h?rev=210794&r1=210793&r2=210794&view=diff
==============================================================================
--- llvm/trunk/lib/Support/regex2.h (original)
+++ llvm/trunk/lib/Support/regex2.h Thu Jun 12 11:07:56 2014
@@ -35,6 +35,9 @@
* @(#)regex2.h 8.4 (Berkeley) 3/20/94
*/
+#ifndef LLVM_SUPPORT_REGEX2_H
+#define LLVM_SUPPORT_REGEX2_H
+
/*
* internals of regex_t
*/
@@ -155,3 +158,5 @@ struct re_guts {
/* misc utilities */
#define OUT (CHAR_MAX+1) /* a non-character value */
#define ISWORD(c) (isalnum(c&0xff) || (c) == '_')
+
+#endif
Modified: llvm/trunk/lib/Support/regutils.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/regutils.h?rev=210794&r1=210793&r2=210794&view=diff
==============================================================================
--- llvm/trunk/lib/Support/regutils.h (original)
+++ llvm/trunk/lib/Support/regutils.h Thu Jun 12 11:07:56 2014
@@ -35,6 +35,9 @@
* @(#)utils.h 8.3 (Berkeley) 3/20/94
*/
+#ifndef LLVM_SUPPORT_REGUTILS_H
+#define LLVM_SUPPORT_REGUTILS_H
+
/* utility definitions */
#define NC (CHAR_MAX - CHAR_MIN + 1)
typedef unsigned char uch;
@@ -51,3 +54,5 @@ typedef unsigned char uch;
#ifdef USEBCOPY
#define memmove(d, s, c) bcopy(s, d, c)
#endif
+
+#endif
More information about the llvm-commits
mailing list