ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/loader.l
(Generate patch)

Comparing deliantra/server/common/loader.l (file contents):
Revision 1.5 by root, Mon Jun 26 21:46:04 2006 UTC vs.
Revision 1.6 by root, Sat Jul 1 21:06:06 2006 UTC

1%{ 1%{
2/* 2/*
3 * static char *rcsid_object_c = 3 * static char *rcsid_object_c =
4 * "$Id: loader.l,v 1.5 2006/06/26 21:46:04 root Exp $"; 4 * "$Id: loader.l,v 1.6 2006/07/01 21:06:06 root Exp $";
5 */ 5 */
6 6
7/* 7/*
8 CrossFire, A Multiplayer game for X-windows 8 CrossFire, A Multiplayer game for X-windows
9 9
1647 * NEVER touch buf between PREPARE_FASTCAT(buf) and 1647 * NEVER touch buf between PREPARE_FASTCAT(buf) and
1648 * FINISH_FASTCAT(buf) 1648 * FINISH_FASTCAT(buf)
1649 */ 1649 */
1650 static int already_run = 0; 1650 static int already_run = 0;
1651 static int flag_lens[NUM_FLAGS]; 1651 static int flag_lens[NUM_FLAGS];
1652 static char buf2[HUGE_BUF]; 1652 char buf2[4096]; // / was HUFE_BUF, which was hugely incorrect, as is this value, but much less so
1653 static char buf[HUGE_BUF]; 1653 static char buf[128*1024]; // < the assumption is that every object always fits. fixing this bug, however
1654 char* fastbuf; 1654 char* fastbuf; // \ requires a large rewrite of the code, so its left to the next total rewrite.
1655 int tmp; 1655 int tmp;
1656 int i; 1656 int i;
1657#if 0
1658/*Memory polluting code. Should help detect problems, very slow*/
1659 for (i=0;i<HUGE_BUF;i++){
1660 buf[i]='a'+(unsigned short)(i%25);
1661 }
1662#endif
1663 event *etmp; 1657 event *etmp;
1664 event *etmp2; 1658 event *etmp2;
1665 key_value * my_field; 1659 key_value * my_field;
1666 key_value * arch_field; 1660 key_value * arch_field;
1667 1661

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines