summaryrefslogtreecommitdiff
path: root/mcon/U/intsize.U
diff options
context:
space:
mode:
authorrmanfredi <rmanfredi@2592e710-e01b-42a5-8df0-11608a6cc53d>2012-02-10 15:55:14 +0000
committerrmanfredi <rmanfredi@2592e710-e01b-42a5-8df0-11608a6cc53d>2012-02-10 15:55:14 +0000
commitd91676e0527cad5d20112690192e5197a75a065b (patch)
treed9074a70e09fe111332487ccb6ec2f0cb638aeda /mcon/U/intsize.U
parenteebe137986ea89031cd490f6ec39c5617e9fd341 (diff)
Fixed charsize.U for cross-compiling, plus random cleanup.
git-svn-id: svn://svn.code.sf.net/p/dist/code/trunk/dist@135 2592e710-e01b-42a5-8df0-11608a6cc53d
Diffstat (limited to 'mcon/U/intsize.U')
-rw-r--r--mcon/U/intsize.U10
1 files changed, 5 insertions, 5 deletions
diff --git a/mcon/U/intsize.U b/mcon/U/intsize.U
index 362ee4d..5dcf6d3 100644
--- a/mcon/U/intsize.U
+++ b/mcon/U/intsize.U
@@ -39,19 +39,19 @@
?H:#define SHORTSIZE $shortsize
?H:.
?T:types t size var
-?LINT: set intsize longsize shortsize
+?LINT: set shortsize intsize longsize
: check for lengths of integral types
echo " "
types=''
+@if SHORTSIZE || shortsize
+types="$types short"
+@end
@if INTSIZE || intsize
types="$types int"
@end
@if LONGSIZE || longsize
types="$types long"
@end
-@if SHORTSIZE || shortsize
-types="$types short"
-@end
for t in $types; do
$echo $n "Checking to see how big your ${t}s are...$c" >&4
for size in 2 4 8 16 error; do
@@ -71,9 +71,9 @@ EOCP
error)
echo " cannot compute it." >&4
case $t in
+ short) dflt=2;;
int) dflt=4;;
long) dflt=4;;
- short) dflt=2;;
esac
rp="What is the size of the \"$t\" type (in bytes)?"
. ./myread