Changeset 1129
- Timestamp:
- 10/05/07 23:29:53 (1 year ago)
- Files:
-
- 1.8.3/branches/gc/CHANGES.182 (modified) (3 diffs)
- 1.8.3/branches/gc/CHANGES.183 (modified) (2 diffs)
- 1.8.3/branches/gc/MANIFEST (modified) (2 diffs)
- 1.8.3/branches/gc/Makefile.in (modified) (3 diffs)
- 1.8.3/branches/gc/Patchlevel (modified) (1 diff)
- 1.8.3/branches/gc/UPGRADING (modified) (1 diff)
- 1.8.3/branches/gc/config.h.in (modified) (2 diffs)
- 1.8.3/branches/gc/configure (modified) (323 diffs)
- 1.8.3/branches/gc/configure.in (modified) (2 diffs)
- 1.8.3/branches/gc/game/txt/hlp/penncmd.hlp (modified) (4 diffs)
- 1.8.3/branches/gc/game/txt/hlp/pennfunc.hlp (modified) (7 diffs)
- 1.8.3/branches/gc/game/txt/hlp/pennv182.hlp (modified) (3 diffs)
- 1.8.3/branches/gc/game/txt/hlp/pennv183.hlp (modified) (6 diffs)
- 1.8.3/branches/gc/game/txt/hlp/pennvOLD.hlp (modified) (1 diff)
- 1.8.3/branches/gc/hdrs/access.h (modified) (3 diffs)
- 1.8.3/branches/gc/hdrs/ansi.h (modified) (6 diffs)
- 1.8.3/branches/gc/hdrs/extchat.h (modified) (1 diff)
- 1.8.3/branches/gc/hdrs/externs.h (modified) (5 diffs)
- 1.8.3/branches/gc/hdrs/extmail.h (modified) (1 diff)
- 1.8.3/branches/gc/hdrs/flags.h (modified) (1 diff)
- 1.8.3/branches/gc/hdrs/htab.h (modified) (1 diff)
- 1.8.3/branches/gc/hdrs/mushtype.h (modified) (1 diff)
- 1.8.3/branches/gc/hdrs/switches.h (modified) (1 diff)
- 1.8.3/branches/gc/hdrs/version.h (modified) (1 diff)
- 1.8.3/branches/gc/options.h.dist (modified) (1 diff)
- 1.8.3/branches/gc/src/Makefile.in (modified) (1 diff)
- 1.8.3/branches/gc/src/access.c (modified) (19 diffs)
- 1.8.3/branches/gc/src/atr_tab.c (modified) (1 diff)
- 1.8.3/branches/gc/src/attrib.c (modified) (1 diff)
- 1.8.3/branches/gc/src/bsd.c (modified) (26 diffs)
- 1.8.3/branches/gc/src/cmds.c (modified) (1 diff)
- 1.8.3/branches/gc/src/command.c (modified) (2 diffs)
- 1.8.3/branches/gc/src/conf.c (modified) (1 diff)
- 1.8.3/branches/gc/src/db.c (modified) (4 diffs)
- 1.8.3/branches/gc/src/extchat.c (modified) (1 diff)
- 1.8.3/branches/gc/src/extmail.c (modified) (8 diffs)
- 1.8.3/branches/gc/src/flags.c (modified) (4 diffs)
- 1.8.3/branches/gc/src/funcrypt.c (modified) (3 diffs)
- 1.8.3/branches/gc/src/function.c (modified) (5 diffs)
- 1.8.3/branches/gc/src/funlist.c (modified) (10 diffs)
- 1.8.3/branches/gc/src/funmath.c (modified) (2 diffs)
- 1.8.3/branches/gc/src/funmisc.c (modified) (1 diff)
- 1.8.3/branches/gc/src/funstr.c (modified) (11 diffs)
- 1.8.3/branches/gc/src/game.c (modified) (15 diffs)
- 1.8.3/branches/gc/src/help.c (modified) (1 diff)
- 1.8.3/branches/gc/src/htab.c (modified) (17 diffs)
- 1.8.3/branches/gc/src/ident.c (modified) (1 diff)
- 1.8.3/branches/gc/src/info_master.c (modified) (8 diffs)
- 1.8.3/branches/gc/src/info_slave.c (modified) (13 diffs)
- 1.8.3/branches/gc/src/local.dst (modified) (1 diff)
- 1.8.3/branches/gc/src/lock.c (modified) (1 diff)
- 1.8.3/branches/gc/src/log.c (modified) (9 diffs)
- 1.8.3/branches/gc/src/look.c (modified) (3 diffs)
- 1.8.3/branches/gc/src/malias.c (modified) (1 diff)
- 1.8.3/branches/gc/src/markup.c (modified) (55 diffs)
- 1.8.3/branches/gc/src/mymalloc.c (modified) (3 diffs)
- 1.8.3/branches/gc/src/notify.c (modified) (12 diffs)
- 1.8.3/branches/gc/src/plyrlist.c (modified) (1 diff)
- 1.8.3/branches/gc/src/services.c (modified) (2 diffs)
- 1.8.3/branches/gc/src/set.c (modified) (1 diff)
- 1.8.3/branches/gc/src/sort.c (modified) (17 diffs)
- 1.8.3/branches/gc/src/speech.c (modified) (8 diffs)
- 1.8.3/branches/gc/src/sql.c (modified) (9 diffs)
- 1.8.3/branches/gc/src/strutil.c (modified) (1 diff)
- 1.8.3/branches/gc/src/tables.c (modified) (2 diffs)
- 1.8.3/branches/gc/src/utils.c (modified) (8 diffs)
- 1.8.3/branches/gc/src/wait.c (modified) (3 diffs)
- 1.8.3/branches/gc/src/warnings.c (modified) (3 diffs)
- 1.8.3/branches/gc/src/wild.c (modified) (1 diff)
- 1.8.3/branches/gc/src/wiz.c (modified) (5 diffs)
- 1.8.3/branches/gc/test/README (copied) (copied from 1.8.3/branches/devel/test/README)
- 1.8.3/branches/gc/test/TestHarness.pm (modified) (4 diffs)
- 1.8.3/branches/gc/test/alltests.pl (deleted)
- 1.8.3/branches/gc/test/alltests.sh.in (copied) (copied from 1.8.3/branches/devel/test/alltests.sh.in)
- 1.8.3/branches/gc/test/runtest.pl (copied) (copied from 1.8.3/branches/devel/test/runtest.pl)
- 1.8.3/branches/gc/test/testalias.pl (modified) (1 diff)
- 1.8.3/branches/gc/test/testatree.pl (modified) (2 diffs)
- 1.8.3/branches/gc/test/testdecompose.pl (modified) (1 diff)
- 1.8.3/branches/gc/test/testdigest.pl (modified) (1 diff)
- 1.8.3/branches/gc/test/testdistxd.pl (modified) (1 diff)
- 1.8.3/branches/gc/test/testfirstof.pl (modified) (1 diff)
- 1.8.3/branches/gc/test/testgrep.pl (modified) (1 diff)
- 1.8.3/branches/gc/test/testhastype.pl (modified) (1 diff)
- 1.8.3/branches/gc/test/testjust.pl (modified) (1 diff)
- 1.8.3/branches/gc/test/testletq.pl (modified) (1 diff)
- 1.8.3/branches/gc/test/testmath.pl (modified) (2 diffs)
- 1.8.3/branches/gc/test/testnull.pl (modified) (1 diff)
- 1.8.3/branches/gc/test/testpage.pl (modified) (1 diff)
- 1.8.3/branches/gc/test/testrand.pl (modified) (1 diff)
- 1.8.3/branches/gc/test/testreswitch.pl (modified) (1 diff)
- 1.8.3/branches/gc/test/testsetfuns.pl (modified) (1 diff)
- 1.8.3/branches/gc/test/teststringsecs.pl (modified) (1 diff)
- 1.8.3/branches/gc/test/testtr.pl (modified) (1 diff)
- 1.8.3/branches/gc/test/testtrim.pl (copied) (copied from 1.8.3/branches/devel/test/testtrim.pl)
- 1.8.3/branches/gc/utils/gentables.c (modified) (2 diffs)
- 1.8.3/branches/gc/utils/mkcmds.pl (modified) (1 diff)
- 1.8.3/branches/gc/utils/mkvershlp.pl (modified) (3 diffs)
- 1.8.3/branches/gc/win32/funs.h (modified) (2 diffs)
- 1.8.3/branches/gc/win32/msvc.net/pennmush.vcproj (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
1.8.3/branches/gc/CHANGES.182
r1017 r1129 14 14 ========================================================================== 15 15 16 Version 1.8.2 patchlevel 7 October 6, 2007 17 18 Minor changes: 19 * nwho() now takes an optional viewer argument like lwho(). By Sketch. 20 21 Fixes: 22 * Clarified the behavior of eval() and get_eval() in help. Suggested by 23 Talvo and Javelin. 24 * A failed db save no longer broadcasts a success message in addition to a 25 failure one. Reported by Cooee. 26 * The open database file wasn't getting closed on a failed save. 27 * Crash bug in sortkey(). Fix by Nathan Baum. 28 * 'help @desc' brings up @describe instead of @descformat. 29 Suggested by Nymeria. 30 * Removed mention of Win32 requiring a particular attribute 31 compression algorithm. Any will work, and always have. 32 Reported by Andrew Klein. 33 * Crash bug in @purge. Javelin. 34 16 35 Version 1.8.2 patchlevel 6 July 9, 2007 17 36 … … 21 40 22 41 Minor changes: 42 * Removed the gmalloc malloc option. [SW] 23 43 * KEEPALIVE flag makes the server send a telnet NOP after 24 44 a short period of inactivity; helps prevent timeouts from … … 27 47 Fixes: 28 48 * Fixed assorted small memory leaks. [SW] 49 * Fix to fraction() when dealing with numbers that can't 50 be fractioned. Discovered by Ashen-Shugar. [GM] 29 51 * Fixed handling of telnet NOPs sent by clients. [SW] 30 52 * The OpenSSL random number pool wasn't getting adequately 31 53 initialized on systems without /dev/urandom [SW] 32 54 * Infinite loop in math code. Reported by Ashen-Sugar. [GM] 55 * mkvershlp.pl skips over emacs backup files. 33 56 34 57 Version 1.8.2 patchlevel 5 June 13, 2007 35 58 36 59 Minor changes: 37 * Removed the gmalloc malloc option. [SW]38 60 * Assorted gcc warning fixes. [SW] 39 61 1.8.3/branches/gc/CHANGES.183
r1008 r1129 15 15 ========================================================================== 16 16 17 Version 1.8.3 patchlevel 4 ???? ??, 2007 17 Version 1.8.3 patchlevel 5 October 6, 2007 18 19 Major changes: 20 * Significant rewrite of ansi parsing and better ansi support 21 for many string-handling functions. Patch by Sketch. 22 * Rewrite of the softcode regression testing framework, and 23 addition of more tests. [SW] 24 25 Minor changes: 26 * Store a pointer to the start of a player's mailbox in objdata 27 instead of the connection struct. 28 * Experimental rewrite of hash tables to use the cuckoo hashing 29 algorithm, with constant-time lookups even in the worst case. 30 (And appears to have generally faster lookup even in normal usage.) 31 * Regular expression @sitelocks save the compiled regexp instead of 32 recompiling every time the rule is tested. 33 * Added %4 to @pageformat, which is the default page message. 34 35 Commands: 36 * Added @message, which makes it easy to use @chatformat or 37 @pageformat via @hooks, or to create your own *format. 38 39 Functions: 40 * Added message(), the function version of @message. 41 42 Fixes: 43 * decode64() does better validation of its input. [SW] 44 * Various compile fixes reported by Interevis and Kimiko. 45 Win32 patched by Intrevis. 46 * @sitelock does better error reporting. [SW] 47 * Crash bug related to regeditall fixed. 48 * @decompile didn't handle attribute trees correctly. 49 * Compile failure in funstr.c on some systems. Fixed by Boris. 50 * '@set =foo' failed silently. Reported by Talvo. 51 * Fixes from 1.8.2p7 52 53 Version 1.8.3 patchlevel 4 July 9, 2007 18 54 19 55 Major changes: … … 78 114 common cases by Sketch and Javelin. 79 115 * Fixes to ANSI output where extra ^[[m were being sent. 116 * Default flags weren't getting set on some attributes in certain 117 cases. Report by Talvo. 80 118 * Fixes from 1.8.2p6 81 119 1.8.3/branches/gc/MANIFEST
r1023 r1129 231 231 src/wild.c 232 232 src/wiz.c 233 test/README 233 234 test/MUSHConnection.pm 234 235 test/PennMUSH.pm 235 236 test/TestHarness.pm 236 test/alltests.pl 237 test/alltests.sh.in 238 test/runtest.pl 237 239 test/testalias.pl 238 240 test/testatree.pl … … 254 256 test/teststringsecs.pl 255 257 test/testtr.pl 258 test/testtrim.pl 256 259 utils/clwrapper.sh 257 260 utils/customize.pl 1.8.3/branches/gc/Makefile.in
r1023 r1129 4 4 5 5 VERSION=1.8.3 6 PATCHLEVEL= 36 PATCHLEVEL=5 7 7 8 8 # … … 81 81 netmud: 82 82 (cd src; make netmud "CC=$(CC)" "CCFLAGS=$(CCFLAGS)" \ 83 "SQL_CFLAGS=$(SQL_CFLAGS)" "SQL_LDFLAGS=$(SQL_LDFLAGS)" \ 83 84 "LDFLAGS=$(LDFLAGS)" "CLIBS=$(CLIBS)" ) 84 85 … … 163 164 update-hdr: 164 165 -@@TOUCH@ options.h.dist 166 -@sleep 2 165 167 -@@PERL@ utils/update.pl options.h options.h.dist 166 168 1.8.3/branches/gc/Patchlevel
r921 r1129 1 1 Do not edit this file. It is maintained by the official PennMUSH patches. 2 This is PennMUSH 1.8.3p 32 This is PennMUSH 1.8.3p5 1.8.3/branches/gc/UPGRADING
r981 r1129 119 119 *** target version of PennMUSH. PennMUSH 1.7.7+ can no longer read 120 120 *** 1.7.4 databases. 121 122 *** If you are upgrading from 1.7.6 or certain 1.7.7 versions, 123 *** you may also first need to load your database under PennMUSH 124 *** 1.8.0p13 and then dump it, and load this converted database 125 *** under your target version of PennMUSH. 121 126 122 127 ============================================================================ 1.8.3/branches/gc/config.h.in
r1017 r1129 166 166 #undef HAVE_CBRT 167 167 168 #undef HAVE_LOG2 169 168 170 #undef HAS_CRYPT 169 171 … … 280 282 281 283 #undef HAVE_WRITEV 284 285 #undef HAVE_FCNTL 282 286 283 287 /* Variables and defines */ 1.8.3/branches/gc/configure
r1017 r1129 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.6 0.3 # Generated by GNU Autoconf 2.61. 4 4 # 5 5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, … … 11 11 ## --------------------- ## 12 12 13 # Be Bourne compatible 13 # Be more Bourne compatible 14 DUALCASE=1; export DUALCASE # for MKS sh 14 15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15 16 emulate sh … … 20 21 setopt NO_GLOB_SUBST 21 22 else 22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 23 fi 24 BIN_SH=xpg4; export BIN_SH # for Tru64 25 DUALCASE=1; export DUALCASE # for MKS sh 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25 esac 26 27 fi 28 29 26 30 27 31 … … 216 220 as_candidate_shells= 217 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 218 for as_dir in / usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219 223 do 220 224 IFS=$as_save_IFS … … 234 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 235 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 236 # Be Bourne compatible237 240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 238 241 emulate sh … … 243 246 setopt NO_GLOB_SUBST 244 247 else 245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 246 fi 247 BIN_SH=xpg4; export BIN_SH # for Tru64 248 DUALCASE=1; export DUALCASE # for MKS sh 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250 esac 251 252 fi 253 249 254 250 255 : … … 254 259 as_have_required=yes 255 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 256 # Be Bourne compatible257 261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 258 262 emulate sh … … 263 267 setopt NO_GLOB_SUBST 264 268 else 265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 266 fi 267 BIN_SH=xpg4; export BIN_SH # for Tru64 268 DUALCASE=1; export DUALCASE # for MKS sh 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271 esac 272 273 fi 274 269 275 270 276 : … … 513 519 fi 514 520 515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as 516 # systems may use methods other than mode bits to determine executability. 517 cat >conf$$.file <<_ASEOF 518 #! /bin/sh 519 exit 0 520 _ASEOF 521 chmod +x conf$$.file 522 if test -x conf$$.file >/dev/null 2>&1; then 523 as_executable_p="test -x" 524 else 525 as_executable_p=: 526 fi 527 rm -f conf$$.file 521 if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523 else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541 fi 542 as_executable_p=$as_test_x 528 543 529 544 # Sed expression to map a string onto a valid CPP name. … … 566 581 ac_includes_default="\ 567 582 #include <stdio.h> 568 #if HAVE_SYS_TYPES_H583 #ifdef HAVE_SYS_TYPES_H 569 584 # include <sys/types.h> 570 585 #endif 571 #if HAVE_SYS_STAT_H586 #ifdef HAVE_SYS_STAT_H 572 587 # include <sys/stat.h> 573 588 #endif 574 #if STDC_HEADERS589 #ifdef STDC_HEADERS 575 590 # include <stdlib.h> 576 591 # include <stddef.h> 577 592 #else 578 # if HAVE_STDLIB_H593 # ifdef HAVE_STDLIB_H 579 594 # include <stdlib.h> 580 595 # endif 581 596 #endif 582 #if HAVE_STRING_H583 # if ! STDC_HEADERS &&HAVE_MEMORY_H597 #ifdef HAVE_STRING_H 598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 584 599 # include <memory.h> 585 600 # endif 586 601 # include <string.h> 587 602 #endif 588 #if HAVE_STRINGS_H603 #ifdef HAVE_STRINGS_H 589 604 # include <strings.h> 590 605 #endif 591 #if HAVE_INTTYPES_H606 #ifdef HAVE_INTTYPES_H 592 607 # include <inttypes.h> 593 608 #endif 594 #if HAVE_STDINT_H609 #ifdef HAVE_STDINT_H 595 610 # include <stdint.h> 596 611 #endif 597 #if HAVE_UNISTD_H612 #ifdef HAVE_UNISTD_H 598 613 # include <unistd.h> 599 614 #endif" … … 687 702 CFLAGS 688 703 LDFLAGS 704 LIBS 689 705 CPPFLAGS 690 706 SENDMAIL … … 795 811 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 796 812 # Reject names that are not valid shell variable names. 797 expr "x$ac_feature" : ".*[^- _$as_cr_alnum]" >/dev/null &&813 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 798 814 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 799 815 { (exit 1); exit 1; }; } 800 ac_feature=`echo $ac_feature | sed 's/ -/_/g'`816 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 801 817 eval enable_$ac_feature=no ;; 802 818 … … 814 830 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 815 831 # Reject names that are not valid shell variable names. 816 expr "x$ac_feature" : ".*[^- _$as_cr_alnum]" >/dev/null &&832 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 817 833 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 818 834 { (exit 1); exit 1; }; } 819 ac_feature=`echo $ac_feature | sed 's/ -/_/g'`835 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 820 836 eval enable_$ac_feature=\$ac_optarg ;; 821 837 … … 1011 1027 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1012 1028 # Reject names that are not valid shell variable names. 1013 expr "x$ac_package" : ".*[^- _$as_cr_alnum]" >/dev/null &&1029 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1014 1030 { echo "$as_me: error: invalid package name: $ac_package" >&2 1015 1031 { (exit 1); exit 1; }; } 1016 ac_package=`echo $ac_package | sed 's/-/_/g'`1032 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1017 1033 eval with_$ac_package=\$ac_optarg ;; 1018 1034 … … 1020 1036 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1021 1037 # Reject names that are not valid shell variable names. 1022 expr "x$ac_package" : ".*[^- _$as_cr_alnum]" >/dev/null &&1038 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1023 1039 { echo "$as_me: error: invalid package name: $ac_package" >&2 1024 1040 { (exit 1); exit 1; }; } 1025 ac_package=`echo $ac_package | sed 's/ -/_/g'`1041 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1026 1042 eval with_$ac_package=no ;; 1027 1043 … … 1280 1296 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1281 1297 nonstandard directory <lib dir> 1298 LIBS libraries to pass to the linker, e.g. -l<library> 1282 1299 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1283 1300 you have headers in a nonstandard directory <include dir> … … 1349 1366 cat <<\_ACEOF 1350 1367 configure 1351 generated by GNU Autoconf 2.6 01368 generated by GNU Autoconf 2.61 1352 1369 1353 1370 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, … … 1363 1380 1364 1381 It was created by $as_me, which was 1365 generated by GNU Autoconf 2.6 0. Invocation command line was1382 generated by GNU Autoconf 2.61. Invocation command line was 1366 1383 1367 1384 $ $0 $@ … … 1744 1761 test -z "$as_dir" && as_dir=. 1745 1762 for ac_exec_ext in '' $ac_executable_extensions; do 1746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_ executable_p"$as_dir/$ac_word$ac_exec_ext"; }; then1763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1747 1764 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 1748 1765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 1788 1805 test -z "$as_dir" && as_dir=. 1789 1806 for ac_exec_ext in '' $ac_executable_extensions; do 1790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_ executable_p"$as_dir/$ac_word$ac_exec_ext"; }; then1807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1791 1808 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1792 1809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 1828 1845 test -z "$as_dir" && as_dir=. 1829 1846 for ac_exec_ext in '' $ac_executable_extensions; do 1830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_ executable_p"$as_dir/$ac_word$ac_exec_ext"; }; then1847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1831 1848 ac_cv_prog_ac_ct_CC="gcc" 1832 1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 1885 1902 test -z "$as_dir" && as_dir=. 1886 1903 for ac_exec_ext in '' $ac_executable_extensions; do 1887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_ executable_p"$as_dir/$ac_word$ac_exec_ext"; }; then1904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1888 1905 ac_cv_prog_CC="${ac_tool_prefix}cc" 1889 1906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 1926 1943 test -z "$as_dir" && as_dir=. 1927 1944 for ac_exec_ext in '' $ac_executable_extensions; do 1928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_ executable_p"$as_dir/$ac_word$ac_exec_ext"; }; then1945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1929 1946 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1930 1947 ac_prog_rejected=yes … … 1984 2001 test -z "$as_dir" && as_dir=. 1985 2002 for ac_exec_ext in '' $ac_executable_extensions; do 1986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_ executable_p"$as_dir/$ac_word$ac_exec_ext"; }; then2003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1987 2004 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1988 2005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 2028 2045 test -z "$as_dir" && as_dir=. 2029 2046 for ac_exec_ext in '' $ac_executable_extensions; do 2030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_ executable_p"$as_dir/$ac_word$ac_exec_ext"; }; then2047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2031 2048 ac_cv_prog_ac_ct_CC="$ac_prog" 2032 2049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 2169 2186 # so that the user can short-circuit this test for compilers unknown to 2170 2187 # Autoconf. 2171 for ac_file in $ac_files 2188 for ac_file in $ac_files '' 2172 2189 do 2173 2190 test -f "$ac_file" || continue … … 2197 2214 2198 2215 else 2216 ac_file='' 2217 fi 2218 2219 { echo "$as_me:$LINENO: result: $ac_file" >&5 2220 echo "${ECHO_T}$ac_file" >&6; } 2221 if test -z "$ac_file"; then 2199 2222 echo "$as_me: failed program was:" >&5 2200 2223 sed 's/^/| /' conftest.$ac_ext >&5 … … 2208 2231 2209 2232 ac_exeext=$ac_cv_exeext 2210 { echo "$as_me:$LINENO: result: $ac_file" >&52211 echo "${ECHO_T}$ac_file" >&6; }2212 2233 2213 2234 # Check that the compiler produces executables we can run. If not, either … … 2387 2408 cat conftest.err >&5 2388 2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2389 (exit $ac_status); } && 2390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2391 { (case "(($ac_try" in 2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2393 *) ac_try_echo=$ac_try;; 2394 esac 2395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2396 (eval "$ac_try") 2>&5 2397 ac_status=$? 2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2399 (exit $ac_status); }; } && 2400 { ac_try='test -s conftest.$ac_objext' 2401 { (case "(($ac_try" in 2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2403 *) ac_try_echo=$ac_try;; 2404 esac 2405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2406 (eval "$ac_try") 2>&5 2407 ac_status=$? 2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2409 (exit $ac_status); }; }; then 2410 (exit $ac_status); } && { 2411 test -z "$ac_c_werror_flag" || 2412 test ! -s conftest.err 2413 } && test -s conftest.$ac_objext; then 2410 2414 ac_compiler_gnu=yes 2411 2415 else … … 2462 2466 cat conftest.err >&5 2463 2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2464 (exit $ac_status); } && 2465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2466 { (case "(($ac_try" in 2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2468 *) ac_try_echo=$ac_try;; 2469 esac 2470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2471 (eval "$ac_try") 2>&5 2472 ac_status=$? 2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2474 (exit $ac_status); }; } && 2475 { ac_try='test -s conftest.$ac_objext' 2476 { (case "(($ac_try" in 2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2478 *) ac_try_echo=$ac_try;; 2479 esac 2480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2481 (eval "$ac_try") 2>&5 2482 ac_status=$? 2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2484 (exit $ac_status); }; }; then 2468 (exit $ac_status); } && { 2469 test -z "$ac_c_werror_flag" || 2470 test ! -s conftest.err 2471 } && test -s conftest.$ac_objext; then 2485 2472 ac_cv_prog_cc_g=yes 2486 2473 else … … 2517 2504 cat conftest.err >&5 2518 2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2519 (exit $ac_status); } && 2520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2521 { (case "(($ac_try" in 2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2523 *) ac_try_echo=$ac_try;; 2524 esac 2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2526 (eval "$ac_try") 2>&5 2527 ac_status=$? 2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2529 (exit $ac_status); }; } && 2530 { ac_try='test -s conftest.$ac_objext' 2531 { (case "(($ac_try" in 2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2533 *) ac_try_echo=$ac_try;; 2534 esac 2535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2536 (eval "$ac_try") 2>&5 2537 ac_status=$? 2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2539 (exit $ac_status); }; }; then 2506 (exit $ac_status); } && { 2507 test -z "$ac_c_werror_flag" || 2508 test ! -s conftest.err 2509 } && test -s conftest.$ac_objext; then 2540 2510 : 2541 2511 else … … 2573 2543 cat conftest.err >&5 2574 2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2575 (exit $ac_status); } && 2576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2577 { (case "(($ac_try" in 2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2579 *) ac_try_echo=$ac_try;; 2580 esac 2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2582 (eval "$ac_try") 2>&5 2583 ac_status=$? 2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2585 (exit $ac_status); }; } && 2586 { ac_try='test -s conftest.$ac_objext' 2587 { (case "(($ac_try" in 2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2589 *) ac_try_echo=$ac_try;; 2590 esac 2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2592 (eval "$ac_try") 2>&5 2593 ac_status=$? 2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2595 (exit $ac_status); }; }; then 2545 (exit $ac_status); } && { 2546 test -z "$ac_c_werror_flag" || 2547 test ! -s conftest.err 2548 } && test -s conftest.$ac_objext; then 2596 2549 ac_cv_prog_cc_g=yes 2597 2550 else … … 2709 2662 cat conftest.err >&5 2710 2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2711 (exit $ac_status); } && 2712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2713 { (case "(($ac_try" in 2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2715 *) ac_try_echo=$ac_try;; 2716 esac 2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2718 (eval "$ac_try") 2>&5 2719 ac_status=$? 2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2721 (exit $ac_status); }; } && 2722 { ac_try='test -s conftest.$ac_objext' 2723 { (case "(($ac_try" in 2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2725 *) ac_try_echo=$ac_try;; 2726 esac 2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2728 (eval "$ac_try") 2>&5 2729 ac_status=$? 2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2731 (exit $ac_status); }; }; then 2664 (exit $ac_status); } && { 2665 test -z "$ac_c_werror_flag" || 2666 test ! -s conftest.err 2667 } && test -s conftest.$ac_objext; then 2732 2668 ac_cv_prog_cc_c89=$ac_arg 2733 2669 else … … 2785 2721 #include <stdio.h> 2786 2722 2723 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2724 #define debug(...) fprintf (stderr, __VA_ARGS__) 2725 #define showlist(...) puts (#__VA_ARGS__) 2726 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2727 static void 2728 test_varargs_macros (void) 2729 { 2730 int x = 1234; 2731 int y = 5678; 2732 debug ("Flag"); 2733 debug ("X = %d\n", x); 2734 showlist (The first, second, and third items.); 2735 report (x>y, "x is %d but y is %d", x, y); 2736 } 2737 2738 // Check long long types. 2739 #define BIG64 18446744073709551615ull 2740 #define BIG32 4294967295ul 2741 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2742 #if !BIG_OK 2743 your preprocessor is broken; 2744 #endif 2745 #if BIG_OK 2746 #else 2747 your preprocessor is broken; 2748 #endif 2749 static long long int bignum = -9223372036854775807LL; 2750 static unsigned long long int ubignum = BIG64; 2751 2787 2752 struct incomplete_array 2788 2753 { … … 2800 2765 2801 2766 static inline int 2802 test_restrict (ccp restrict text)2767 test_restrict (ccp restrict text) 2803 2768 { 2804 2769 // See if C++-style comments work. … … 2810 2775 } 2811 2776 2812 // Check varargs and va_copy work.2777 // Check varargs and va_copy. 2813 2778 static void 2814 test_varargs (const char *format, ...)2779 test_varargs (const char *format, ...) 2815 2780 { 2816 2781 va_list args; 2817 va_start (args, format);2782 va_start (args, format); 2818 2783 va_list args_copy; 2819 va_copy (args_copy, args);2784 va_copy (args_copy, args); 2820 2785 2821 2786 const char *str; … … 2828 2793 { 2829 2794 case 's': // string 2830 str = va_arg (args_copy, const char *);2795 str = va_arg (args_copy, const char *); 2831 2796 break; 2832 2797 case 'd': // int 2833 number = va_arg (args_copy, int);2798 number = va_arg (args_copy, int); 2834 2799 break; 2835 2800 case 'f': // float 2836 fnumber = (float) va_arg(args_copy, double);2801 fnumber = va_arg (args_copy, double); 2837 2802 break; 2838 2803 default: … … 2840 2805 } 2841 2806 } 2842 va_end (args_copy);2843 va_end (args);2807 va_end (args_copy); 2808 va_end (args); 2844 2809 } 2845 2810 … … 2848 2813 { 2849 2814 2850 // Check bool and long long datatypes.2815 // Check bool. 2851 2816 _Bool success = false; 2852 long long int bignum = -1234567890LL;2853 unsigned long long int ubignum = 1234567890uLL;2854 2817 2855 2818 // Check restrict. 2856 if (test_restrict ("String literal") != 0)2819 if (test_restrict ("String literal") == 0) 2857 2820 success = true; 2858 2821 char *restrict newvar = "Another string"; 2859 2822 2860 2823 // Check varargs. 2861 test_varargs("s, d' f .", "string", 65, 34.234); 2862 2863 // Check incomplete arrays work. 2824 test_varargs ("s, d' f .", "string", 65, 34.234); 2825 test_varargs_macros (); 2826 2827 // Check flexible array members. 2864 2828 struct incomplete_array *ia = 2865 malloc (sizeof(struct incomplete_array) + (sizeof(double) * 10));2829 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2866 2830 ia->datasize = 10; 2867 2831 for (int i = 0; i < ia->datasize; ++i) 2868 ia->data[i] = (double)i * 1.234;2869 2870 // Check named initiali sers.2832 ia->data[i] = i * 1.234; 2833 2834 // Check named initializers. 2871 2835 struct named_init ni = { 2872 2836 .number = 34, … … 2878 2842 2879 2843 int dynamic_array[ni.number]; 2880 dynamic_array[ 43] = 543;2844 dynamic_array[ni.number - 1] = 543; 2881 2845 2882 2846 // work around unused variable warnings 2883 return bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'; 2847 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 2848 || dynamic_array[ni.number - 1] != 543); 2884 2849 2885 2850 ; … … 2903 2868 cat conftest.err >&5 2904 2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2905 (exit $ac_status); } && 2906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2907 { (case "(($ac_try" in 2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2909 *) ac_try_echo=$ac_try;; 2910 esac 2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2912 (eval "$ac_try") 2>&5 2913 ac_status=$? 2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2915 (exit $ac_status); }; } && 2916 { ac_try='test -s conftest.$ac_objext' 2917 { (case "(($ac_try" in 2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2919 *) ac_try_echo=$ac_try;; 2920 esac 2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2922 (eval "$ac_try") 2>&5 2923 ac_status=$? 2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2925 (exit $ac_status); }; }; then 2870 (exit $ac_status); } && { 2871 test -z "$ac_c_werror_flag" || 2872 test ! -s conftest.err 2873 } && test -s conftest.$ac_objext; then 2926 2874 ac_cv_prog_cc_c99=$ac_arg 2927 2875 else … … 2973 2921 test -z "$as_dir" && as_dir=. 2974 2922 for ac_exec_ext in '' $ac_executable_extensions; do 2975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_ executable_p"$as_dir/$ac_word$ac_exec_ext"; }; then2923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2976 2924 ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext" 2977 2925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 3030 2978 test -z "$as_dir" && as_dir=. 3031 2979 for ac_exec_ext in '' $ac_executable_extensions; do 3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_ executable_p"$as_dir/$ac_word$ac_exec_ext"; }; then2980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3033 2981 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 3034 2982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 3070 3018 test -z "$as_dir" && as_dir=. 3071 3019 for ac_exec_ext in '' $ac_executable_extensions; do 3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_ executable_p"$as_dir/$ac_word$ac_exec_ext"; }; then3020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3073 3021 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 3074 3022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 3110 3058 test -z "$as_dir" && as_dir=. 3111 3059
