In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/89c1d9143a1f7d921350481bd9e3f617a2988f9c?hp=23ae7f173577cbe2d62a4f7d64340f6457c75ee3>
- Log ----------------------------------------------------------------- commit 89c1d9143a1f7d921350481bd9e3f617a2988f9c Author: H.Merijn Brand <[email protected]> Date: Fri May 21 08:01:54 2010 +0200 The size of a character in C is per definition 1 ----------------------------------------------------------------------- Summary of changes: Configure | 38 ++++---------------------------------- 1 files changed, 4 insertions(+), 34 deletions(-) diff --git a/Configure b/Configure index f4d9cfb..60eac75 100755 --- a/Configure +++ b/Configure @@ -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 [email protected]) 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 -- Perl5 Master Repository
