adding re-include guards into lib/Support/reg*.h
authorArtyom Skrobov <Artyom.Skrobov@arm.com>
Thu, 12 Jun 2014 16:07:56 +0000 (16:07 +0000)
committerArtyom Skrobov <Artyom.Skrobov@arm.com>
Thu, 12 Jun 2014 16:07:56 +0000 (16:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210794 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/regcclass.h
lib/Support/regcname.h
lib/Support/regex2.h
lib/Support/regutils.h

index 2cea3e4e54068636f3307ea7ef8441541760c7a3..7fd66046cd878cef7ce5f3334225f1f5d9eb87db 100644 (file)
@@ -37,6 +37,9 @@
  *     @(#)cclass.h    8.3 (Berkeley) 3/20/94
  */
 
  *     @(#)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;
 /* character-class table */
 static struct cclass {
        const char *name;
@@ -68,3 +71,5 @@ static struct cclass {
                                        ""} ,
        { NULL,         0,              "" }
 };
                                        ""} ,
        { NULL,         0,              "" }
 };
+
+#endif
index 3c0bb248ffa78a69ff2a59dd6af8e6a81fc4ef64..891d25573e8c698528c29d18a8c4d98da8774234 100644 (file)
@@ -35,6 +35,9 @@
  *     @(#)cname.h     8.3 (Berkeley) 3/20/94
  */
 
  *     @(#)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;
 /* character-name table */
 static struct cname {
        const char *name;
@@ -137,3 +140,5 @@ static struct cname {
        { "DEL",                        '\177' },
        { NULL,                         0 }
 };
        { "DEL",                        '\177' },
        { NULL,                         0 }
 };
+
+#endif
index 21659c34449a23089dbf600e38e33f1742d5cdbc..d81bfbc97d02d3e1fd158b3d3a9351636c006fdf 100644 (file)
@@ -35,6 +35,9 @@
  *     @(#)regex2.h    8.4 (Berkeley) 3/20/94
  */
 
  *     @(#)regex2.h    8.4 (Berkeley) 3/20/94
  */
 
+#ifndef LLVM_SUPPORT_REGEX2_H
+#define LLVM_SUPPORT_REGEX2_H
+
 /*
  * internals of regex_t
  */
 /*
  * 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) == '_')
 /* misc utilities */
 #define        OUT     (CHAR_MAX+1)    /* a non-character value */
 #define        ISWORD(c)       (isalnum(c&0xff) || (c) == '_')
+
+#endif
index d0ee100a382b3432ce8c346b842adac9881e2a62..49a975cd2703e702904e1bf3ed2f2d96aeafddcf 100644 (file)
@@ -35,6 +35,9 @@
  *     @(#)utils.h     8.3 (Berkeley) 3/20/94
  */
 
  *     @(#)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;
 /* 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
 #ifdef USEBCOPY
 #define        memmove(d, s, c)        bcopy(s, d, c)
 #endif
+
+#endif