Diff for /parser3/src/main/pa_stylesheet_manager.C between versions 1.12 and 1.16.2.2

version 1.12, 2002/02/08 07:27:49 version 1.16.2.2, 2003/02/17 12:13:44
Line 1 Line 1
 /** @file  /** @file
         Parser: sql driver manager implementation.          Parser: sql driver manager implementation.
   
         Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com)          Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com)
         Author: Alexander Petrosyan <paf@design.ru> (http://paf.design.ru)          Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
   
         $Id$  
 */  */
 #include "pa_config_includes.h"  #include "pa_config_includes.h"
 #ifdef XML  #ifdef XML
   
   static const char* IDENT_STYLESHEET_MANAGER_C="$Date$";
   
 #include "pa_stylesheet_manager.h"  #include "pa_stylesheet_manager.h"
 #include "pa_stylesheet_connection.h"  #include "pa_stylesheet_connection.h"
 #include "pa_exception.h"  #include "pa_exception.h"
Line 62  Stylesheet_connection_ptr Stylesheet_man Line 62  Stylesheet_connection_ptr Stylesheet_man
                 // then just construct it                  // then just construct it
   
                 // make global_file_spec C-string on global pool                  // make global_file_spec C-string on global pool
                 const char *request_file_spec_cstr=request_file_spec.cstr(String::UL_FILE_SPEC);                  const char* request_file_spec_cstr=request_file_spec.cstr(String::UL_FILE_SPEC);
                 char *global_file_spec_cstr=(char *)malloc(strlen(request_file_spec_cstr)+1);                  char *global_file_spec_cstr=(char *)malloc(strlen(request_file_spec_cstr)+1);
                 strcpy(global_file_spec_cstr, request_file_spec_cstr);                  strcpy(global_file_spec_cstr, request_file_spec_cstr);
                 // make global_file_spec string on global pool                  // make global_file_spec string on global pool
Line 134  static void add_connection_to_status_cac Line 134  static void add_connection_to_status_cac
                 row+=&connection.file_spec();                  row+=&connection.file_spec();
                 // time                  // time
                 time_t time_stamp=connection.get_time_used();                  time_t time_stamp=connection.get_time_used();
                 const char *unsafe_time_cstr=ctime(&time_stamp);                  row+=new(pool) String(pool, pool.copy(ctime(&time_stamp)));
                 int time_buf_size=strlen(unsafe_time_cstr);  
                 char *safe_time_buf=(char *)pool.malloc(time_buf_size);  
                 memcpy(safe_time_buf, unsafe_time_cstr, time_buf_size);  
                 row+=new(pool) String(pool, safe_time_buf, time_buf_size);  
   
                 table+=&row;                  table+=&row;
         }          }

Removed from v.1.12  
changed lines
  Added in v.1.16.2.2


E-mail: