Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/auto/fmt
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-06-27 22:01:57 +0400
committerIgor Sysoev <igor@sysoev.ru>2004-06-27 22:01:57 +0400
commitc02473048cee372cb8644e1f2d566431781074d2 (patch)
tree689654cd7b37636279b5587ddd3b45ad6bddbd3c /auto/fmt
parentb1af9bbcabf1bdbe119366971a2d0f6c3f8f595d (diff)
nginx-0.0.7-2004-06-27-22:01:57 import
Diffstat (limited to 'auto/fmt')
-rw-r--r--auto/fmt/fmt10
-rw-r--r--auto/fmt/ptrfmt10
2 files changed, 10 insertions, 10 deletions
diff --git a/auto/fmt/fmt b/auto/fmt/fmt
index f1c9c5978..daca06900 100644
--- a/auto/fmt/fmt
+++ b/auto/fmt/fmt
@@ -11,15 +11,15 @@ do
cat << END > $NGX_AUTOTEST.c
-#include <stdio.h>
#include <sys/types.h>
#include <sys/time.h>
+#include <stdio.h>
#include <sys/resource.h>
$NGX_INTTYPES_H
$NGX_AUTO_CONFIG
int main() {
- printf("$fmt", ($ngx_type) $ngx_max_size);
+ printf("$fmt", ($ngx_type) $ngx_max_value);
return 0;
}
@@ -28,10 +28,10 @@ END
eval "$CC_WARN $CC_TEST_FLAGS -o $NGX_AUTOTEST $NGX_AUTOTEST.c \
>> $NGX_ERR 2>&1"
- max_size=`echo $ngx_max_size | sed -e "s/L*\$//"`
+ max_value=`echo $ngx_max_value | sed -e "s/L*\$//"`
if [ -x $NGX_AUTOTEST ]; then
- if [ "`$NGX_AUTOTEST`" = $max_size ]; then
+ if [ "`$NGX_AUTOTEST`" = $max_value ]; then
if [ $ngx_fmt_collect = yes ]; then
echo $ngx_n "$comma \"${fmt}\" is appropriate" $ngx_c
else
@@ -45,7 +45,7 @@ END
if [ $ngx_fmt != no ]; then
if [ $ngx_fmt_collect = yes ]; then
- eval "ngx_${ngx_bytes}_fmt=\"\${ngx_${ngx_bytes}_fmt} \$ngx_fmt\""
+ eval "ngx_${ngx_size}_fmt=\"\${ngx_${ngx_size}_fmt} \$ngx_fmt\""
comma=","
continue
else
diff --git a/auto/fmt/ptrfmt b/auto/fmt/ptrfmt
index d69867714..20f0d320c 100644
--- a/auto/fmt/ptrfmt
+++ b/auto/fmt/ptrfmt
@@ -13,7 +13,7 @@ do
cat << END > $NGX_AUTOTEST.c
int main() {
- printf("$fmt", ($ngx_type) $ngx_max_size);
+ printf("$fmt", ($ngx_type) $ngx_max_value);
return 0;
}
@@ -22,10 +22,10 @@ END
eval "$CC_WARN $CC_TEST_FLAGS -o $NGX_AUTOTEST $NGX_AUTOTEST.c \
>> $NGX_ERR 2>&1"
- max_size=`echo $ngx_max_size | sed -e "s/L*\$//"`
+ max_value=`echo $ngx_max_value | sed -e "s/L*\$//"`
if [ -x $NGX_AUTOTEST ]; then
- if [ "`$NGX_AUTOTEST`" = $max_size ]; then
+ if [ "`$NGX_AUTOTEST`" = $max_value ]; then
ngx_fmt=$fmt
fi
fi
@@ -49,8 +49,8 @@ if [ $ngx_fmt = no ]; then
fi
-if [ $ngx_ptr_bytes = 4 ]; then
- fmtX="%0`expr 2 \* $ngx_ptr_bytes`"
+if [ $ngx_ptr_size = 4 ]; then
+ fmtX="%0`expr 2 \* $ngx_ptr_size`"
else
fmtX="%"
fi