Changeset 817
- Timestamp:
- 05/05/07 23:46:54 (2 years ago)
- Files:
-
- 1.8.3/branches/devel/CHANGES.182 (modified) (1 diff)
- 1.8.3/branches/devel/CHANGES.183 (modified) (1 diff)
- 1.8.3/branches/devel/Patchlevel (modified) (1 diff)
- 1.8.3/branches/devel/config.h.in (modified) (1 diff)
- 1.8.3/branches/devel/configure (modified) (3 diffs)
- 1.8.3/branches/devel/configure.in (modified) (2 diffs)
- 1.8.3/branches/devel/game/txt/hlp/pennv182.hlp (modified) (1 diff)
- 1.8.3/branches/devel/game/txt/hlp/pennv183.hlp (modified) (2 diffs)
- 1.8.3/branches/devel/game/txt/hlp/pennvOLD.hlp (modified) (1 diff)
- 1.8.3/branches/devel/hdrs/attrib.h (modified) (4 diffs)
- 1.8.3/branches/devel/hdrs/case.h (modified) (1 diff)
- 1.8.3/branches/devel/src/Makefile.in (modified) (1 diff)
- 1.8.3/branches/devel/src/attrib.c (modified) (12 diffs)
- 1.8.3/branches/devel/src/chunk.c (modified) (1 diff)
- 1.8.3/branches/devel/src/csrimalloc.c (modified) (2 diffs)
- 1.8.3/branches/devel/src/db.c (modified) (1 diff)
- 1.8.3/branches/devel/src/gmalloc.c (modified) (2 diffs)
- 1.8.3/branches/devel/src/move.c (modified) (2 diffs)
- 1.8.3/branches/devel/src/set.c (modified) (1 diff)
- 1.8.3/branches/devel/src/wiz.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
1.8.3/branches/devel/CHANGES.182
r815 r817 15 15 ========================================================================== 16 16 17 Version 1.8.2 patchlevel 4 ???, 200717 Version 1.8.2 patchlevel 4 May ??, 2007 18 18 19 19 Minor changes: 1.8.3/branches/devel/CHANGES.183
r809 r817 15 15 ========================================================================== 16 16 17 Version 1.8.3 patchlevel 2 ????, 200717 Version 1.8.3 patchlevel 2 May ??, 2007 18 18 19 19 Major changes: 1.8.3/branches/devel/Patchlevel
r717 r817 1 1 Do not edit this file. It is maintained by the official PennMUSH patches. 2 This is PennMUSH 1.8.3p 12 This is PennMUSH 1.8.3p2 1.8.3/branches/devel/config.h.in
r815 r817 197 197 198 198 #undef SENDMAIL 199 200 #undef HAVE_SAFE_TOUPPER 199 201 200 202 /* Optional language features */ 1.8.3/branches/devel/configure
r803 r817 7985 7985 7986 7986 7987 { echo "$as_me:$LINENO: checking for uint8_t" >&5 7988 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; } 7989 if test "${ac_cv_c_uint8_t+set}" = set; then 7990 echo $ECHO_N "(cached) $ECHO_C" >&6 7991 else 7992 ac_cv_c_uint8_t=no 7993 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \ 7994 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 7995 cat >conftest.$ac_ext <<_ACEOF 7996 /* confdefs.h. */ 7997 _ACEOF 7998 cat confdefs.h >>conftest.$ac_ext 7999 cat >>conftest.$ac_ext <<_ACEOF 8000 /* end confdefs.h. */ 8001 $ac_includes_default 8002 int 8003 main () 8004 { 8005 static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)]; 8006 test_array [0] = 0 8007 8008 ; 8009 return 0; 8010 } 8011 _ACEOF 8012 rm -f conftest.$ac_objext 8013 if { (ac_try="$ac_compile" 8014 case "(($ac_try" in 8015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8016 *) ac_try_echo=$ac_try;; 8017 esac 8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8019 (eval "$ac_compile") 2>conftest.er1 8020 ac_status=$? 8021 grep -v '^ *+' conftest.er1 >conftest.err 8022 rm -f conftest.er1 8023 cat conftest.err >&5 8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8025 (exit $ac_status); } && 8026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8027 { (case "(($ac_try" in 8028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8029 *) ac_try_echo=$ac_try;; 8030 esac 8031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8032 (eval "$ac_try") 2>&5 8033 ac_status=$? 8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8035 (exit $ac_status); }; } && 8036 { ac_try='test -s conftest.$ac_objext' 8037 { (case "(($ac_try" in 8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8039 *) ac_try_echo=$ac_try;; 8040 esac 8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8042 (eval "$ac_try") 2>&5 8043 ac_status=$? 8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8045 (exit $ac_status); }; }; then 8046 case $ac_type in 8047 uint8_t) ac_cv_c_uint8_t=yes ;; 8048 *) ac_cv_c_uint8_t=$ac_type ;; 8049 esac 8050 8051 else 8052 echo "$as_me: failed program was:" >&5 8053 sed 's/^/| /' conftest.$ac_ext >&5 8054 8055 8056 fi 8057 8058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8059 test "$ac_cv_c_uint8_t" != no && break 8060 done 8061 fi 8062 { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5 8063 echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; } 8064 case $ac_cv_c_uint8_t in #( 8065 no|yes) ;; #( 8066 *) 8067 8068 cat >>confdefs.h <<\_ACEOF 8069 #define _UINT8_T 1 8070 _ACEOF 8071 8072 8073 cat >>confdefs.h <<_ACEOF 8074 #define uint8_t $ac_cv_c_uint8_t 8075 _ACEOF 8076 ;; 8077 esac 8078 8079 7987 8080 { echo "$as_me:$LINENO: checking for uint16_t" >&5 7988 8081 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } … … 13240 13333 13241 13334 13242 ### Variables, constants and defines13335 ### Variables, constants, defines and other misc. stuff 13243 13336 13244 13337 { echo "$as_me:$LINENO: checking whether h_errno is declared" >&5 … … 13332 13425 _ACEOF 13333 13426 13427 13428 fi 13429 13430 13431 13432 # Will toupper()ing an already uppercase character be a problem? 13433 { echo "$as_me:$LINENO: checking if it is safe to toupper uppers" >&5 13434 echo $ECHO_N "checking if it is safe to toupper uppers... $ECHO_C" >&6; } 13435 cat >conftest.$ac_ext <<_ACEOF 13436 /* confdefs.h. */ 13437 _ACEOF 13438 cat confdefs.h >>conftest.$ac_ext 13439 cat >>conftest.$ac_ext <<_ACEOF 13440 /* end confdefs.h. */ 13441 #include <ctype.h> 13442 int 13443 main () 13444 { 13445 13446 if (toupper('A') == 'A') 13447 return 0; 13448 else 13449 return 1; 13450 13451 ; 13452 return 0; 13453 } 13454 _ACEOF 13455 rm -f conftest.$ac_objext 13456 if { (ac_try="$ac_compile" 13457 case "(($ac_try" in 13458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13459 *) ac_try_echo=$ac_try;; 13460 esac 13461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13462 (eval "$ac_compile") 2>conftest.er1 13463 ac_status=$? 13464 grep -v '^ *+' conftest.er1 >conftest.err 13465 rm -f conftest.er1 13466 cat conftest.err >&5 13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13468 (exit $ac_status); } && 13469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13470 { (case "(($ac_try" in 13471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13472 *) ac_try_echo=$ac_try;; 13473 esac 13474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13475 (eval "$ac_try") 2>&5 13476 ac_status=$? 13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13478 (exit $ac_status); }; } && 13479 { ac_try='test -s conftest.$ac_objext' 13480 { (case "(($ac_try" in 13481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13482 *) ac_try_echo=$ac_try;; 13483 esac 13484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13485 (eval "$ac_try") 2>&5 13486 ac_status=$? 13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13488 (exit $ac_status); }; }; then 13489 ac_safe_toupper=yes 13490 else 13491 echo "$as_me: failed program was:" >&5 13492 sed 's/^/| /' conftest.$ac_ext >&5 13493 13494 ac_safe_toupper=no 13495 fi 13496 13497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13498 { echo "$as_me:$LINENO: result: $ac_safe_toupper" >&5 13499 echo "${ECHO_T}$ac_safe_toupper" >&6; } 13500 if test "x$ac_safe_toupper" = xyes; then 13501 cat >>confdefs.h <<\_ACEOF 13502 #define HAVE_SAFE_TOUPPER 1 13503 _ACEOF 13334 13504 13335 13505 fi 1.8.3/branches/devel/configure.in
r815 r817 175 175 176 176 177 ### Variables, constants and defines177 ### Variables, constants, defines and other misc. stuff 178 178 179 179 AC_CHECK_DECLS(h_errno, [AC_DEFINE(HAVE_H_ERRNO)],,[AC_INCLUDES_DEFAULT … … 183 183 ]) 184 184 185 # Will toupper()ing an already uppercase character be a problem? 186 AC_MSG_CHECKING(if it is safe to toupper uppers) 187 AC_TRY_COMPILE( 188 [#include <ctype.h>], 189 [ 190 if (toupper('A') == 'A') 191 return 0; 192 else 193 return 1; 194 ], ac_safe_toupper=yes, ac_safe_toupper=no) 195 AC_MSG_RESULT([$ac_safe_toupper]) 196 if test "x$ac_safe_toupper" = xyes; then 197 AC_DEFINE(HAVE_SAFE_TOUPPER) 198 fi 199 200 201 185 202 # Which flavor of child killing to use? Prefer SIGCHLD. 186 203 1.8.3/branches/devel/game/txt/hlp/pennv182.hlp
r717 r817 1 & 1.8.2p4 2 Version 1.8.2 patchlevel 4 May ??, 2007 3 4 Minor changes: 5 * speak() uses accented names. Sketch. 6 * config() no longer lists options that can't be set 7 with @config/set. Suggested by Trispis. [SW] 8 * 'page foo\=bar' pages the last person you paged. Fix by Nathan 9 Baum. 10 * Receipt of a SIGUSR1 (Causing a shutdown/reboot) is explictly 11 logged. Suggested by Interloper. [SW] 12 * @wipe reports the number of attributes deleted. [183] 13 14 Fixes: 15 * You can no longer save objects slated to be destroyed 16 by using @set foo=!GOING (The help file for GOING now tells 17 the truth) Reported by Cooee. [SW] 18 * Useless variable in real_unparse() removed. Reported by 19 Taladan. [SW] 20 * 'make portmsg' works, and portmsg.c rewritten to current 21 Penn standards. [SW] 22 * case() would replace #$ in the default argument, contrary 23 to the help file. Reported by Talvo. [SW] 24 * Memory leak in grep(). [SW] 25 * Quotes can be around the player name on the login screen 26 always, instead of just when player_name_spaces was 27 on. Suggested by Dan Widdis. [SW] 28 * '{think foo} bar' exhibited odd behavior. [GM] 29 * 'make test' wouldn't work right unless '.' was in you path. 30 Fix by Nathan Baum. 31 * stdin and stdout weren't getting closed, potentially causing 32 problems when trying to log out of a shell after starting 33 a mush. Reported by K Moon. [SW] 34 * NetBSD compile and general warning fixes. [SW] 35 * Favor difftime(3) over subtraction of time_t variables. [SW] 36 * Clarification of attribute trees in HELP @WIPE. Suggested by 37 Talvo. 38 * Loading a db with empty attributes used as the roots of 39 attribute trees didn't work if empty_attrs is set to no. 40 Reported by Kevin. [SW] 41 * Bugs in wiping attribute trees with attributes the wiper 42 doesn't have permission to delete fixed. [SW] 43 1 44 & 1.8.2p3 2 45 Version 1.8.2 patchlevel 3 March 11, 2007 1.8.3/branches/devel/game/txt/hlp/pennv183.hlp
r717 r817 1 & 1.8.3p 11 & 1.8.3p2 2 2 & changes 3 3 This is a list of changes in this patchlevel which are probably of … … 12 12 be read in 'help patchlevels'. 13 13 14 Version 1.8.3 patchlevel 2 May ??, 2007 15 16 Major changes: 17 * configuration is now done by autoconf. ./Configure is 18 now ./configure and its options have changed. See 19 INSTALL and ./configure --help [SW] 20 * Support for the postgresql SQL server. Javelin. 21 * Support for sqlite3 SQL databases. [SW] 22 23 Minor changes: 24 * You can no longer run a mush as root. [SW] 25 * @cemit/noisy. Suggested by Kimiko. [SW] 26 * @function sorts the list of user-defined functions 27 by object and then name. Suggested by Trinsec. [SW] 28 * Better logging of the register login screen command 29 for systems without a sendmail program. [SW] 30 * Assorted refactoring of source code. [SW] 31 32 Functions: 33 * isobjid(). By Balerion. 34 * player() returns the dbref of the player connected to a given 35 port. By Nathan Baum. 36 * root(X,3) uses the C cbrt() function if available. [SW] 37 * New formats for align() that allow flowing text. Javelin. 38 * isdbref() understands objids. By Balerion. 39 40 Fixes: 41 * regmatch() broken with %q-registers. Javelin. 42 * Better checking of dbref config options to make sure they're 43 valid objects. Suggested by Talvo. [SW] 44 * Fixed assorted cases of accidently modifying const objects. 45 Thanks to Jake. [SW] 46 * Fixed a crash bug in strmatch(). [GM] 47 * wrap() of Pueblo tags didn't work very well. Fixed by 48 Sketch. 49 * @wipe's count is accurate when attribute trees are being 50 deleted. Reported by Talvo. 51 52 & 1.8.3p1 14 53 Version 1.8.3 patchlevel 1 March 11, 2007 15 54 1.8.3/branches/devel/game/txt/hlp/pennvOLD.hlp
r681 r817 4418 4418 type 'help <version>p<patchlevel>'. For example, 'help 1.7.2p3' 4419 4419 4420 1.8.3: 0, 1 4421 1.8.2: 0, 1, 2, 3 4420 1.8.3: 0, 1, 2 4421 1.8.2: 0, 1, 2, 3, 4 4422 4422 1.8.1: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 4423 4423 1.8.0: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 1.8.3/branches/devel/hdrs/attrib.h
r815 r817 42 42 AE_OKAY = 0, /**< Success */ 43 43 AE_ERROR = -1, /**< general failure */ 44 AE_SAFE = -2, /**< attempt to overwrite a safe attribute */44 AE_SAFE = -2, /**< attempt to overwrite a safe attribute */ 45 45 AE_BADNAME = -3, /**< invalid name */ 46 46 AE_TOOMANY = -4, /**< too many attribs */ 47 AE_TREE = -5, /**< unable to delete/create entire tree */47 AE_TREE = -5, /**< unable to delete/create entire tree */ 48 48 AE_NOTFOUND = -6 /** No such attribute */ 49 49 } atr_err; … … 56 56 uint8_t derefs); 57 57 extern atr_err atr_add(dbref thing, char const *RESTRICT atr, 58 char const *RESTRICT s, dbref player, uint32_t flags);58 char const *RESTRICT s, dbref player, uint32_t flags); 59 59 extern atr_err atr_clr(dbref thing, char const *atr, dbref player); 60 60 extern atr_err wipe_atr(dbref thing, char const *atr, dbref player); … … 110 110 #define AF_CASE 0x800 /**< Match $/^ patterns case-sensitive */ 111 111 #define AF_SAFE 0x1000 /**< This attribute may not be modified */ 112 #define AF_ROOT 0x2000 /**< Root of an attribute tree */113 #define AF_UNDEF1 0x4000 /**< Undefined; reserved for a future flag */114 #define AF_UNDEF2 0x8000 /**< Undefined; reserved for a future flag */112 #define AF_ROOT 0x2000 /**< Root of an attribute tree */ 113 #define AF_UNDEF1 0x4000 /**< Undefined; reserved for a future flag */ 114 #define AF_UNDEF2 0x8000 /**< Undefined; reserved for a future flag */ 115 115 #define AF_STATIC 0x10000 /**< OBSOLETE! Leave here but don't use */ 116 116 #define AF_COMMAND 0x20000 /**< INTERNAL: value starts with $ */ … … 129 129 #define AF_MHEAR 0x20000000 /**< ^-listens can be triggered by %! */ 130 130 #define AF_AHEAR 0x40000000 /**< ^-listens can be triggered by anyone */ 131 #define AF_UNDEF3 0x80000000 /**< Undefined; reserved for a future flag */131 #define AF_UNDEF3 0x80000000 /**< Undefined; reserved for a future flag */ 132 132 133 133 #define AF_MAXVALUE 0x100000000 /**< Largest attribute flag value. */ 134 134 135 extern ATTR attr[]; /**< external predefined attributes. */ 135 extern ATTR attr[]; 136 /**< external predefined attributes. */ 136 137 137 138 #define AL_ATTR(alist) (alist) 1.8.3/branches/devel/hdrs/case.h
r399 r817 4 4 #include "config.h" 5 5 6 #ifdef HA S_SAFE_TOUPPER6 #ifdef HAVE_SAFE_TOUPPER 7 7 #define DOWNCASE(x) tolower((unsigned char)x) 8 8 #define UPCASE(x) toupper((unsigned char)x) 1.8.3/branches/devel/src/Makefile.in
r807 r817 157 157 @INDENT@ -npro -kr -ci2 -ss -psl -ip4 -i2 -cs -l80 -lc75 \ 158 158 -T accent_info -T acsflag -T aig_func -T ALIST -T ansi_string \ 159 -T ATRALIAS -T ATTR -T ATTRPAGE -T BOOL -T boolexp \159 -T atr_err -T ATRALIAS -T ATTR -T ATTRPAGE -T BOOL -T boolexp \ 160 160 -T boolexp_type -T BQUE -T branch_chain -T BUFFERQ \ 161 161 -T build_ansi_codes -T bvm_opcode -T BYTE -T CDESC -T CHAN \ 1.8.3/branches/devel/src/attrib.c
r815 r817 65 65 static ATTR *alloc_atr(void); 66 66 static ATTR *pop_free_list(void); 67 static void push_free_list(ATTR *);68 static void atr_free_one(ATTR *);67 static void push_free_list(ATTR *); 68 static void atr_free_one(ATTR *); 69 69 static ATTR *find_atr_pos_in_list(ATTR ***pos, char const *name); 70 70 static int can_create_attr(dbref player, dbref obj, char const *atr_name, … … 563 563 root->data = chunk_create(t, u_strlen(t), 0); 564 564 free(t); 565 } 566 } 567 } 568 565 } 566 } 567 } 568 569 569 AL_FLAGS(ptr) = flags; 570 570 AL_FLAGS(ptr) &= ~AF_COMMAND & ~AF_LISTEN; … … 661 661 free(t); 662 662 } 663 } else 663 } else 664 664 AL_FLAGS(root) |= AF_ROOT; 665 665 … … 721 721 722 722 for (sub = atr_sub_branch(root); 723 sub && string_prefix(AL_NAME(sub), AL_NAME(root)); 724 sub = next) { 723 sub && string_prefix(AL_NAME(sub), AL_NAME(root)); sub = next) { 725 724 if (AL_FLAGS(sub) & AF_ROOT) { 726 725 if (!atr_clear_children(player, thing, sub)) { … … 744 743 atr_free_one(sub); 745 744 AttrCount(thing)--; 746 745 747 746 } 748 747 … … 778 777 779 778 if ((AL_FLAGS(ptr) & AF_ROOT) && !we_are_wiping) 780 return AE_TREE;779 return AE_TREE; 781 780 782 781 /* We only hit this if wiping. */ 783 782 if (AL_FLAGS(ptr) & AF_ROOT) 784 783 can_clear = atr_clear_children(player, thing, ptr); 785 784 786 785 if (can_clear) { 787 786 char *p; … … 795 794 atr_free_one(ptr); 796 795 AttrCount(thing)--; 797 796 798 797 /* If this was the only leaf of a tree, clear the AF_ROOT flag from 799 798 * the parent. */ … … 811 810 if (!atr_sub_branch(root)) 812 811 AL_FLAGS(root) &= ~AF_ROOT; 813 } 812 } 814 813 } 815 814 … … 1724 1723 was_hearer = Hearer(thing); 1725 1724 was_listener = Listener(thing); 1726 res = 1727 s ? atr_add(thing, name, s, player, (flags & 0x02) ? AF_NOPROG : 0) 1725 res = s ? atr_add(thing, name, s, player, (flags & 0x02) ? AF_NOPROG : 0) 1728 1726 : atr_clr(thing, name, player); 1729 1727 switch (res) { … … 1735 1733 if (!s) { 1736 1734 notify_format(player, 1737 T("Unable to remove '%s' because of a protected tree attribute."), 1735 T 1736 ("Unable to remove '%s' because of a protected tree attribute."), 1738 1737 name); 1739 1738 return 0; 1740 1739 } else { 1741 1740 notify_format(player, 1742 T("Unable to set '%s' because of a failure to create a needed parent attribute."), 1743 name); 1741 T 1742 ("Unable to set '%s' because of a failure to create a needed parent attribute."), 1743 name); 1744 1744 return 0; 1745 1745 } … … 1983 1983 * \return the pointer to an attribute, or NULL on error. 1984 1984 */ 1985 static ATTR *1985 static ATTR * 1986 1986 pop_free_list(void) 1987 1987 { … … 2000 2000 */ 2001 2001 static void 2002 push_free_list(ATTR *a) 2002 push_free_list(ATTR *a) 2003 2003 { 2004 2004 memset(a, 0, sizeof(*a)); 1.8.3/branches/devel/src/chunk.c
r815 r817 957 957 static void 958 958 write_used_chunk(uint16_t region, uint16_t offset, uint16_t full_len, 959 unsigned char const *data, uint16_t data_len, 960 uint8_t derefs) 959 unsigned char const *data, uint16_t data_len, uint8_t derefs) 961 960 { 962 961 unsigned char *cptr = ChunkPointer(region, offset); 1.8.3/branches/devel/src/csrimalloc.c
r807 r817 970 970 #ifdef CSRI_TRACE 971 971 /* Tracing malloc definitions - helps find leaks */ 972 univptr_t 973 trace__malloc 974 _((size_t nbytes, const char *fname, int linenum)); 975 univptr_t 976 trace__calloc 977 _((size_t nelem, size_t elsize, const char *fname, int linenum)); 978 univptr_t 979 trace__realloc 980 _((univptr_t cp, size_t nbytes, const char *fname, int linenum)); 981 univptr_t trace__valloc 982 _((size_t size, const char *fname, int linenum)); 983 univptr_t 984 trace__memalign 985 _((size_t alignment, size_t size, const char *fname, int linenum)); 986 univptr_t trace__emalloc 987 _((size_t nbytes, const char *fname, int linenum)); 972 univptr_t trace__malloc 973 _((size_t nbytes, const char *fname, int linenum)); 974 univptr_t trace__calloc 975 _((size_t nelem, size_t elsize, const char *fname, int linenum)); 976 univptr_t trace__realloc 977 _((univptr_t cp, size_t nbytes, const char *fname, int linenum)); 978 univptr_t trace__valloc _((size_t size, const char *fname, int linenum)); 979 univptr_t trace__memalign 980 _((size_t alignment, size_t size, const char *fname, int linenum)); 981 univptr_t trace__emalloc _((size_t nbytes, const char *fname, int linenum)); 988 982 univptr_t 989 983 trace__ecalloc _((size_t nelem, size_t sz, const char *fname, int linenum)); 990 univptr_t trace__erealloc 991 _((univptr_t ptr, size_t nbytes, const char *fname, int linenum)); 992 char *trace__strdup _((const char *s, const char *fname, int linenum)); 993 char *trace__strsave _((const char *s, const char *fname, int linenum)); 984 univptr_t 985 trace__erealloc 986 _((univptr_t ptr, size_t nbytes, const char *fname, int linenum)); 987 char * 988 trace__strdup 989 _((const char *s, const char *fname, int linenum)); 990 char * 991 trace__strsave 992 _((const char *s, const char *fname, int linenum)); 994 993 void 995 trace__free _((univptr_t cp, const char *fname, int linenum)); 994 trace__free 995 _((univptr_t cp, const char *fname, int linenum)); 996 996 void 997 trace__cfree _((univptr_t cp, const char *fname, int linenum)); 997 trace__cfree 998 _((univptr_t cp, const char *fname, int linenum)); 998 999 #else /* CSRI_TRACE */ 999 univptr_t 1000 malloc 1001 _((size_t nbytes)); 1002 univptr_t 1003 calloc 1004 _((size_t nelem, size_t elsize)); 1005 univptr_t 1006 realloc 1007 _((univptr_t cp, size_t nbytes)); 1008 univptr_t 1009 valloc 1010 _((size_t size)); 1011 univptr_t 1012 memalign 1013 _((size_t alignment, size_t size)); 1014 univptr_t 1015 emalloc 1016 _((size_t nbytes)); 1017 univptr_t 1018 ecalloc 1019 _((size_t nelem, size_t sz)); 1020 univptr_t 1021 erealloc 1022 _((univptr_t ptr, size_t nbytes)); 1023 Free_t free 1024 _((univptr_t cp)); 1025 Free_t cfree 1026 _((univptr_t cp)); 1000 univptr_t malloc 1001 _((size_t nbytes)); 1002 univptr_t calloc 1003 _((size_t nelem, size_t elsize)); 1004 univptr_t realloc 1005 _((univptr_t cp, size_t nbytes)); 1006 univptr_t valloc 1007 _((size_t size)); 1008 univptr_t memalign 1009 _((size_t alignment, size_t size)); 1010 univptr_t emalloc 1011 _((size_t nbytes)); 1012 univptr_t ecalloc 1013 _((size_t nelem, size_t sz)); 1014 univptr_t erealloc 1015 _((univptr_t ptr, size_t nbytes)); 1016 Free_t free _((univptr_t cp)); 1017 Free_t cfree _((univptr_t cp)); 1027 1018 #endif /* CSRI_TRACE */ 1028 1019 … … 1032 1023 int is_end_ptr, const char *filename, int linenumber)); 1033 1024 void 1034 __m_prnode _((SPBLK * spblk));1025 __m_prnode _((SPBLK * spblk)); 1035 1026 void 1036 mal_contents _((FILE * fp));1027 mal_contents _((FILE * fp)); 1037 1028 #ifdef CSRI_DEBUG 1038 1029 void 1039 mal_debug _((int level));1030 mal_debug _((int level)); 1040 1031 int 1041 mal_verify _((int fullcheck));1032 mal_verify _((int fullcheck)); 1042 1033 #endif 1043 1034 void 1044 mal_dumpleaktrace _((FILE * fp));1035 mal_dumpleaktrace _((FILE * fp)); 1045 1036 void 1046 mal_heapdump _((FILE * fp));1037 mal_heapdump _((FILE * fp)); 1047 1038 void 1048 mal_leaktrace _((int value));1039 mal_leaktrace _((int value)); 1049 1040 void 1050 mal_sbrkset _((int n));1041 mal_sbrkset _((int n)); 1051 1042 void 1052 mal_slopset _((int n));1043 mal_slopset _((int n)); 1053 1044 #ifdef CSRI_PROFILESIZES 1054 1045 void 1055 mal_statsdump _((FILE * fp));1046 mal_statsdump _((FILE * fp)); 1056 1047 #endif 1057 1048 void 1058 mal_trace _((int value));1049 mal_trace _((int value)); 1059 1050 void 1060 mal_mmap _((char *fname));1051 mal_mmap _((char *fname)); 1061 1052 1062 1053 #ifdef CSRI_TRACE 1.8.3/branches/devel/src/db.c
r815 r817 1382 1382 } 1383 1383 1384 if (IsPlayer(i) && (strlen(o->name) > (size_t) PLAYER_NAME_LIMIT)) {1384 if (IsPlayer(i) && (strlen(o->name) > (size_t) PLAYER_NAME_LIMIT)) { 1385 1385 char buff[BUFFER_LEN + 1]; /* The name plus a NUL */ 1386 1386 strncpy(buff, o->name, PLAYER_NAME_LIMIT); 1.8.3/branches/devel/src/gmalloc.c
r807 r817 378 378 379 379 /* Search index in the info table. */ 380 __malloc_size_t 381 _heapindex; 380 __malloc_size_t _heapindex; 382 381 383 382 /* Limit of valid info table indices. */ 384 __malloc_size_t 385 _heaplimit; 383 __malloc_size_t _heaplimit; 386 384 387 385 /* Free lists for each fragment size. */ … … 390 388 391 389 /* Instrumentation. */ 392 __malloc_size_t 393 _chunks_used; 394 __malloc_size_t 395 _bytes_used; 396 __malloc_size_t 397 _chunks_free; 398 __malloc_size_t 399 _bytes_free; 390 __malloc_size_t _chunks_used; 391 __malloc_size_t _bytes_used; 392 __malloc_size_t _chunks_free; 393 __malloc_size_t _bytes_free; 400 394 401 395 /* Are you experienced? */ 1.8.3/branches/devel/src/move.c
r815 r817 1179 1179 strcpy(flwr, unparse_dbref(follower)); 1180 1180 strcpy(tbuf1, atr_value(a)); 1181 (void) atr_add(leader, "FOLLOWERS", 1182 remove_word(tbuf1, flwr, ' '), GOD, 0); 1181 (void) atr_add(leader, "FOLLOWERS", remove_word(tbuf1, flwr, ' '), GOD, 0); 1183 1182 } 1184 1183 … … 1196 1195 strcpy(ldr, unparse_dbref(leader)); 1197 1196 strcpy(tbuf1, atr_value(a)); 1198 (void) atr_add(follower, "FOLLOWING", 1199 remove_word(tbuf1, ldr, ' '), GOD, 0); 1197 (void) atr_add(follower, "FOLLOWING", remove_word(tbuf1, ldr, ' '), GOD, 0); 1200 1198 } 1201 1199 1.8.3/branches/devel/src/set.c
r815 r817 1110 1110 case AE_TREE: 1111 1111 notify_format(player, 1112 T("Attribute %s cannot be wiped because a child attribute cannot be wiped."), 1112 T 1113 ("Attribute %s cannot be wiped because a child attribute cannot be wiped."), 1113 1114 AL_NAME(atr)); 1114 1115 /* Fall through */ 1.8.3/branches/devel/src/wiz.c
r815 r817 204 204 limit = owned; 205 205 206 (void) atr_add(Owner(who), "RQUOTA", tprintf("%d", limit - owned), GOD, 207 0); 206 (void) atr_add(Owner(who), "RQUOTA", tprintf("%d", limit - owned), GOD, 0); 208 207 209 208 notify_format(player, T("Objects: %d Limit: %d"), owned, limit); … … 270 269 (void) atr_add(who, "RQUOTA", "0", GOD, 0); 271 270 else 272 (void) atr_add(who, "RQUOTA", tprintf("%d", limit - owned), GOD, 273 0); 271 (void) atr_add(who, "RQUOTA", tprintf("%d", limit - owned), GOD, 0); 274 272 } 275 273 }
