Changeset 561 for CMT/HEAD/source/cmt_constituent.cxx
- Timestamp:
- Mar 8, 2011, 1:56:48 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/source/cmt_constituent.cxx
r459 r561 573 573 574 574 //---------------------------------------------------------- 575 void Constituent::show () const 575 void Constituent::show (ostream& out) const 576 //void Constituent::show () const 576 577 { 577 578 int i; … … 580 581 { 581 582 case Library: 582 cout << "library";583 out << "library"; 583 584 break; 584 585 case Application: 585 cout << "application";586 out << "application"; 586 587 break; 587 588 case Document: 588 cout << "document " << generator;589 out << "document " << generator; 589 590 break; 590 591 } 591 592 592 cout << " " << name;593 out << " " << name; 593 594 594 595 if (group != 0) 595 596 { 596 cout << " -group=" << group->name ();597 out << " -group=" << group->name (); 597 598 } 598 599 599 600 if (suffix != 0) 600 601 { 601 cout << " -suffix=" << suffix;602 out << " -suffix=" << suffix; 602 603 } 603 604 604 605 if ((type == Application) && need_check) 605 606 { 606 cout << " -check";607 out << " -check"; 607 608 } 608 609 609 610 if ((type == Library) && no_share) 610 611 { 611 cout << " -no_share";612 out << " -no_share"; 612 613 } 613 614 614 615 if ((type == Library) && no_static) 615 616 { 616 cout << " -no_static";617 out << " -no_static"; 617 618 } 618 619 619 620 if ((type == Library) && build_triggers) 620 621 { 621 cout << " -triggers";622 out << " -triggers"; 622 623 } 623 624 624 625 if (has_target_tag) 625 626 { 626 cout << " -target_tag";627 out << " -target_tag"; 627 628 } 628 629 … … 631 632 const cmt_string& import_name = imports[i]; 632 633 633 cout << " -import=" << import_name;634 out << " -import=" << import_name; 634 635 } 635 636 … … 638 639 const cmt_string& exclude = excludes[i]; 639 640 640 cout << " -x=" << exclude;641 out << " -x=" << exclude; 641 642 } 642 643 … … 645 646 const cmt_string& select = selects[i]; 646 647 647 cout << " -k=" << select;648 out << " -k=" << select; 648 649 } 649 650 … … 652 653 const cmt_string& module_name = modules[i]; 653 654 654 cout << " " << module_name;655 out << " " << module_name; 655 656 } 656 657 … … 659 660 const Variable& v = variables[i]; 660 661 661 cout << " " << v.name << "=" << v.value; 662 } 663 664 cout << endl; 665 } 662 // out << " " << v.name << "=" << v.value; 663 // quote (up to) 2 times as split is applied 2 times 664 // - before action 665 // - in parse 666 cmt_string qvalue (CmtSystem::quote (v.value, " \t")); 667 out << " " << v.name << "=" 668 << (qvalue == v.value ? v.value : CmtSystem::quote (qvalue, " \t")); 669 // << CmtSystem::quote (CmtSystem::quote (v.value, " \t"), " \t"); 670 } 671 672 out << endl; 673 }
Note: See TracChangeset
for help on using the changeset viewer.