Diff for /parser3/src/classes/xnode.C between versions 1.53 and 1.54.4.1

version 1.53, 2002/10/15 15:12:57 version 1.54.4.1, 2003/03/17 14:48:05
Line 1 Line 1
 /** @file  /** @file
         Parser: @b dom parser class.          Parser: @b dom parser class.
   
         Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com)          Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com)
         Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)          Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
 */  */
 #include "classes.h"  #include "classes.h"
Line 343  static void _getElementsByTagName(Reques Line 343  static void _getElementsByTagName(Reques
                 for(gulong i=0; i<length; i++) {                  for(gulong i=0; i<length; i++) {
                         String& skey=*new(pool) String(pool);                          String& skey=*new(pool) String(pool);
                         {                          {
                                 char *buf=(char *)pool.malloc(MAX_NUMBER);                                  char *buf=(char *)pool.malloc_atomic(MAX_NUMBER);
                                 snprintf(buf, MAX_NUMBER, "%d", i);                                  snprintf(buf, MAX_NUMBER, "%d", i);
                                 skey << buf;                                  skey << buf;
                         }                          }
Line 379  static void _getElementsByTagNameNS(Requ Line 379  static void _getElementsByTagNameNS(Requ
                 for(gulong i=0; i<length; i++) {                  for(gulong i=0; i<length; i++) {
                         String& skey=*new(pool) String(pool);                          String& skey=*new(pool) String(pool);
                         {                          {
                                 char *buf=(char *)pool.malloc(MAX_NUMBER);                                  char *buf=(char *)pool.malloc_atomic(MAX_NUMBER);
                                 snprintf(buf, MAX_NUMBER, "%d", i);                                  snprintf(buf, MAX_NUMBER, "%d", i);
                                 skey << buf;                                  skey << buf;
                         }                          }
Line 457  static void selectNodesHandler(Pool& poo Line 457  static void selectNodesHandler(Pool& poo
                                 for(int i=0; i<size; i++) {                                  for(int i=0; i<size; i++) {
                                         String& skey=*new(pool) String(pool);                                          String& skey=*new(pool) String(pool);
                                         {                                          {
                                                 char *buf=(char *)pool.malloc(MAX_NUMBER);                                                  char *buf=(char *)pool.malloc_atomic(MAX_NUMBER);
                                                 snprintf(buf, MAX_NUMBER, "%d", i);                                                  snprintf(buf, MAX_NUMBER, "%d", i);
                                                 skey << buf;                                                  skey << buf;
                                         }                                          }

Removed from v.1.53  
changed lines
  Added in v.1.54.4.1


E-mail: