PennMUSH Community

Changeset 495

Show
Ignore:
Timestamp:
08/16/06 02:23:39 (2 years ago)
Author:
pennmush
Message:

PennMUSH 1.8.0p6 Archival

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 1.8.0/CHANGES.180

    r493 r495  
    1212 
    1313========================================================================== 
     14 
     15Version 1.8.0 patchlevel 6                      June 24, 2005 
     16 
     17Fixes: 
     18  * Weird logging ouput with function logargs fixed. Report by Sholevi@M*U*S*H. 
     19  * sort() and set functions now ignore ansi. Patch by Walker@M*U*S*H. 
     20  * @hook memory leak fixed. Reported by Shari@M*U*S*H. 
     21 
    1422 
    1523Version 1.8.0 patchlevel 5                      May 30, 2005 
  • 1.8.0/Patchlevel

    r493 r495  
    11Do not edit this file. It is maintained by the official PennMUSH patches. 
    2 This is PennMUSH 1.8.0p5 
     2This is PennMUSH 1.8.0p6 
  • 1.8.0/game/txt/hlp/pennv180.hlp

    r493 r495  
    1 & 1.8.0p5 
     1& 1.8.0p6 
    22& changes 
    33This is a list of changes in this patchlevel which are probably of 
     
    1212be read in 'help patchlevels'. 
    1313 
     14Version 1.8.0 patchlevel 6                      June 24, 2005 
     15 
     16Fixes: 
     17  * Weird logging ouput with function logargs fixed. Report by Sholevi@M*U*S*H. 
     18  * sort() and set functions now ignore ansi. Patch by Walker@M*U*S*H. 
     19  * @hook memory leak fixed. Reported by Shari@M*U*S*H. 
     20 
     21 
     22& 1.8.0p5 
    1423Version 1.8.0 patchlevel 5                      May 30, 2005 
    1524 
  • 1.8.0/game/txt/hlp/pennvOLD.hlp

    r493 r495  
    44184418type 'help <version>p<patchlevel>'. For example, 'help 1.7.2p3' 
    44194419 
    4420 1.8.0: 0, 1, 2, 3, 4, 5 
     44201.8.0: 0, 1, 2, 3, 4, 5, 6 
    442144211.7.7: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 
    44224422       19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 
  • 1.8.0/hdrs/externs.h

    r477 r495  
    570570    extern void save_global_regs(const char *funcname, char *preserve[]); 
    571571    extern void restore_global_regs(const char *funcname, char *preserve[]); 
     572    extern void free_global_regs(const char *funcname, char *preserve[]); 
     573    extern void init_global_regs(char *preserve[]); 
    572574    extern void load_global_regs(char *preserve[]); 
    573575    extern void save_global_env(const char *funcname, char *preserve[]); 
  • 1.8.0/hdrs/version.h

    r493 r495  
    11#define VERSION "1.8.0" 
    2 #define PATCHLEVEL "5
    3 #define PATCHDATE "[05/30/2005]" 
    4 #define NUMVERSION 1008000005 
     2#define PATCHLEVEL "6
     3#define PATCHDATE "[06/24/2005]" 
     4#define NUMVERSION 1008000006 
  • 1.8.0/src/access.c

    r493 r495  
    282282} 
    283283 
     284#ifdef FORCE_IPV4 
    284285static char * 
    285286ip4_to_ip6(const char *addr) 
     
    292293  return tbuf1; 
    293294} 
     295#endif 
    294296 
    295297 
  • 1.8.0/src/command.c

    r493 r495  
    11711171    return NULL; 
    11721172  } else { 
    1173     char *saveregs[NUMQ] = { NULL }; 
     1173    char *saveregs[NUMQ]; 
     1174    init_global_regs(saveregs); 
    11741175    /* If we have a hook/ignore that returns false, we don't do the command */ 
    11751176    if (run_hook(player, cause, &cmd->hooks.ignore, saveregs, 1)) { 
     
    11911192      retval = commandraw; 
    11921193    } 
     1194    free_global_regs("hook.regs", saveregs); 
    11931195  } 
    11941196 
     
    12081210{ 
    12091211  COMMAND_INFO *cmd; 
    1210   char *saveregs[NUMQ] = { NULL }
     1212  char *saveregs[NUMQ]
    12111213 
    12121214  if ((cmd = command_find("HUH_COMMAND"))) { 
    12131215    if (!(cmd->type & CMD_T_DISABLED)) { 
     1216      init_global_regs(saveregs); 
    12141217      if (run_hook(player, cause, &cmd->hooks.ignore, saveregs, 1)) { 
    12151218    /* If we have a hook/override, we use that instead */ 
     
    12271230      do_log(LT_HUH, player, cause, "%s", string); 
    12281231      } 
     1232      free_global_regs("hook.regs", saveregs); 
    12291233    } 
    12301234  } 
  • 1.8.0/src/function.c

    r479 r495  
    7272      strcpy(global_eval_context.renv[i], preserve[i]); 
    7373      mush_free(preserve[i], funcname); 
     74      preserve[i] = NULL; 
    7475    } else { 
    7576      global_eval_context.renv[i][0] = '\0'; 
    7677    } 
     78  } 
     79} 
     80 
     81/** Free the storage array for the q-registers, without restoring 
     82 * \param funcname name of function calling (for memory leak testing) 
     83 * \param preserve pointer to array to free q-registers from. 
     84 */ 
     85void 
     86free_global_regs(const char *funcname, char *preserve[]) 
     87{ 
     88  int i; 
     89  for (i = 0; i < NUMQ; i++) { 
     90    if (preserve[i]) 
     91      mush_free(preserve[i], funcname); 
     92  } 
     93} 
     94 
     95/** Initilalize an array for the q-registers, setting all NULL. 
     96 * \param preserve pointer to array to free q-registers from. 
     97 */ 
     98void 
     99init_global_regs(char *preserve[]) 
     100{ 
     101  int i; 
     102  for (i = 0; i < NUMQ; i++) { 
     103    preserve[i] = NULL; 
    77104  } 
    78105} 
  • 1.8.0/src/funlist.c

    r493 r495  
    1111#include <string.h> 
    1212#include <ctype.h> 
     13#include "ansi.h" 
    1314#include "conf.h" 
    1415#include "case.h" 
     
    790791GENRECORD(gen_alphanum) 
    791792{ 
    792   rec->str = rec->val; 
     793  int len; 
     794  if (strchr(rec->val, ESC_CHAR)) { 
     795    rec->str = mush_strdup(remove_markup(rec->val, &len), "genrecord"); 
     796    rec->freestr = 1; 
     797  } else { 
     798    rec->str = rec->val; 
     799  } 
    793800} 
    794801 
  • 1.8.0/src/parse.c

    r477 r495  
    11341134          safe_str(fargs[logi], logstr, &logp); 
    11351135          if (logi + 1 < nfargs) 
    1136             safe_str(fargs[logi], logstr, &logp); 
     1136            safe_chr(',', logstr, &logp); 
    11371137        } 
    11381138        safe_chr(')', logstr, &logp);