www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 449] New: frontend: html.h and complex_t.h are unprotected against multiple inclusion

http://d.puremagic.com/issues/show_bug.cgi?id=449

           Summary: frontend: html.h and complex_t.h are unprotected against
                    multiple inclusion
           Product: D
           Version: 0.170
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: patch
          Severity: trivial
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: thomas-dloop kuehne.cn


=== complex_t.h
==================================================================
--- complex_t.h (revision 2008)
+++ complex_t.h (local)
   -11,6 +11,9   
 /* Roll our own complex type for compilers that don't support complex
  */

+#ifndef DMD_COMPLEX_T_H
+#define DMD_COMPLEX_T_H
+
 struct complex_t
 {
     long double re;
   -68,4 +71,4   
     return x.im;
 }

-
+#endif
=== html.h
==================================================================
--- html.h      (revision 2008)
+++ html.h      (local)
   -8,6 +8,9   
 // in artistic.txt, or the GNU General Public License in gnu.txt.
 // See the included readme.txt for details.

+#ifndef DMD_HTML_H
+#define DMD_HTML_H
+
 struct OutBuffer;

 struct Html
   -36,3 +39,5   
     int charEntity();
     static int namedEntity(unsigned char *p, int length);
 };
+
+#endif


-- 
Oct 24 2006