In metaconfig.git, the branch master has been updated

<http://perl5.git.perl.org/metaconfig.git/commitdiff/b91d7c3ef5946a9ee51f4860418cf16c6b459a6b?hp=3e6d782f8c2ac2b94d9f217b0a91989b144feca4>

- Log -----------------------------------------------------------------
commit b91d7c3ef5946a9ee51f4860418cf16c6b459a6b
Author: H.Merijn Brand <[email protected]>
Date:   Fri May 21 08:01:02 2010 +0200

    The size of a character in C is per definition 1
-----------------------------------------------------------------------

Summary of changes:
 U/compline/charsize.U |   38 ++++----------------------------------
 1 files changed, 4 insertions(+), 34 deletions(-)

diff --git a/U/compline/charsize.U b/U/compline/charsize.U
index 4f31168..102854f 100644
--- a/U/compline/charsize.U
+++ b/U/compline/charsize.U
@@ -15,7 +15,7 @@
 ?RCS: Revision 3.0  1993/08/18  12:05:34  ram
 ?RCS: Baseline for dist 3.0 netwide release.
 ?RCS:
-?MAKE:charsize charbits: cat rm_try Myread Compile run i_stdlib
+?MAKE:charsize charbits: cat rm_try Myread Compile run
 ?MAKE: -pick add $@ %<
 ?S:charsize:
 ?S:    This variable contains the value of the CHARSIZE symbol, which
@@ -37,39 +37,9 @@
 ?H:#define CHARBITS $charbits          /**/
 ?H:.
 ?F:!try
-: 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 metaconfig repository

Reply via email to