Add --disable-v1-string-abi option to remove backwards-compatible support for the nsAString vtable. Bug 273424, r+sr=darin.

git-svn-id: svn://10.0.0.236/trunk@168238 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bryner%brianryner.com
2005-01-24 16:44:41 +00:00
parent 645712b67e
commit 348b3c5fdb
24 changed files with 923 additions and 826 deletions

View File

@@ -48,10 +48,14 @@
#endif
// convert fragment to |const substring_type&|
#ifdef MOZ_V1_STRING_ABI
#define TO_SUBSTRING(_v) \
( (_v)->mVTable == obsolete_string_type::sCanonicalVTable \
? *(_v)->AsSubstring() \
: (_v)->ToSubstring() )
#else
#define TO_SUBSTRING(_v) (*(_v))
#endif
// define nsSubstringTuple
#include "string-template-def-unichar.h"