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

- Turns out that the constructor/destructor calling sequence

was still wrongish for the OS4 library. So I had to change
  it *again*. Which probably means that the 68k library will
  need further changes...


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14894 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-03-20 11:18:06 +00:00
parent cd10dc9a1a
commit c471c50784
9 changed files with 43 additions and 39 deletions

View File

@ -1,5 +1,5 @@
#
# $Id: GNUmakefile.os4,v 1.45 2005-03-19 11:06:57 obarthel Exp $
# $Id: GNUmakefile.os4,v 1.46 2005-03-20 11:18:06 obarthel Exp $
#
# :ts=8
#
@ -111,9 +111,10 @@ WARNINGS = \
# -Wconversion -Wshadow
INCLUDES = -Iinclude -I. -I$(SDK_INCLUDE)
OPTIONS = -D__THREAD_SAFE -DNDEBUG -DUSE_64_BIT_INTS -D__USE_INLINE__ -Wa,-mregnames -fno-common
OPTIMIZE = -O -fomit-frame-pointer -funroll-loops
#DEBUG = -g
#OPTIONS = -D__THREAD_SAFE -DNDEBUG -DUSE_64_BIT_INTS -D__USE_INLINE__ -Wa,-mregnames -fno-common
OPTIONS = -DNDEBUG -DUSE_64_BIT_INTS -D__USE_INLINE__ -Wa,-mregnames -fno-common
OPTIMIZE = -O3 -fomit-frame-pointer -funroll-loops
#DEBUG = -ggdb
CFLAGS = $(WARNINGS) $(OPTIMIZE) $(DEBUG) $(OPTIONS) $(CODE_TYPE) $(INCLUDES)

View File

@ -113,6 +113,11 @@
data structures possibly not being in a well-defined and
initialized state.
- Turns out that the constructor/destructor calling sequence
was still wrongish for the OS4 library. So I had to change
it *again*. Which probably means that the 68k library will
need further changes...
c.lib 1.189 (5.3.2005)

View File

@ -1,5 +1,5 @@
/*
* $Id: stdio_protos.h,v 1.15 2005-03-19 11:06:57 obarthel Exp $
* $Id: stdio_protos.h,v 1.16 2005-03-20 11:18:06 obarthel Exp $
*
* :ts=4
*
@ -54,6 +54,12 @@
/****************************************************************************/
#ifndef _STDLIB_MEMORY_H
#include "stdlib_memory.h"
#endif /* _STDLIB_MEMORY_H */
/****************************************************************************/
#ifndef _STDIO_HEADERS_H
/* Forward declarations */

View File

@ -1,5 +1,5 @@
/*
* $Id: stdlib_constructor.h,v 1.1 2005-03-18 12:38:23 obarthel Exp $
* $Id: stdlib_constructor.h,v 1.2 2005-03-20 11:18:06 obarthel Exp $
*
* :ts=4
*
@ -112,32 +112,32 @@
constructors and the user-supplied destructors before the library
destructors. */
#define STDLIB_CONSTRUCTOR(name) CONSTRUCTOR(name, 1)
#define STDLIB_DESTRUCTOR(name) DESTRUCTOR(name, 1)
#define STDLIB_CONSTRUCTOR(name) CONSTRUCTOR(name, 9)
#define STDLIB_DESTRUCTOR(name) DESTRUCTOR(name, 9)
#define STK_CONSTRUCTOR(name) CONSTRUCTOR(name, 2)
#define STK_DESTRUCTOR(name) DESTRUCTOR(name, 2)
#define STK_CONSTRUCTOR(name) CONSTRUCTOR(name, 8)
#define STK_DESTRUCTOR(name) DESTRUCTOR(name, 8)
#define STDIO_CONSTRUCTOR(name) CONSTRUCTOR(name, 3)
#define STDIO_DESTRUCTOR(name) DESTRUCTOR(name, 3)
#define STDIO_CONSTRUCTOR(name) CONSTRUCTOR(name, 7)
#define STDIO_DESTRUCTOR(name) DESTRUCTOR(name, 7)
#define FILE_CONSTRUCTOR(name) CONSTRUCTOR(name, 4)
#define FILE_DESTRUCTOR(name) DESTRUCTOR(name, 4)
#define FILE_CONSTRUCTOR(name) CONSTRUCTOR(name, 6)
#define FILE_DESTRUCTOR(name) DESTRUCTOR(name, 6)
#define MATH_CONSTRUCTOR(name) CONSTRUCTOR(name, 5)
#define MATH_DESTRUCTOR(name) DESTRUCTOR(name, 5)
#define SOCKET_CONSTRUCTOR(name) CONSTRUCTOR(name, 6)
#define SOCKET_DESTRUCTOR(name) DESTRUCTOR(name, 6)
#define SOCKET_CONSTRUCTOR(name) CONSTRUCTOR(name, 4)
#define SOCKET_DESTRUCTOR(name) DESTRUCTOR(name, 4)
#define ARG_CONSTRUCTOR(name) CONSTRUCTOR(name, 7)
#define ARG_DESTRUCTOR(name) DESTRUCTOR(name, 7)
#define ARG_CONSTRUCTOR(name) CONSTRUCTOR(name, 3)
#define ARG_DESTRUCTOR(name) DESTRUCTOR(name, 3)
#define CLIB_CONSTRUCTOR(name) CONSTRUCTOR(name, 8)
#define CLIB_DESTRUCTOR(name) DESTRUCTOR(name, 8)
#define CLIB_CONSTRUCTOR(name) CONSTRUCTOR(name, 2)
#define CLIB_DESTRUCTOR(name) DESTRUCTOR(name, 2)
#define PROFILE_CONSTRUCTOR(name) CONSTRUCTOR(name, 9)
#define PROFILE_DESTRUCTOR(name) DESTRUCTOR(name, 9)
#define PROFILE_CONSTRUCTOR(name) CONSTRUCTOR(name, 1)
#define PROFILE_DESTRUCTOR(name) DESTRUCTOR(name, 1)
/****************************************************************************/

View File

@ -1,5 +1,5 @@
/*
* $Id: stdlib_free.c,v 1.9 2005-03-18 12:38:24 obarthel Exp $
* $Id: stdlib_free.c,v 1.10 2005-03-20 11:18:06 obarthel Exp $
*
* :ts=4
*
@ -52,7 +52,7 @@
/****************************************************************************/
STATIC CHAR
STATIC char
get_hex_char(int n)
{
char result;

View File

@ -1,5 +1,5 @@
/*
* $Id: stdlib_main.c,v 1.19 2005-03-19 11:06:57 obarthel Exp $
* $Id: stdlib_main.c,v 1.20 2005-03-20 11:18:06 obarthel Exp $
*
* :ts=4
*
@ -31,10 +31,6 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
/*#define DEBUG*/
/****************************************************************************/
#ifndef EXEC_EXECBASE_H
#include <exec/execbase.h>
#endif /* EXEC_EXECBASE_H */

View File

@ -1,5 +1,5 @@
/*
* $Id: stdlib_memory.h,v 1.1 2005-03-18 12:38:24 obarthel Exp $
* $Id: stdlib_memory.h,v 1.2 2005-03-20 11:18:06 obarthel Exp $
*
* :ts=4
*
@ -40,7 +40,7 @@
* Uncomment this to build a library which has the memory debugging features
* enabled.
*/
/*#define __MEM_DEBUG */
/*#define __MEM_DEBUG*/
/****************************************************************************/

View File

@ -1,5 +1,5 @@
/*
* $Id: stdlib_protos.h,v 1.13 2005-03-18 12:38:24 obarthel Exp $
* $Id: stdlib_protos.h,v 1.14 2005-03-20 11:18:06 obarthel Exp $
*
* :ts=4
*
@ -49,11 +49,7 @@
/****************************************************************************/
#ifndef _STDLIB_MEMORY_H
/* Forward declarations */
struct MemoryNode;
struct MemoryTree;
#include "stdlib_memory.h"
#endif /* _STDLIB_MEMORY_H */
/****************************************************************************/

View File

@ -1,5 +1,5 @@
/*
* $Id: stdlib_red_black.c,v 1.4 2005-03-18 12:38:24 obarthel Exp $
* $Id: stdlib_red_black.c,v 1.5 2005-03-20 11:18:06 obarthel Exp $
*
* :ts=4
*
@ -130,7 +130,7 @@ rotate_right (struct MemoryTree * tree, struct MemoryNode * y)
/****************************************************************************/
STATIC STRUCT MemoryNode *
STATIC struct MemoryNode *
get_successor (struct MemoryTree * tree, struct MemoryNode * x)
{
struct MemoryNode *nil = &tree->mt_NullNode;