1 ?RCS: $Id: stdchar.U,v 3.0 1993/08/18 12:09:52 ram Exp $
3 ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
5 ?RCS: You may redistribute only under the terms of the Artistic Licence,
6 ?RCS: as specified in the README file that comes with the distribution.
7 ?RCS: You may reuse parts of this distribution only within the terms of
8 ?RCS: that same Artistic Licence; a copy of which may be found at the root
9 ?RCS: of the source tree for dist 3.0.
11 ?RCS: $Log: stdchar.U,v $
12 ?RCS: Revision 3.0 1993/08/18 12:09:52 ram
13 ?RCS: Baseline for dist 3.0 netwide release.
15 ?MAKE:stdchar: contains Findhdr cppstdin cppminus rm
16 ?MAKE: -pick add $@ %<
18 ?S: This variable conditionally defines STDCHAR to be the type of char
19 ?S: used in stdio.h. It has the values "unsigned char" or "char".
22 ?C: This symbol is defined to be the type of char used in stdio.h.
23 ?C: It has the values "unsigned char" or "char".
25 ?H:#define STDCHAR $stdchar /**/
28 : see what type of char stdio uses.
30 ?X: untangle the #include nest
31 echo '#include <stdio.h>' | $cppstdin $cppminus > stdioh
32 if $contains 'unsigned.*char.*_ptr;' stdioh >/dev/null 2>&1 ; then
33 echo "Your stdio uses unsigned chars." >&4
34 stdchar="unsigned char"
36 echo "Your stdio uses signed chars." >&4