on master help sign in
Replace while(1) with for(;;), to make it clear they are infinite loops
710d90cNeil Mitchell
cbits/hexml.c+2−2
@@ -367,7 +367,7 @@ static inline str parse_attrval(document* d)
367static inline str parse_attributes(document* d)
367static inline str parse_attributes(document* d)
368{
368{
369 int start = d->attrs.used;
369 int start = d->attrs.used;
370− while (1)
370+ for (;;)
371 {
371 {
372 trim(d);
372 trim(d);
373 str name = parse_name(d);
373 str name = parse_name(d);
@@ -467,7 +467,7 @@ str parse_content(document* d)
467 return start_end(0, 0);
467 return start_end(0, 0);
468 }
468 }
469 skip(d, 2);
469 skip(d, 2);
470− while (1)
470+ for (;;)
471 {
471 {
472 if (!find(d, '>'))
472 if (!find(d, '>'))
473 {
473 {