1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- Moved the Workbench console stream initialization into the

initialization code for the stdin/stdout/stderr streams and
  out of the program parameter setup.

- The current program name is now set up in the stdlib
  initialization function.

- Simplified the machine test code; moved the FPU check into
  the math initialization code.

- Added more safety checks to verify that file descriptor
  file handles are valid.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14864 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-03-07 11:16:43 +00:00
parent d370bd123b
commit a9c8cdc554
23 changed files with 558 additions and 445 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: stdlib_machine_test.c,v 1.2 2005-01-02 09:07:18 obarthel Exp $
* $Id: stdlib_machine_test.c,v 1.3 2005-03-07 11:16:43 obarthel Exp $
*
* :ts=4
*
@ -48,38 +48,14 @@ __machine_test(void)
#if defined(M68020)
{
const struct ExecBase * UNUSED ex = (const struct ExecBase *)SysBase;
#if defined(M68881_FLOATING_POINT_SUPPORT)
{
if(FLAG_IS_CLEAR(ex->AttnFlags,AFF_68881) || FLAG_IS_CLEAR(ex->AttnFlags,AFF_68020))
{
__show_error("This program requires a floating point processor and an MC68020 CPU, or better.");
goto out;
}
}
#endif /* M68881_FLOATING_POINT_SUPPORT */
if(FLAG_IS_CLEAR(ex->AttnFlags,AFF_68020))
if(FLAG_IS_CLEAR(((struct ExecBase *)SysBase)->AttnFlags,AFF_68020))
{
__show_error("This program requires an MC68020 CPU, or better.");
goto out;
}
}
#elif defined(M68881_FLOATING_POINT_SUPPORT)
{
const struct ExecBase * UNUSED ex = (const struct ExecBase *)SysBase;
if(FLAG_IS_CLEAR(ex->AttnFlags,AFF_68881))
{
__show_error("This program requires a floating point processor.");
goto out;
}
}
#endif /* M68881_FLOATING_POINT_SUPPORT */
#endif /* M68020 */
result = OK;