mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-24 23:11:35 +02:00
* win32 fixes
This commit is contained in:
parent
cb8aeb3fd6
commit
e98b8c7546
@ -137,6 +137,9 @@ function SearchObjectForSymbol(O: PSymbol): PObjectSymbol;
|
|||||||
procedure InitBrowserCol;
|
procedure InitBrowserCol;
|
||||||
procedure DoneBrowserCol;
|
procedure DoneBrowserCol;
|
||||||
|
|
||||||
|
function LoadBrowserCol(S: PStream): boolean;
|
||||||
|
procedure StoreBrowserCol(S: PStream);
|
||||||
|
procedure RegisterSymbols;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
@ -225,6 +228,7 @@ end;
|
|||||||
|
|
||||||
function TObjectSymbolCollection.At(Index: Sw_Integer): PObjectSymbol;
|
function TObjectSymbolCollection.At(Index: Sw_Integer): PObjectSymbol;
|
||||||
begin
|
begin
|
||||||
|
At:=nil;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TObjectSymbolCollection.Compare(Key1, Key2: Pointer): Sw_Integer;
|
function TObjectSymbolCollection.Compare(Key1, Key2: Pointer): Sw_Integer;
|
||||||
@ -322,6 +326,7 @@ end;
|
|||||||
|
|
||||||
function TObjectSymbol.GetName: string;
|
function TObjectSymbol.GetName: string;
|
||||||
begin
|
begin
|
||||||
|
GetName:='';
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TObjectSymbol.GetDescendantCount: sw_integer;
|
function TObjectSymbol.GetDescendantCount: sw_integer;
|
||||||
@ -358,6 +363,23 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
{*****************************************************************************
|
||||||
|
Load/Store
|
||||||
|
*****************************************************************************}
|
||||||
|
|
||||||
|
function LoadBrowserCol(S: PStream): boolean;
|
||||||
|
begin
|
||||||
|
LoadBrowserCol:=true;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure StoreBrowserCol(S: PStream);
|
||||||
|
begin
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure RegisterSymbols;
|
||||||
|
begin
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
{*****************************************************************************
|
{*****************************************************************************
|
||||||
Initialize
|
Initialize
|
||||||
@ -407,7 +429,10 @@ begin
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.2 1999-04-07 21:55:39 peter
|
Revision 1.3 1999-08-05 16:54:35 peter
|
||||||
|
* win32 fixes
|
||||||
|
|
||||||
|
Revision 1.2 1999/04/07 21:55:39 peter
|
||||||
+ object support for browser
|
+ object support for browser
|
||||||
* html help fixes
|
* html help fixes
|
||||||
* more desktop saving things
|
* more desktop saving things
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
Unit to redirect output and error to files
|
Unit to redirect output and error to files
|
||||||
|
|
||||||
Adapted from code donated to public domain by Schwartz Gabriel. 20/03/1993.
|
Adapted from code donated to public domain by Schwartz Gabriel 20/03/1993
|
||||||
|
|
||||||
See the file COPYING.FPC, included in this distribution,
|
See the file COPYING.FPC, included in this distribution,
|
||||||
for details about the copyright.
|
for details about the copyright.
|
||||||
@ -74,6 +74,12 @@ Uses
|
|||||||
{$endif linux}
|
{$endif linux}
|
||||||
dos;
|
dos;
|
||||||
|
|
||||||
|
var
|
||||||
|
FIN,FOUT,FERR : ^File;
|
||||||
|
RedirChangedOut,
|
||||||
|
RedirChangedIn : Boolean;
|
||||||
|
RedirChangedError : Boolean;
|
||||||
|
InRedirDisabled,OutRedirDisabled,ErrorRedirDisabled : Boolean;
|
||||||
|
|
||||||
{*****************************************************************************
|
{*****************************************************************************
|
||||||
Dos
|
Dos
|
||||||
@ -108,11 +114,6 @@ Var
|
|||||||
{$endif TP}
|
{$endif TP}
|
||||||
|
|
||||||
var
|
var
|
||||||
FIN,FOUT,FERR : ^File;
|
|
||||||
RedirChangedOut,
|
|
||||||
RedirChangedIn : Boolean;
|
|
||||||
RedirChangedError : Boolean;
|
|
||||||
InRedirDisabled,OutRedirDisabled,ErrorRedirDisabled : Boolean;
|
|
||||||
TempHOut, TempHIn,TempHError : longint;
|
TempHOut, TempHIn,TempHError : longint;
|
||||||
|
|
||||||
{ For linux the following functions exist
|
{ For linux the following functions exist
|
||||||
@ -536,33 +537,87 @@ end;
|
|||||||
Linux
|
Linux
|
||||||
*****************************************************************************}
|
*****************************************************************************}
|
||||||
|
|
||||||
function ExecuteRedir (Const ProgName, ComLine, RedirStdOut, RedirStdErr : String) : boolean;
|
function ExecuteRedir (Const ProgName, ComLine, RedirStdIn, RedirStdOut, RedirStdErr : String) : boolean;
|
||||||
begin
|
begin
|
||||||
ExecuteRedir:=false;
|
ExecuteRedir:=false;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function ChangeRedir(Const Redir : String; AppendToFile : Boolean) : Boolean;
|
function ChangeRedirOut(Const Redir : String; AppendToFile : Boolean) : Boolean;
|
||||||
begin
|
begin
|
||||||
ChangeRedir:=false;
|
ChangeRedirOut:=false;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure RestoreRedir;
|
|
||||||
|
procedure RestoreRedirOut;
|
||||||
begin
|
begin
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function ChangeErrorRedir(Const Redir : String; AppendToFile : Boolean) : Boolean;
|
|
||||||
|
procedure DisableRedirOut;
|
||||||
begin
|
begin
|
||||||
ChangeErrorRedir:=false;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure RestoreErrorRedir;
|
|
||||||
|
procedure EnableRedirOut;
|
||||||
begin
|
begin
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
function ChangeRedirIn(Const Redir : String) : Boolean;
|
||||||
|
begin
|
||||||
|
ChangeRedirIn:=false;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
procedure RestoreRedirIn;
|
||||||
|
begin
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
procedure DisableRedirIn;
|
||||||
|
begin
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
procedure EnableRedirIn;
|
||||||
|
begin
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
function ChangeRedirError(Const Redir : String; AppendToFile : Boolean) : Boolean;
|
||||||
|
begin
|
||||||
|
ChangeRedirError:=false;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
procedure RestoreRedirError;
|
||||||
|
begin
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
procedure DisableRedirError;
|
||||||
|
begin
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
procedure EnableRedirError;
|
||||||
|
begin
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
procedure RedirDisableAll;
|
||||||
|
begin
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
procedure RedirEnableAll;
|
||||||
|
begin
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
procedure InitRedir;
|
procedure InitRedir;
|
||||||
begin
|
begin
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{$endif not implemented}
|
{$endif not implemented}
|
||||||
|
|
||||||
|
|
||||||
@ -585,7 +640,10 @@ Begin
|
|||||||
End.
|
End.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.19 1999-08-03 20:22:36 peter
|
Revision 1.20 1999-08-05 16:54:36 peter
|
||||||
|
* win32 fixes
|
||||||
|
|
||||||
|
Revision 1.19 1999/08/03 20:22:36 peter
|
||||||
+ TTab acts now on Ctrl+Tab and Ctrl+Shift+Tab...
|
+ TTab acts now on Ctrl+Tab and Ctrl+Shift+Tab...
|
||||||
+ Desktop saving should work now
|
+ Desktop saving should work now
|
||||||
- History saved
|
- History saved
|
||||||
|
|||||||
@ -11,22 +11,11 @@
|
|||||||
|
|
||||||
**********************************************************************}
|
**********************************************************************}
|
||||||
|
|
||||||
{ --- Exclude debugger support --- }
|
{ --- Special OS settings --- }
|
||||||
{.$DEFINE NODEBUG}
|
|
||||||
|
|
||||||
{ --- Text lines end with LF only --- }
|
|
||||||
{$ifndef FPC}
|
|
||||||
{$define TPUNIXLF}
|
|
||||||
{$endif}
|
|
||||||
|
|
||||||
{ --- Include VESA support --- }
|
|
||||||
{$ifndef LINUX}
|
|
||||||
{$ifndef FV20}
|
|
||||||
{$define VESA}
|
|
||||||
{$endif}
|
|
||||||
{$endif}
|
|
||||||
|
|
||||||
{$ifdef TP}
|
{$ifdef TP}
|
||||||
|
{$define SUPPORTVESA}
|
||||||
|
{$define TPUNIXLF}
|
||||||
|
|
||||||
{$C FIXED PRELOAD PERMANENT}
|
{$C FIXED PRELOAD PERMANENT}
|
||||||
{
|
{
|
||||||
Without defining this I got almost always SEGMENT NOT PRESENT (exc 11)
|
Without defining this I got almost always SEGMENT NOT PRESENT (exc 11)
|
||||||
@ -36,8 +25,33 @@
|
|||||||
}
|
}
|
||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
{$ifndef debug}
|
{$ifdef Go32V2}
|
||||||
{$ifndef linux}
|
{$define SUPPORTVESA}
|
||||||
|
{$define SUPPORTREDIR}
|
||||||
|
{$endif}
|
||||||
|
|
||||||
|
{$ifdef Linux}
|
||||||
|
{$undef SUPPORTVESA}
|
||||||
|
{$define SUPPORTREDIR}
|
||||||
|
{$endif}
|
||||||
|
|
||||||
|
{$ifdef Win32}
|
||||||
|
{$undef SUPPORTVESA}
|
||||||
|
{$undef SUPPORTREDIR}
|
||||||
|
{$endif}
|
||||||
|
|
||||||
|
{ --- Exclude debugger support --- }
|
||||||
|
{.$DEFINE NODEBUG}
|
||||||
|
|
||||||
|
{ --- Include VESA support --- }
|
||||||
|
{$ifdef SUPPORTVESA}
|
||||||
|
{$ifndef FV20}
|
||||||
|
{$define VESA}
|
||||||
|
{$endif}
|
||||||
|
{$endif}
|
||||||
|
|
||||||
|
{$ifdef SUPPORTREDIR}
|
||||||
|
{$ifndef debug}
|
||||||
{$define redircompiler}
|
{$define redircompiler}
|
||||||
{$endif}
|
{$endif}
|
||||||
{$endif}
|
{$endif}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user