Changeset 31 for Mulberry/trunk
- Timestamp:
- 04/28/07 22:56:27 (2 years ago)
- Location:
- Mulberry/trunk
- Files:
-
- 8 modified
-
Linux_v2/Sources/Application/Address_Book/CAddressTable.cp (modified) (4 diffs)
-
Linux_v2/Sources/Application/Address_Book/CGroupTable.cp (modified) (6 diffs)
-
Linux_v2/Sources/Application/Address_Search/CAdbkSearchTable.cp (modified) (1 diff)
-
Sources_Common/Mail/Filters/CAFFilter.cp (modified) (1 diff)
-
Sources_Common/Mail/Filters/CBinHexFilter.cp (modified) (2 diffs)
-
Sources_Common/Mail/Filters/CFilter.cp (modified) (3 diffs)
-
Sources_Common/Mail/Filters/CMIMEFilters.cp (modified) (4 diffs)
-
Sources_Common/Mail/Filters/CUUFilter.cp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Mulberry/trunk/Linux_v2/Sources/Application/Address_Book/CAddressTable.cp
r21 r31 859 859 CAddress** pAddr = reinterpret_cast<CAddress**>(data); 860 860 *((unsigned long*) pAddr) = addrs.size(); 861 pAddr += sizeof(unsigned long *);861 pAddr += sizeof(unsigned long); 862 862 for(CAddressList::iterator iter = addrs.begin(); iter != addrs.end(); iter++) 863 863 *pAddr++ = *iter; … … 902 902 { 903 903 unsigned long count = *((unsigned long*) drag_data); 904 drag_data += sizeof(unsigned long *);904 drag_data += sizeof(unsigned long); 905 905 for(unsigned long i = 0; i < count; i++) 906 906 { … … 977 977 { 978 978 unsigned long count = *((unsigned long*) drag_data); 979 drag_data += sizeof(unsigned long *);979 drag_data += sizeof(unsigned long); 980 980 for(unsigned long i = 0; i < count; i++) 981 981 { … … 997 997 { 998 998 unsigned long count = *((unsigned long*) drag_data); 999 drag_data += sizeof(unsigned long *);999 drag_data += sizeof(unsigned long); 1000 1000 for(unsigned long i = 0; i < count; i++) 1001 1001 { -
Mulberry/trunk/Linux_v2/Sources/Application/Address_Book/CGroupTable.cp
r21 r31 1220 1220 CGroup** pGrp = reinterpret_cast<CGroup**>(data); 1221 1221 *((unsigned long*) pGrp) = grps.size(); 1222 pGrp += sizeof(unsigned long *);1222 pGrp += sizeof(unsigned long); 1223 1223 for(CGroupList::iterator iter = grps.begin(); iter != grps.end(); iter++) 1224 1224 *pGrp++ = *iter; … … 1248 1248 CAddress** pAddr = reinterpret_cast<CAddress**>(data); 1249 1249 *((unsigned long*) pAddr) = addrs.size(); 1250 pAddr += sizeof(unsigned long *);1250 pAddr += sizeof(unsigned long); 1251 1251 for(CAddressList::iterator iter = addrs.begin(); iter != addrs.end(); iter++) 1252 1252 *pAddr++ = *iter; … … 1288 1288 { 1289 1289 unsigned long count = *((unsigned long*) drag_data); 1290 drag_data += sizeof(unsigned long *);1290 drag_data += sizeof(unsigned long); 1291 1291 1292 1292 CGroupTableNewAction* add_action = NULL; … … 1342 1342 { 1343 1343 unsigned long count = *((unsigned long*) drag_data); 1344 drag_data += sizeof(unsigned long *);1344 drag_data += sizeof(unsigned long); 1345 1345 for(unsigned long i = 0; i < count; i++) 1346 1346 { … … 1388 1388 { 1389 1389 unsigned long count = *((unsigned long*) drag_data); 1390 drag_data += sizeof(unsigned long *);1390 drag_data += sizeof(unsigned long); 1391 1391 for(unsigned long i = 0; i < count; i++) 1392 1392 { … … 1403 1403 { 1404 1404 unsigned long count = *((unsigned long*) drag_data); 1405 drag_data += sizeof(unsigned long *);1405 drag_data += sizeof(unsigned long); 1406 1406 for(unsigned long i = 0; i < count; i++) 1407 1407 { -
Mulberry/trunk/Linux_v2/Sources/Application/Address_Search/CAdbkSearchTable.cp
r21 r31 626 626 CAddress** pAddr = reinterpret_cast<CAddress**>(data); 627 627 *((unsigned long*) pAddr) = addrs.size(); 628 pAddr += sizeof(unsigned long *);628 pAddr += sizeof(unsigned long); 629 629 for(CAddressList::iterator iter = addrs.begin(); iter != addrs.end(); iter++) 630 630 *pAddr++ = *iter; -
Mulberry/trunk/Sources_Common/Mail/Filters/CAFFilter.cp
r19 r31 1066 1066 time_t reference = mktime(&appleRef); 1067 1067 *((long*) p) = htonl(file_status.st_ctime - reference); 1068 p += sizeof(long *);1068 p += sizeof(long); 1069 1069 *((long*) p) = htonl(file_status.st_mtime - reference); 1070 p += sizeof(long *);1070 p += sizeof(long); 1071 1071 *((long*) p) = htonl(cAppleFile_DateUnknown); 1072 p += sizeof(long *);1072 p += sizeof(long); 1073 1073 *((long*) p) = htonl(cAppleFile_DateUnknown); 1074 p += sizeof(long *);1074 p += sizeof(long); 1075 1075 1076 1076 // Add comment (none for Windows) -
Mulberry/trunk/Sources_Common/Mail/Filters/CBinHexFilter.cp
r19 r31 883 883 ThrowIfOSErr_(::SetFPos(mFileStream->GetResourceForkRefNum(), fsFromStart, 0L)); 884 884 #elif __dest_os == __win32_os || __dest_os == __linux_os 885 // In the begining É885 // In the begining 886 886 mFileStream->SeekToBegin(); 887 887 #else … … 950 950 // Copy type, creator, flags, data & resource fork lengths 951 951 *((OSType*) p) = htonl('TEXT'); 952 p += sizeof(OSType *);952 p += sizeof(OSType); 953 953 *((OSType*) p) = htonl('ttxt'); 954 p += sizeof(OSType *);954 p += sizeof(OSType); 955 955 *((short*) p) = 0; 956 p += sizeof(short *);956 p += sizeof(short); 957 957 *((long*) p) = htonl(mFileStream->GetLength()); 958 p += sizeof(long *);958 p += sizeof(long); 959 959 *((long*) p) = 0; 960 p += sizeof(long *);960 p += sizeof(long); 961 961 #endif 962 962 // Update buffer length -
Mulberry/trunk/Sources_Common/Mail/Filters/CFilter.cp
r19 r31 281 281 // Copy byte and adjust ctrs 282 282 *((unsigned char*) outBuffer) = *mLinePos++; 283 outBuffer += sizeof(unsigned char *);283 outBuffer += sizeof(unsigned char); 284 284 total++; 285 285 if (!--mLineLength) … … 316 316 { 317 317 *mBufferPos++ = *((unsigned char*) inBuffer); 318 inBuffer += sizeof(unsigned char *);318 inBuffer += sizeof(unsigned char); 319 319 total++; 320 320 mBufferLength++; … … 323 323 else 324 324 { 325 inBuffer += sizeof(unsigned char *);325 inBuffer += sizeof(unsigned char); 326 326 total++; 327 327 } -
Mulberry/trunk/Sources_Common/Mail/Filters/CMIMEFilters.cp
r19 r31 325 325 // Copy byte and adjust ctrs 326 326 *((unsigned char*) outBuffer) = *mLinePos++; 327 outBuffer += sizeof(unsigned char *);327 outBuffer += sizeof(unsigned char); 328 328 total++; 329 329 if (!--mLineLength) … … 584 584 // Copy byte and adjust ctrs 585 585 *((unsigned char*) outBuffer) = *mLinePos++; 586 outBuffer += sizeof(unsigned char *);586 outBuffer += sizeof(unsigned char); 587 587 total++; 588 588 if (!--mLineLength) … … 919 919 // Copy byte and adjust ctrs 920 920 *((unsigned char*) outBuffer) = *mLinePos++; 921 outBuffer += sizeof(unsigned char *);921 outBuffer += sizeof(unsigned char); 922 922 total++; 923 923 if (!--mLineLength) … … 952 952 unsigned char c; 953 953 c = *((unsigned char*) inBuffer); 954 inBuffer += sizeof(unsigned char *);954 inBuffer += sizeof(unsigned char); 955 955 total++; 956 956 -
Mulberry/trunk/Sources_Common/Mail/Filters/CUUFilter.cp
r19 r31 144 144 // Copy the char 145 145 *((unsigned char*) outBuffer) = *p++; 146 outBuffer += sizeof(unsigned char *);146 outBuffer += sizeof(unsigned char); 147 147 mBufferLength--; 148 148 total++; … … 212 212 // Copy byte and adjust ctrs 213 213 *((unsigned char*) outBuffer) = *mLinePos++; 214 outBuffer += sizeof(unsigned char *);214 outBuffer += sizeof(unsigned char); 215 215 total++; 216 216 if (!--mLineLength) … … 237 237 // Copy the char 238 238 *((unsigned char*) outBuffer) = *p++; 239 outBuffer += sizeof(unsigned char *);239 outBuffer += sizeof(unsigned char); 240 240 mBufferLength--; 241 241 total++; … … 645 645 } 646 646 #elif __dest_os == __win32_os || __dest_os == __linux_os 647 // In the begining É647 // In the begining 648 648 mFileStream->SeekToBegin(); 649 649 #else