comparison dmd2/html.c @ 1452:638d16625da2

LDC 2 compiles again.
author Robert Clipsham <robert@octarineparrot.com>
date Sat, 30 May 2009 17:23:32 +0100
parents f04dde6e882c
children
comparison
equal deleted inserted replaced
1423:42bd767ec5a4 1452:638d16625da2
1 1
2 // Copyright (c) 1999-2006 by Digital Mars 2 // Copyright (c) 1999-2009 by Digital Mars
3 // All Rights Reserved 3 // All Rights Reserved
4 // written by Walter Bright 4 // written by Walter Bright
5 // http://www.digitalmars.com 5 // http://www.digitalmars.com
6 // License for redistribution is by either the Artistic License 6 // License for redistribution is by either the Artistic License
7 // in artistic.txt, or the GNU General Public License in gnu.txt. 7 // in artistic.txt, or the GNU General Public License in gnu.txt.
105 case '<': 105 case '<':
106 if (p[1] == '!' && isCommentStart()) 106 if (p[1] == '!' && isCommentStart())
107 { // Comments start with <!-- 107 { // Comments start with <!--
108 scanComment(); 108 scanComment();
109 } 109 }
110 else if(p[1] == '!' && isCDATAStart()) 110 else if(p[1] == '!' && isCDATAStart())
111 { 111 {
112 scanCDATA(); 112 scanCDATA();
113 } 113 }
114 else if (p[1] == '/' && istagstart(*skipWhite(p + 2))) 114 else if (p[1] == '/' && istagstart(*skipWhite(p + 2)))
115 skipTag(); 115 skipTag();
116 else if (istagstart(*skipWhite(p + 1))) 116 else if (istagstart(*skipWhite(p + 1)))
117 skipTag(); 117 skipTag();
118 else 118 else
548 548
549 p++; 549 p++;
550 } 550 }
551 } 551 }
552 552
553
553 /******************************************** 554 /********************************************
554 * Convert an HTML character entity into a character. 555 * Convert an HTML character entity into a character.
555 * Forms are: 556 * Forms are:
556 * &name; named entity 557 * &name; named entity
557 * &#ddd; decimal 558 * &#ddd; decimal
714 return 2; 715 return 2;
715 716
716 return 0; 717 return 0;
717 } 718 }
718 719
720