archives.* Aggiunti metodi di compressione a 32 bit che emulano quelli a 16
array.cpp Aggiunte qua e la' delete [] doc.h Aggiunto DOC_DOCEVASO dongle.cpp Ripristinato case dongle_network erroneamente cancellato git-svn-id: svn://10.65.10.50/trunk@6774 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									9591797601
								
							
						
					
					
						commit
						feb451e50d
					
				| @ -993,3 +993,28 @@ bool TArchive::unzip(long firm, char floppy, bool temp) | ||||
|   } | ||||
|   return ok;   | ||||
| } | ||||
| 
 | ||||
| #if XVT_OS == XVT_OS_WIN32 | ||||
| 
 | ||||
| bool TArchive::backup(const char* dir, char floppy, const char* desc) | ||||
| { | ||||
|   return zip(dir, floppy, desc); | ||||
| } | ||||
| 
 | ||||
| bool TArchive::backup(long firm, char floppy, const char* desc) | ||||
| { | ||||
|   return zip(firm, floppy, desc); | ||||
| } | ||||
| 
 | ||||
| bool TArchive::restore(const char* dir, char floppy, bool tmp)    | ||||
| { | ||||
|   return unzip(dir, floppy, tmp); | ||||
| } | ||||
| 
 | ||||
| bool TArchive::restore(long firm, char floppy, bool tmp) | ||||
| { | ||||
|   return unzip(firm, floppy, tmp); | ||||
| } | ||||
| 
 | ||||
| #endif | ||||
| 
 | ||||
|  | ||||
| @ -65,7 +65,6 @@ protected: | ||||
| // @access Public Member
 | ||||
| public:    | ||||
| 
 | ||||
| #if XVT_OS == XVT_OS_WIN | ||||
|   // @cmember Effettua il backup della directory
 | ||||
|   bool backup(const char* dir, char floppy, const char* desc); | ||||
|   // @cmember Effettua il backup della ditta
 | ||||
| @ -76,6 +75,7 @@ public: | ||||
|   // @cmember Effettua il restore della ditta
 | ||||
|   bool restore(long firm, char floppy, bool temp); | ||||
| 
 | ||||
| #if XVT_OS == XVT_OS_WIN | ||||
|   // @cmember Interrompe le operazioni
 | ||||
|   void stop_job(); | ||||
| #endif | ||||
|  | ||||
| @ -138,7 +138,7 @@ void TArray::resize( | ||||
|   if (_data != NULL) | ||||
|     memcpy(newdata, _data, _size*sizeof(TObject*)); | ||||
| 
 | ||||
|   if (_data != NULL) delete _data; | ||||
|   if (_data != NULL) delete [] _data; | ||||
| 
 | ||||
|   _size = arraysize; | ||||
|   _data = newdata; | ||||
| @ -640,7 +640,8 @@ int TPointer_array::insert(const TObject& object, int index, bool force) | ||||
| // TBit_array
 | ||||
| ///////////////////////////////////////////////////////////
 | ||||
| 
 | ||||
| TBit_array::TBit_array(long size) : _bit(NULL), _size(0) | ||||
| TBit_array::TBit_array(long size)  | ||||
|           : _bit(NULL), _size(0) | ||||
| { | ||||
|   if (size) | ||||
|     resize(index(size)); | ||||
| @ -676,7 +677,8 @@ TBit_array& TBit_array::operator=(const TBit_array& ba) | ||||
| 
 | ||||
| TBit_array::~TBit_array() | ||||
| { | ||||
|   if (_bit)     delete _bit; | ||||
|   if (_bit) | ||||
|     delete [] _bit; | ||||
| } | ||||
| 
 | ||||
| // Certified 100%
 | ||||
| @ -713,7 +715,7 @@ void TBit_array::resize( | ||||
|   if (oldsize) | ||||
|   { | ||||
|     memcpy(_bit, oldbit, oldsize); | ||||
|     delete oldbit; | ||||
|     delete [] oldbit; | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| @ -727,7 +729,8 @@ bool TBit_array::operator[] (long n) const | ||||
| // Certified 99%
 | ||||
| TBit_array& TBit_array::operator|= (const TBit_array& ba) | ||||
| { | ||||
|   CHECK(_size >= ba._size, "TBit_array |=: right operand too big"); | ||||
|   if (_size < ba._size) | ||||
|     resize(ba._size); | ||||
| 
 | ||||
|   for (word i = 0; i < _size; i++) | ||||
|     _bit[i] |= ba._bit[i]; | ||||
| @ -739,7 +742,8 @@ TBit_array& TBit_array::operator|= (const TBit_array& ba) | ||||
| void TBit_array::set(long n) | ||||
| { | ||||
|   const word i = index(n); | ||||
|   if (i >= _size)       resize(i); | ||||
|   if (i >= _size) | ||||
|     resize(i); | ||||
|   _bit[i] |= mask(n); | ||||
| } | ||||
| 
 | ||||
| @ -852,7 +856,6 @@ long TBit_array::first_one() const | ||||
| // @flag FALSE | Se l'array e' vuoto
 | ||||
| bool TBit_array::ok() const | ||||
| 
 | ||||
| 
 | ||||
| // @comm Controlla se la dimensione dell'array e' maggiore di 0 e se esistono
 | ||||
| //       degli elementi diversi da NULL
 | ||||
| { | ||||
|  | ||||
| @ -70,6 +70,7 @@ | ||||
| #define DOC_G1            "G1" | ||||
| #define DOC_DATAAGG       "DATAAGG"  | ||||
| #define DOC_UTENTE        "UTENTE" | ||||
| #define DOC_DOCEVASO      "DOCEVASO" | ||||
| 
 | ||||
| 
 | ||||
| #endif | ||||
|  | ||||
| @ -479,6 +479,7 @@ bool TDongle::login(bool test_all_keys) | ||||
|   case _dongle_eutron:  | ||||
|     ok = eutron_login(test_all_keys);  | ||||
|     break; | ||||
|   case _dongle_network:  | ||||
|     ok = network_login(test_all_keys); | ||||
|     break; | ||||
|   default: | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user