pike.git/
src/
pike_types.h
Branch:
Tag:
Non-build tags
All tags
No tags
2003-06-30
2003-06-30 17:00:14 by Martin Stjernholm <mast@lysator.liu.se>
03905bcb840978aba3a74848e7473c48de5fc5ee (
6
lines) (+
5
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Added CAR_TO_INT and CDR_TO_INT macros.
Rev: src/pike_types.h:1.88
2:
|| This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: pike_types.h,v 1.
87
2003/06/
12
18
:
57
:
16
nilsson
Exp $
+
|| $Id: pike_types.h,v 1.
88
2003/06/
30
17
:
00
:
14
mast
Exp $
*/ #ifndef PIKE_TYPES_H
32:
struct pike_type *cdr; };
+
#define CAR_TO_INT(TYPE) ((char *) (TYPE)->car - (char *) 0)
+
#define CDR_TO_INT(TYPE) ((char *) (TYPE)->cdr - (char *) 0)
+
#include "block_alloc_h.h" BLOCK_ALLOC(pike_type, n/a)