Changeset 99 in dev for BasicCompiler_Common/Subroutine.cpp
- Timestamp:
- Apr 19, 2007, 3:09:55 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/Subroutine.cpp
r97 r99 659 659 MacroNum=0; 660 660 661 // 名前空間管理 662 vector<string> namespaceScopes; 663 661 664 i=-1; 662 665 while(1){ … … 679 682 } 680 683 684 if( basbuf[i] == 1 && basbuf[i+1] == ESC_NAMESPACE ){ 685 for(i+=2,i2=0;;i2++,i++){ 686 if( IsCommandDelimitation( basbuf[i] ) ){ 687 temporary[i2]=0; 688 break; 689 } 690 temporary[i2]=basbuf[i]; 691 } 692 namespaceScopes.push_back( temporary ); 693 694 continue; 695 } 696 else if( basbuf[i] == 1 && basbuf[i+1] == ESC_ENDNAMESPACE ){ 697 if( namespaceScopes.size() <= 0 ){ 698 SetError(12, "End Namespace", i ); 699 } 700 else{ 701 namespaceScopes.pop_back(); 702 } 703 704 i += 2; 705 continue; 706 } 707 681 708 if(basbuf[i]==1&&basbuf[i+1]==ESC_DECLARE){ 682 709 for(i+=2,i2=0;;i2++,i++){
Note:
See TracChangeset
for help on using the changeset viewer.