Changeset 65 for trunk/Compiler/UAnalyzer.pas
- Timestamp:
- Jul 18, 2012, 10:57:48 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.