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

- Switched over the startup code and the library itself to use

constructor/destructor functions for initialization and cleanup
  purposes.


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14882 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-03-11 13:23:18 +00:00
parent 86b7e5c429
commit f289140266
21 changed files with 129 additions and 201 deletions

View File

@ -1,5 +1,5 @@
/*
* $Id: stdlib_stackcheck.c,v 1.4 2005-01-02 09:07:18 obarthel Exp $
* $Id: stdlib_stackcheck.c,v 1.5 2005-03-11 13:23:18 obarthel Exp $
*
* :ts=4
*
@ -115,8 +115,7 @@ UBYTE * __base;
/****************************************************************************/
int
__stk_init(void)
STK_CONSTRUCTOR(__stk_init)
{
struct Task * this_task = FindTask(NULL);
ULONG lower = (ULONG)this_task->tc_SPLower;
@ -133,5 +132,5 @@ __stk_init(void)
}
#endif /* __SASC */
return(OK);
CONSTRUCTOR_SUCCEED();
}