Annotation of parser3/src/main/pa_memory.C, revision 1.1.2.3

1.1.2.1   paf         1: /** @file
                      2:        Parser: memory reference counting classes.
                      3: 
                      4:        Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com)
                      5:        Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
                      6: */
                      7: 
1.1.2.3 ! paf         8: static const char* IDENT_MEMORY_C="$Date: 2003/02/21 10:58:57 $";
1.1.2.1   paf         9: 
                     10: #include "pa_pool.h"
                     11: #include "pa_exception.h"
                     12: #include "pa_common.h"
                     13: #include "pa_sapi.h"
                     14: 
1.1.2.2   paf        15: void *pa_fail_alloc(char *what, size_t size) {
1.1.2.3 ! paf        16:        SAPI::abort("out of memory: failed to %s %u bytes",
1.1.2.1   paf        17:                what, size);
                     18: 
                     19:        // never reached
                     20:        return 0;
                     21: }
                     22: 
                     23: /*
                     24: #ifdef XML
                     25: 
                     26: const char* Pool::transcode_cstr(xmlChar *s) {
                     27:        return get_source_charset().transcode_cstr(s); 
                     28: }
                     29: 
                     30: String& Pool::transcode(xmlChar *s
                     31: #ifndef NO_STRING_ORIGIN
                     32:                , const String *origin
                     33: #endif
                     34:                                                ) {
                     35:        return get_source_charset().transcode(s, origin); 
                     36: }
                     37: 
                     38: const char* Pool::transcode_cstr(GdomeDOMString *s) { 
                     39:        return get_source_charset().transcode_cstr(s); 
                     40: }
                     41: 
                     42: String& Pool::transcode(GdomeDOMString *s
                     43: #ifndef NO_STRING_ORIGIN
                     44:                , const String *origin
                     45: #endif
                     46:        ) { 
                     47:        return get_source_charset().transcode(s, origin);
                     48: }
                     49: 
                     50: xmlChar *Pool::transcode_buf2xchar(const char* buf, size_t buf_size) {
                     51:        return get_source_charset().transcode_buf2xchar(buf, buf_size); 
                     52: }
                     53: 
                     54: GdomeDOMString_auto_ptr Pool::transcode(const String& s) {
                     55:        return get_source_charset().transcode(s); 
                     56: }
                     57: 
                     58: #endif
                     59: */

E-mail: