Changeset 7:558d32200388 in miniini


Ignore:
Timestamp:
May 10, 2010 8:18:54 PM (3 years ago)
Author:
vadim@…
Branch:
default
Tags:
csl-wince
Message:

More VC++ compatibility fixes

Location:
miniini
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • miniini/include/inisection.h

    r5 r7  
    395395 
    396396        ///Allocates/initializes static data 
    397         static void InitTempData() 
    398         { 
    399             assert(!temptags); 
    400             assert(!tagbuf); 
    401             temptagscap = 8; 
    402             temptags = new miniini_private::c * [temptagscap]; 
    403             //MUST be over 6 
    404             tagcap = 64; 
    405             tagbuf = new miniini_private::c [tagcap]; 
    406         } 
    407          
     397        static void InitTempData(); 
     398        
    408399        ///Destroys static data 
    409         static void DestroyTempData() 
    410         { 
    411             assert(temptags); 
    412             assert(tagbuf); 
    413             temptagscap = 0; 
    414             delete [] temptags; 
    415             temptags = NULL; 
    416             tagcap = 0; 
    417             delete [] tagbuf; 
    418             tagbuf = NULL; 
    419         } 
     400        static void DestroyTempData(); 
    420401         
    421402        /// @cond PRIVATE 
  • miniini/src/inisection.cpp

    r6 r7  
    5050} 
    5151/// @endcond 
     52 
     53        ///Allocates/initializes static data 
     54void INISection::InitTempData() 
     55{ 
     56        assert(!temptags); 
     57        assert(!tagbuf); 
     58        temptagscap = 8; 
     59        temptags = new miniini_private::c * [temptagscap]; 
     60        //MUST be over 6 
     61        tagcap = 64; 
     62        tagbuf = new miniini_private::c [tagcap]; 
     63} 
     64     
     65///Destroys static data 
     66void INISection::DestroyTempData() 
     67{ 
     68    assert(temptags); 
     69    assert(tagbuf); 
     70    temptagscap = 0; 
     71    delete [] temptags; 
     72    temptags = NULL; 
     73    tagcap = 0; 
     74    delete [] tagbuf; 
     75    tagbuf = NULL; 
     76} 
     77 
    5278 
    5379inline LineToken INISection::TagName(const c * & currentcharref, ui & tagsize) 
Note: See TracChangeset for help on using the changeset viewer.