vbox的更動 21113 路徑 trunk/src/libs/xpcom18a4/xpcom
- 時間撮記:
- 2009-7-1 上午11:48:47 (15 年 以前)
- 位置:
- trunk/src/libs/xpcom18a4/xpcom
- 檔案:
-
- 修改 4 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/libs/xpcom18a4/xpcom/base/nscore.h
r11440 r21113 431 431 #endif 432 432 433 #ifndef VBOX 433 434 /* 434 435 * Use these macros to do 64bit safe pointer conversions. … … 437 438 #define NS_PTR_TO_INT32(x) ((char *)(x) - (char *)0) 438 439 #define NS_INT32_TO_PTR(x) ((void *)((char *)0 + (x))) 440 #else /* VBOX */ 441 // This stuff is (contrary to the comment) totally 64bit unsafe, so strip 442 // it down to only do one direction, which is used by the hashing code. 443 #define NS_PTR_TO_INT32(x) ((PRInt32)((char *)(x) - (char *)0)) 444 #endif /* VBOX */ 439 445 440 446 /* -
trunk/src/libs/xpcom18a4/xpcom/ds/nsCheapSets.h
r1 r21113 83 83 84 84 private: 85 typedef unsigned longPtrBits;85 typedef PRUint64 PtrBits; 86 86 87 87 /** Get the hash pointer (or null if we're not a hash) */ … … 156 156 157 157 private: 158 typedef unsigned longPtrBits;158 typedef PRUint64 PtrBits; 159 159 160 160 /** Get the hash pointer (or null if we're not a hash) */ -
trunk/src/libs/xpcom18a4/xpcom/ds/nsVoidArray.h
r1 r21113 376 376 377 377 private: 378 typedef unsigned longPtrBits;378 typedef PRUint64 PtrBits; 379 379 380 380 PRBool HasSingleChild() const -
trunk/src/libs/xpcom18a4/xpcom/io/nsFastLoadService.cpp
r1 r21113 395 395 return rv; 396 396 397 #ifndef VBOX 397 398 mChecksumTable.Put(&key, NS_INT32_TO_PTR(checksum)); 399 #else /* VBOX */ 400 mChecksumTable.Put(&key, (void *)checksum); 401 #endif /* VBOX */ 398 402 *aChecksum = checksum; 399 403 return NS_OK; … … 418 422 419 423 nsCStringKey key(path); 424 #ifndef VBOX 420 425 mChecksumTable.Put(&key, NS_INT32_TO_PTR(checksum)); 426 #else /* VBOX */ 427 mChecksumTable.Put(&key, (void *)checksum); 428 #endif /* VBOX */ 421 429 return NS_OK; 422 430 }
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器