From 86b7e5c42974d1583f1784cd3770c335e5d3730c Mon Sep 17 00:00:00 2001 From: Olaf Barthel Date: Fri, 11 Mar 2005 11:35:31 +0000 Subject: [PATCH] - Introduced new constructor types and changed the overall priority order. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14880 87f5fb63-7c3d-0410-a384-fd976d0f7a62 --- library/changes | 3 +++ library/macros.h | 34 ++++++++++++++++++++++++++++------ 2 files changed, 31 insertions(+), 6 deletions(-) diff --git a/library/changes b/library/changes index 9b1e4cd..4de3648 100644 --- a/library/changes +++ b/library/changes @@ -59,6 +59,9 @@ - The stdlib constructor now performs the CPU/FPU compatibility test. +- Introduced new constructor types and changed the overall priority + order. + c.lib 1.189 (5.3.2005) diff --git a/library/macros.h b/library/macros.h index 3f410b0..6cd4dc7 100644 --- a/library/macros.h +++ b/library/macros.h @@ -1,5 +1,5 @@ /* - * $Id: macros.h,v 1.14 2005-03-10 13:58:13 obarthel Exp $ + * $Id: macros.h,v 1.15 2005-03-11 11:35:31 obarthel Exp $ * * :ts=4 * @@ -158,11 +158,33 @@ constructors and the user-supplied destructors before the library destructors. */ -#define CLIB_CONSTRUCTOR(name) CONSTRUCTOR(name, 500) -#define CLIB_DESTRUCTOR(name) DESTRUCTOR(name, 500) -#define PROFILE_CONSTRUCTOR(name) CONSTRUCTOR(name, 150) -#define PROFILE_DESTRUCTOR(name) DESTRUCTOR(name, 150) - +#define STDLIB_CONSTRUCTOR(name) CONSTRUCTOR(name, 100) +#define STDLIB_DESTRUCTOR(name) DESTRUCTOR(name, 100) + +#define STK_CONSTRUCTOR(name) CONSTRUCTOR(name, 110) +#define STK_DESTRUCTOR(name) DESTRUCTOR(name, 110) + +#define STDIO_CONSTRUCTOR(name) CONSTRUCTOR(name, 120) +#define STDIO_DESTRUCTOR(name) DESTRUCTOR(name, 120) + +#define FILE_CONSTRUCTOR(name) CONSTRUCTOR(name, 130) +#define FILE_DESTRUCTOR(name) DESTRUCTOR(name, 130) + +#define MATH_CONSTRUCTOR(name) CONSTRUCTOR(name, 140) +#define MATH_DESTRUCTOR(name) DESTRUCTOR(name, 140) + +#define SOCKET_CONSTRUCTOR(name) CONSTRUCTOR(name, 150) +#define SOCKET_DESTRUCTOR(name) DESTRUCTOR(name, 150) + +#define ARG_CONSTRUCTOR(name) CONSTRUCTOR(name, 160) +#define ARG_DESTRUCTOR(name) DESTRUCTOR(name, 160) + +#define CLIB_CONSTRUCTOR(name) CONSTRUCTOR(name, 170) +#define CLIB_DESTRUCTOR(name) DESTRUCTOR(name, 170) + +#define PROFILE_CONSTRUCTOR(name) CONSTRUCTOR(name, 180) +#define PROFILE_DESTRUCTOR(name) DESTRUCTOR(name, 180) + /****************************************************************************/ /* Magic macros for code profiling, SAS/C style. Normally, you would find