This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
The URL for the dist source repo changed
[metaconfig.git] / U / modified / stdchar.U
CommitLineData
91365186 1?RCS: $Id: stdchar.U 1 2006-08-24 12:32:52Z rmanfredi $
ccc9e63b 2?RCS:
91365186 3?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
41322e17 4?RCS:
ccc9e63b
JH
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
91365186 9?RCS: of the source tree for dist 4.0.
ccc9e63b
JH
10?RCS:
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.
14?RCS:
b1d873b4 15?MAKE:stdchar: contains Findhdr cppstdin cppminus rm
ccc9e63b
JH
16?MAKE: -pick add $@ %<
17?S:stdchar:
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".
20?S:.
21?C:STDCHAR:
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".
24?C:.
25?H:#define STDCHAR $stdchar /**/
26?H:.
91365186 27?F:!stdioh
ccc9e63b
JH
28: see what type of char stdio uses.
29echo " "
b1d873b4 30?X: untangle the #include nest
91365186 31echo '#include <stdio.h>' | $cppstdin $cppminus > stdioh
b1d873b4 32if $contains 'unsigned.*char.*_ptr;' stdioh >/dev/null 2>&1 ; then
ccc9e63b
JH
33 echo "Your stdio uses unsigned chars." >&4
34 stdchar="unsigned char"
35else
b1d873b4
JH
36 echo "Your stdio uses signed chars." >&4
37 stdchar="char"
ccc9e63b 38fi
91365186 39$rm -f stdioh
ccc9e63b 40