Changeset 338
- Timestamp:
- 05/03/07 18:22:21 (2 years ago)
- Files:
-
- trunk/tioport/DModWriter.d (modified) (1 diff)
- trunk/tioport/Parts.d (modified) (1 diff)
- trunk/tioport/tioport.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tioport/DModWriter.d
r309 r338 676 676 w.write(p.mModifiers.getString()); 677 677 w.write(p.mReturnType.getString()); 678 w.write(p.mName); 678 679 // probably write another name for the method, 680 // this will make it possible to exchange it with a 681 // method decl from the mixin 682 char[] name = p.mName; 683 if( name in p.mModule.mExchangeFuncs ){ 684 name = p.mModule.mExchangeFuncs[ name ]; 685 } 686 w.write(name); 687 679 688 w.write("("); 680 689 bool first = true; trunk/tioport/Parts.d
r324 r338 358 358 bool mIsStub; // stubs are not written to D targets. 359 359 bool mIsNowrite; // Do not write any output file for this module. 360 361 char[][ char[] ] mExchangeFuncs; 360 362 361 363 public this(){ trunk/tioport/tioport.d
r312 r338 189 189 if (e.hasAttribute("stub") && e.getAttribute("stub") == "true") { 190 190 mod.mIsStub = true; 191 } 192 193 foreach (Element xch; e.getChilds( "exchange" )) { 194 char[] funcname = xch.getAttribute( "funcname" ); 195 char[] text = xch.getAttribute( "text" ); 196 mod.mExchangeFuncs[ funcname.dup ] = text.dup; 191 197 } 192 198
