Changeset 32797 for lang/actionscript
- Timestamp:
- 04/25/09 13:20:14 (3 years ago)
- Location:
- lang/actionscript/flmml/trunk/src
- Files:
-
- 2 modified
-
com/txt_nifty/sketch/flmml/MML.as (modified) (4 diffs)
-
flmml.swf (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
lang/actionscript/flmml/trunk/src/com/txt_nifty/sketch/flmml/MML.as
r32278 r32797 523 523 524 524 // 09/04/03 arche [ADD] begin 525 protected function replaceMacro(macroTable:Array): void{525 protected function replaceMacro(macroTable:Array):Boolean { 526 526 for each(var macro:Object in macroTable){ 527 527 if(m_string.substr(m_letter, macro.id.length) == macro.id){ … … 560 560 m_letter = start - 1; 561 561 //trace(m_string.substring(m_letter)); 562 break; 563 } 564 } 562 return true; 563 } 564 } 565 return false; 565 566 } 566 567 // 09/04/03 arche [ADD] end … … 636 637 while(m_letter < last){ 637 638 if(c == "$"){ 638 if(m_string.substr(m_letter, id.length) == id){639 m_letter--; 640 m_string = remove(m_string, m_letter, m_letter + id.length);641 warning(MWarning.RECURSIVE_MACRO, id);642 }else{ 643 replaceMacro(macroTable); 644 }639 if(!replaceMacro(macroTable)){ 640 if(m_string.substr(m_letter, id.length) == id){ 641 m_letter--; 642 m_string = remove(m_string, m_letter, m_letter + id.length); 643 warning(MWarning.RECURSIVE_MACRO, id); 644 } 645 } 645 646 last = m_string.indexOf(";", m_letter); 646 647 } … … 649 650 var pos:int = 0; 650 651 for(; pos < macroTable.length; pos++){ 652 if(macroTable[pos].id == id){ 653 macroTable.splice(pos, 1); 654 pos--; 655 continue; 656 } 651 657 if(macroTable[pos].id.length < id.length){ 652 658 break;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)