URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 816 |
Rev 826 |
/* For PR rtl-optimization/27735 */
|
/* For PR rtl-optimization/27735 */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2 -funswitch-loops" } */
|
/* { dg-options "-O2 -funswitch-loops" } */
|
|
|
void set_color(void);
|
void set_color(void);
|
void xml_colorize_line(unsigned int *p, int state)
|
void xml_colorize_line(unsigned int *p, int state)
|
{
|
{
|
int c;
|
int c;
|
switch(state)
|
switch(state)
|
{
|
{
|
case 1:
|
case 1:
|
goto parse_tag;
|
goto parse_tag;
|
case 2:
|
case 2:
|
goto parse_comment;
|
goto parse_comment;
|
}
|
}
|
|
|
for(;;)
|
for(;;)
|
{
|
{
|
c = *p;
|
c = *p;
|
if (c == '<' && state == 0)
|
if (c == '<' && state == 0)
|
{
|
{
|
parse_comment: ;
|
parse_comment: ;
|
while (*p != '\n')
|
while (*p != '\n')
|
state = 3;
|
state = 3;
|
parse_tag: ;
|
parse_tag: ;
|
while (*p != '\n')
|
while (*p != '\n')
|
state = 0;
|
state = 0;
|
set_color();
|
set_color();
|
}
|
}
|
else
|
else
|
p++;
|
p++;
|
}
|
}
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.