* formatting

git-svn-id: trunk@10865 -
This commit is contained in:
florian 2008-05-02 18:41:40 +00:00
parent 0167a576f0
commit e165741d56

View File

@ -49,8 +49,8 @@ var
Begin Begin
Case t.mode Of Case t.mode Of
fmInput : Flags:=$10000; fmInput : Flags:=$10000;
fmOutput : Flags:=$11001; fmOutput : Flags:=$11001;
fmAppend : Flags:=$10101; fmAppend : Flags:=$10101;
else else
begin begin
InOutRes:=102; InOutRes:=102;
@ -65,9 +65,9 @@ Begin
else else
begin begin
t.InOutFunc:=@FileWriteFunc; t.InOutFunc:=@FileWriteFunc;
{ Only install flushing if its a NOT a file, and only check if there { Only install flushing if its a NOT a file, and only check if there
was no error opening the file, becuase else we always get a bad was no error opening the file, becuase else we always get a bad
file handle error 6 (PFV) } file handle error 6 (PFV) }
if (InOutRes=0) and if (InOutRes=0) and
Do_Isdevice(t.Handle) then Do_Isdevice(t.Handle) then
t.FlushFunc:=@FileWriteFunc; t.FlushFunc:=@FileWriteFunc;
@ -110,7 +110,7 @@ Begin
if InOutRes<>0 then if InOutRes<>0 then
Exit; Exit;
case TextRec(t).mode of case TextRec(t).mode of
fmInput,fmOutPut,fmAppend: fmInput,fmOutput,fmAppend:
Begin Begin
{ Write pending buffer } { Write pending buffer }
If Textrec(t).Mode=fmoutput then If Textrec(t).Mode=fmoutput then
@ -754,7 +754,7 @@ begin
dec(ordinal,minvalue); dec(ordinal,minvalue);
end; end;
{Get the address of the string.} {Get the address of the string.}
{$ifdef FPC_REQUIRES_PROPER_ALIGNMENT} {$ifdef FPC_REQUIRES_PROPER_ALIGNMENT}
p:=Pshortstring((PPpointer(ord2strindex+align(sizeof(longint), sizeof(ptrint)))+ordinal)^); p:=Pshortstring((PPpointer(ord2strindex+align(sizeof(longint), sizeof(ptrint)))+ordinal)^);
{$else} {$else}
p:=Pshortstring((PPpointer(ord2strindex+sizeof(longint))+ordinal)^); p:=Pshortstring((PPpointer(ord2strindex+sizeof(longint))+ordinal)^);