Changeset 33 for trunk/Target/UTargetC.pas
- Timestamp:
- Feb 18, 2012, 11:08:44 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Target/UTargetC.pas
r32 r33 50 50 Result := 1; 51 51 if Optimization = coNormal then 52 while ((I + 1) <= Length(FSource )) and (FSource[I + 1] = C) do begin52 while ((I + 1) <= Length(FSourceCode)) and (FSourceCode[I + 1] = C) do begin 53 53 Inc(Result); 54 54 Inc(I) … … 58 58 begin 59 59 Indent := 0; 60 Output:= '';60 FTargetCode := ''; 61 61 62 62 AddLine('#include <stdio.h>'); … … 71 71 AddLine('Pos = 0;'); 72 72 I := 1; 73 while (I <= Length(FSource )) do begin74 case FSource [I] of73 while (I <= Length(FSourceCode)) do begin 74 case FSourceCode[I] of 75 75 '>': begin 76 76 Sum := CheckOccurence('>'); … … 119 119 with TStringList.Create do 120 120 try 121 Text := Output;121 Text := FTargetCode; 122 122 SaveToFile(CompiledFile); 123 123 finally
Note:
See TracChangeset
for help on using the changeset viewer.