comparison src/context.cpp @ 79:091d3fe3db46

start coding on new config syntax
author carl
date Sat, 16 Jul 2005 20:12:20 -0700
parents 8487650c98ee
children fa47e1e401f1
comparison
equal deleted inserted replaced
78:b6beb282fd83 79:091d3fe3db46
559 if (!have) break; 559 if (!have) break;
560 if (have == token_rbrace) { 560 if (have == token_rbrace) {
561 break; // done 561 break; // done
562 } 562 }
563 else { 563 else {
564 me.add_tag(have); 564 me.add_tag(have); // base version
565 char buf[200];
566 snprintf(buf, sizeof(buf), "/%s", have);
567 me.add_tag(register_string(buf)); // leading /
568 snprintf(buf, sizeof(buf), "%s/", have);
569 me.add_tag(register_string(buf)); // trailing /
565 } 570 }
566 } 571 }
567 if (!tsa(tok, token_semi)) return false; 572 if (!tsa(tok, token_semi)) return false;
568 } 573 }
569 else if (have == token_host_limit) { 574 else if (have == token_host_limit) {