?RCS: $Id$ ?RCS: ?RCS: Copyright (c) 1991-1997, 2004-2006, 2012 Raphael Manfredi ?RCS: ?RCS: You may redistribute only under the terms of the Artistic License, ?RCS: as specified in the README file that comes with the distribution. ?RCS: You may reuse parts of this distribution only within the terms of ?RCS: that same Artistic License; a copy of which may be found at the root ?RCS: of the source tree for dist 4.0. ?RCS: ?MAKE:ptrsize: Assert Myread cat rm_try +cc +ccflags echo n c ?MAKE: -pick add $@ %< ?S:ptrsize: ?S: This variable contains the value of the PTRSIZE symbol, which ?S: indicates to the C program how many bytes there are in a pointer. ?S:. ?C:PTRSIZE: ?C: This symbol contains the size of a pointer, so that the C preprocessor ?C: can make decisions based on it. ?C:. ?H:#define PTRSIZE $ptrsize ?H:. ?T:size : check for length of pointer echo " " $echo $n "Checking to see how big your pointers are...$c" >&4 for size in 2 4 8 16 error; do $cat >try.c </dev/null 2>&1; then break; fi done case "$size" in error) echo " cannot compute it." >&4 dflt=4 rp="What is the size of a pointer type (in bytes)?" . ./myread ptrsize="$ans" ;; *) echo " $size bytes." >&4 ptrsize=$size ;; esac $rm_try