Changeset 65 for trunk/Compiler
- Timestamp:
 - Jul 18, 2012, 10:57:48 PM (13 years ago)
 - Location:
 - trunk/Compiler
 - Files:
 - 
      
- 2 edited
 
- 
          
  Target/Delphi/UProducerPascal.pas (modified) (1 diff)
 - 
          
  UAnalyzer.pas (modified) (3 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/Compiler/Target/Delphi/UProducerPascal.pas
r63 r65 102 102 EmitLn('program ' + Name + ';'); 103 103 EmitLn; 104 E nitLn('{$APPTYPE Console}');104 EmitLn('{$APPTYPE Console}'); 105 105 EmitLn; 106 106 GenerateUses(UsedModules);  - 
      
trunk/Compiler/UAnalyzer.pas
r62 r65 45 45 CurrentChar: Char; 46 46 TokenCodePosition: TPoint; 47 LineEndingChar: Char; 47 48 procedure GetNextToken; 48 49 public … … 125 126 begin 126 127 Tokens := TObjectList.Create; 128 {$IFDEF windows} 129 LineEndingChar := LineEnding[1]; 130 {$ELSE} 131 LineEndingChar := LineEnding; 132 {$ENDIF} 127 133 end; 128 134 … … 374 380 // Update cursor position 375 381 Inc(CodePosition.X); 376 if (CurrentChar = LineEnding [1]) then begin382 if (CurrentChar = LineEndingChar) then begin 377 383 CodePosition.X := 0; 378 384 Inc(CodePosition.Y);  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  ![(please configure the [header_logo] section in trac.ini)](/Transpascal/chrome/site/your_project_logo.png)