Removal of outdated char_file_u warnings.

Adding of the appropropriate structs to the plrtoascii utility.
Incoorporation of changes from old circlemud CVS snapshot
this also gives more info on SYSERRors.
cleanup of zmalloc language (shit->tmp)
PRF_ROOMFLAGS has been renamed to PRF_SHOWVNUMS for clarity.
"Deaf" has been changed to "No_shout" in preference_bits, for clarity.
Addition of hindex (help index) command.
who command added argument -g and -l to check who are grouped (and 
leaders)
toggle has been expanded, and the commands nohassle, holylight, 
color, buildwalk, syslog and roomflags were moved to toggles.
renaming of some vars in dg files (xxx -> dg_xxx) for clarity.


set <player> password can now be used by other people than the first
 implementor - id check removed.


fix of a couple of minor bugs:
- crash bug related to freeing a pointer twice - ascii pfiles bug.
- host was not updated correctly after switch to ascii pfiles.

Todo: 
make "who #-#", "who #-" and "who -#" all work as "who -l #-#" did before 
Remove redundant commands which are now toggles.
Make script variables save to pfile instead of its own file.
This commit is contained in:
Rumble 2006-12-27 21:16:28 +00:00
parent 9607be0112
commit 047c5d0de3
45 changed files with 765 additions and 474 deletions

View file

@ -359,54 +359,54 @@ void zmalloc_free_list(meminfo *m)
main()
{
unsigned char * shit;
unsigned char * tmp;
printf("Testing Zmalloc.\n");
printf("Malloc test..");
printf("You should see no error here.\n");
shit = (unsigned char*)malloc(200);
free(shit);
tmp = (unsigned char*)malloc(200);
free(tmp);
printf("Free free mem test...\n");
printf("You should see an ERR: multiple frees here\n");
shit = (unsigned char*)malloc(200);
free(shit);
free(shit);
tmp = (unsigned char*)malloc(200);
free(tmp);
free(tmp);
/*
fprintf(zfd,"\nFree unallocated mem test \n");
shit += 4;
free(shit);
tmp += 4;
free(tmp);
*/
printf("Unfreed mem test...\n");
printf("You should see an \"UNfreed mem at line %d\" (at end) because of this\n",__LINE__+1);
shit = (unsigned char*)malloc(200);
tmp = (unsigned char*)malloc(200);
printf("Buffer overrun test 1...\n");
printf("You should see an ERR:endPad here\n");
shit = (unsigned char*)malloc(200);
shit[200] = 0xfa;
free(shit);
tmp = (unsigned char*)malloc(200);
tmp[200] = 0xfa;
free(tmp);
printf("Buffer overrun test 2...\n");
printf("You should see an ERR:endPad here\n");
shit = (unsigned char*)malloc(200);
shit[215] = 0xbb;
free(shit);
tmp = (unsigned char*)malloc(200);
tmp[215] = 0xbb;
free(tmp);
printf("Buffer underrun test 1...\n");
printf("You should see an ERR:beginPad here\n");
shit = (unsigned char*)malloc(200);
shit[-10] = 0x0f;
free(shit);
tmp = (unsigned char*)malloc(200);
tmp[-10] = 0x0f;
free(tmp);
printf("Buffer underrun test 2...\n");
printf("You should see an ERR:beginPad here\n");
shit = (unsigned char*)malloc(200);
shit[-1] = 0x00;
free(shit);
tmp = (unsigned char*)malloc(200);
tmp[-1] = 0x00;
free(tmp);
zmalloc_check();