summaryrefslogtreecommitdiff
path: root/compiler/owbase.pas
diff options
context:
space:
mode:
authorflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2011-04-05 20:10:09 +0000
committerflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2011-04-05 20:10:09 +0000
commit2791d0047afc3b719f66a661caf3640c222cbdbe (patch)
tree35fc94b58e18bbb5cf9aa3e73cfe4dd04b583395 /compiler/owbase.pas
parentb7cc22ee5e2e9782ab195e299e648b1bff4e689f (diff)
downloadfpc-2791d0047afc3b719f66a661caf3640c222cbdbe.tar.gz
* patch by Mattias Gaertner to allow to override how the compiler reads source/ppu files, resolves #18740
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@17255 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/owbase.pas')
-rw-r--r--compiler/owbase.pas8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/owbase.pas b/compiler/owbase.pas
index 592d463aac..56558b2fa4 100644
--- a/compiler/owbase.pas
+++ b/compiler/owbase.pas
@@ -31,7 +31,7 @@ uses
type
tobjectwriter=class
private
- f : TCFileStream;
+ f : TCCustomFileStream;
opened : boolean;
buf : pchar;
bufidx : longword;
@@ -54,7 +54,7 @@ type
tobjectreader=class
private
- f : TCFileStream;
+ f : TCCustomFileStream;
opened : boolean;
buf : pchar;
ffilename : string;
@@ -108,7 +108,7 @@ end;
function tobjectwriter.createfile(const fn:string):boolean;
begin
createfile:=false;
- f:=TCFileStream.Create(fn,fmCreate);
+ f:=CFileStreamClass.Create(fn,fmCreate);
if CStreamError<>0 then
begin
Message1(exec_e_cant_create_objectfile,fn);
@@ -233,7 +233,7 @@ end;
function tobjectreader.openfile(const fn:string):boolean;
begin
openfile:=false;
- f:=TCFileStream.Create(fn,fmOpenRead);
+ f:=CFileStreamClass.Create(fn,fmOpenRead);
if CStreamError<>0 then
begin
Comment(V_Error,'Can''t open object file: '+fn);