diff options
author | H.Merijn Brand <h.m.brand@xs4all.nl> | 2010-05-21 08:01:54 +0200 |
---|---|---|
committer | H.Merijn Brand <h.m.brand@xs4all.nl> | 2010-05-21 08:01:54 +0200 |
commit | 89c1d9143a1f7d921350481bd9e3f617a2988f9c (patch) | |
tree | ed66d25cbcb96f2397247e6af0ca51b821e961bb /Configure | |
parent | 23ae7f173577cbe2d62a4f7d64340f6457c75ee3 (diff) | |
download | perl-89c1d9143a1f7d921350481bd9e3f617a2988f9c.tar.gz |
The size of a character in C is per definition 1
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 38 |
1 files changed, 4 insertions, 34 deletions
@@ -30,7 +30,7 @@ # $Id: Head.U 6 2006-08-25 22:21:46Z rmanfredi $ # -# Generated on Mon Mar 29 10:12:43 CEST 2010 [metaconfig 3.5 PL0] +# Generated on Fri May 21 07:59:07 CEST 2010 [metaconfig 3.5 PL0] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ <<EOF @@ -18862,39 +18862,9 @@ esac : set the base revision baserev=5.0 -: check for length of character -echo " " -case "$charsize" in -'') - echo "Checking to see how big your characters are (hey, you never know)..." >&4 - $cat >try.c <<EOCP -#include <stdio.h> -#$i_stdlib I_STDLIB -#ifdef I_STDLIB -#include <stdlib.h> -#endif -int main() -{ - printf("%d\n", (int)sizeof(char)); - exit(0); -} -EOCP - set try - if eval $compile_ok; then - dflt=`$run ./try` - else - dflt='1' - echo "(I can't seem to compile the test program. Guessing...)" - fi - ;; -*) - dflt="$charsize" - ;; -esac -rp="What is the size of a character (in bytes)?" -. ./myread -charsize="$ans" -$rm_try +: length of character in bytes. Is always 1, otherwise it isnt C +: This used to be a test using sizeof +charsize=1 : Check for the number of bits in a character case "$charbits" in |