diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2004-04-02 20:07:04 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2004-04-02 20:07:04 (GMT) |
commit | d6a5ccd7025b7a835ca14053320b3b0023042e22 (patch) | |
tree | 6faaf2d23e95ff98d8d9f1250ddb890d036806c7 /generic/tclInt.h | |
parent | 8dc115f0527fc2e8f8863a39a407a8fec572711f (diff) | |
download | tcl-d6a5ccd7025b7a835ca14053320b3b0023042e22.zip tcl-d6a5ccd7025b7a835ca14053320b3b0023042e22.tar.gz tcl-d6a5ccd7025b7a835ca14053320b3b0023042e22.tar.bz2 |
* generic/tclCompile.c:
* generic/tclInt.h: removed the macro TCL_ALIGN() from tclInt.h,
replaced by the static macro ALIGN() in tclCompile.c [Bug 926445]
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r-- | generic/tclInt.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h index d7c2b40..0628c0a 100644 --- a/generic/tclInt.h +++ b/generic/tclInt.h @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclInt.h,v 1.149 2004/04/01 15:07:20 dgp Exp $ + * RCS: @(#) $Id: tclInt.h,v 1.150 2004/04/02 20:07:06 msofer Exp $ */ #ifndef _TCLINT @@ -1410,19 +1410,6 @@ typedef struct Interp { #define UCHAR(c) ((unsigned char) (c)) -/* - * This macro is used to determine the offset needed to safely allocate any - * data structure in memory. Given a starting offset or size, it "rounds up" - * or "aligns" the offset to the next 8-byte boundary so that any data - * structure can be placed at the resulting offset without fear of an - * alignment error. - * - * WARNING!! DO NOT USE THIS MACRO TO ALIGN POINTERS: it will produce - * the wrong result on platforms that allocate addresses that are divisible - * by 4 or 2. Only use it for offsets or sizes. - */ - -#define TCL_ALIGN(x) (((int)(x) + 7) & ~7) /* * The following enum values are used to specify the runtime platform |