|
@@ -12,7 +12,7 @@
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
**********************************************************************}
|
|
**********************************************************************}
|
|
-{ Translated to FPK pascal by Pierre Muller,
|
|
|
|
|
|
+{ Translated to FPC pascal by Pierre Muller,
|
|
without changing the exceptn.s file }
|
|
without changing the exceptn.s file }
|
|
Unit DPMIEXCP;
|
|
Unit DPMIEXCP;
|
|
|
|
|
|
@@ -173,13 +173,13 @@ end;
|
|
|
|
|
|
{ const newline = #13#10; }
|
|
{ const newline = #13#10; }
|
|
|
|
|
|
-procedure err(x : string);
|
|
|
|
|
|
+procedure err(const x : string);
|
|
begin
|
|
begin
|
|
write(stderr, x);
|
|
write(stderr, x);
|
|
flush(stderr);
|
|
flush(stderr);
|
|
end;
|
|
end;
|
|
|
|
|
|
-procedure errln(x : string);
|
|
|
|
|
|
+procedure errln(const x : string);
|
|
begin
|
|
begin
|
|
writeln(stderr, x);
|
|
writeln(stderr, x);
|
|
flush(stderr);
|
|
flush(stderr);
|
|
@@ -342,7 +342,7 @@ function do_faulting_finish_message : integer;
|
|
end
|
|
end
|
|
else
|
|
else
|
|
begin
|
|
begin
|
|
- write(stderr, 'FPK ',en);
|
|
|
|
|
|
+ write(stderr, 'FPC ',en);
|
|
err(' at eip=');
|
|
err(' at eip=');
|
|
itox(djgpp_exception_state^.__eip, 8);
|
|
itox(djgpp_exception_state^.__eip, 8);
|
|
end;
|
|
end;
|
|
@@ -619,7 +619,7 @@ const exception_level : longint = 0;
|
|
{ /* Not exception so continue OK */ }
|
|
{ /* Not exception so continue OK */ }
|
|
longjmp(pjmprec(djgpp_exception_state)^, djgpp_exception_state^.__eax);
|
|
longjmp(pjmprec(djgpp_exception_state)^, djgpp_exception_state^.__eax);
|
|
{/* User handler did not exit or longjmp, we must exit */}
|
|
{/* User handler did not exit or longjmp, we must exit */}
|
|
- err('FPK cannot continue from exception, exiting due to signal ');
|
|
|
|
|
|
+ err('FPC cannot continue from exception, exiting due to signal ');
|
|
itox(sig, 4);
|
|
itox(sig, 4);
|
|
errln('');
|
|
errln('');
|
|
end
|
|
end
|
|
@@ -627,7 +627,7 @@ const exception_level : longint = 0;
|
|
begin
|
|
begin
|
|
if exception_level>2 then
|
|
if exception_level>2 then
|
|
begin
|
|
begin
|
|
- errln('FPK triple exception, exiting !!! ');
|
|
|
|
|
|
+ errln('FPC triple exception, exiting !!! ');
|
|
if (exceptions_on) then
|
|
if (exceptions_on) then
|
|
djgpp_exception_toggle;
|
|
djgpp_exception_toggle;
|
|
asm
|
|
asm
|
|
@@ -635,7 +635,7 @@ const exception_level : longint = 0;
|
|
call ___exit
|
|
call ___exit
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
- err('FPK double exception, exiting due to signal ');
|
|
|
|
|
|
+ err('FPC double exception, exiting due to signal ');
|
|
itox(sig, 4);
|
|
itox(sig, 4);
|
|
errln('');
|
|
errln('');
|
|
end;
|
|
end;
|
|
@@ -677,11 +677,11 @@ procedure djgpp_exception_toggle;
|
|
{$ifdef SYSTEMDEBUG}
|
|
{$ifdef SYSTEMDEBUG}
|
|
if exceptions_on then
|
|
if exceptions_on then
|
|
begin
|
|
begin
|
|
- errln('Disabling FPK exceptions');
|
|
|
|
|
|
+ errln('Disabling FPC exceptions');
|
|
end
|
|
end
|
|
else
|
|
else
|
|
begin
|
|
begin
|
|
- errln('Enabling FPK exceptions');
|
|
|
|
|
|
+ errln('Enabling FPC exceptions');
|
|
end;
|
|
end;
|
|
{$endif SYSTEMDEBUG}
|
|
{$endif SYSTEMDEBUG}
|
|
{ toggle here to avoid infinite recursion }
|
|
{ toggle here to avoid infinite recursion }
|
|
@@ -939,7 +939,10 @@ djgpp_exception_setup;
|
|
end.
|
|
end.
|
|
{
|
|
{
|
|
$Log$
|
|
$Log$
|
|
- Revision 1.5 1998-07-08 12:02:19 carl
|
|
|
|
|
|
+ Revision 1.6 1998-08-04 13:31:32 pierre
|
|
|
|
+ * changed all FPK into FPC
|
|
|
|
+
|
|
|
|
+ Revision 1.5 1998/07/08 12:02:19 carl
|
|
* make it compiler under fpc v0995
|
|
* make it compiler under fpc v0995
|
|
|
|
|
|
Revision 1.4 1998/06/26 08:19:08 pierre
|
|
Revision 1.4 1998/06/26 08:19:08 pierre
|