2001-09-28 20:14:13 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* ***** BEGIN LICENSE BLOCK *****
|
2004-04-18 14:21:17 +00:00
|
|
|
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
1999-05-18 21:43:13 +00:00
|
|
|
*
|
2004-04-18 14:21:17 +00:00
|
|
|
* The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
* 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
* the License. You may obtain a copy of the License at
|
|
|
|
* http://www.mozilla.org/MPL/
|
1999-05-18 21:43:13 +00:00
|
|
|
*
|
2001-09-28 20:14:13 +00:00
|
|
|
* Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* License.
|
1999-05-18 21:43:13 +00:00
|
|
|
*
|
1999-11-06 03:43:54 +00:00
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
2004-04-18 14:21:17 +00:00
|
|
|
* The Initial Developer of the Original Code is
|
2001-09-28 20:14:13 +00:00
|
|
|
* Netscape Communications Corporation.
|
|
|
|
* Portions created by the Initial Developer are Copyright (C) 1998
|
|
|
|
* the Initial Developer. All Rights Reserved.
|
1999-11-06 03:43:54 +00:00
|
|
|
*
|
2001-09-28 20:14:13 +00:00
|
|
|
* Contributor(s):
|
|
|
|
*
|
|
|
|
* Alternatively, the contents of this file may be used under the terms of
|
2004-04-18 14:21:17 +00:00
|
|
|
* either of the GNU General Public License Version 2 or later (the "GPL"),
|
|
|
|
* or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
2001-09-28 20:14:13 +00:00
|
|
|
* in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
* of those above. If you wish to allow use of your version of this file only
|
|
|
|
* under the terms of either the GPL or the LGPL, and not to allow others to
|
2004-04-18 14:21:17 +00:00
|
|
|
* use your version of this file under the terms of the MPL, indicate your
|
2001-09-28 20:14:13 +00:00
|
|
|
* decision by deleting the provisions above and replace them with the notice
|
|
|
|
* and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
* the provisions above, a recipient may use your version of this file under
|
2004-04-18 14:21:17 +00:00
|
|
|
* the terms of any one of the MPL, the GPL or the LGPL.
|
2001-09-28 20:14:13 +00:00
|
|
|
*
|
|
|
|
* ***** END LICENSE BLOCK ***** */
|
1999-05-18 21:43:13 +00:00
|
|
|
|
|
|
|
// Force references to all of the symbols that we want exported from
|
|
|
|
// the dll that are located in the .lib files we link with
|
|
|
|
|
2005-05-16 23:34:11 +00:00
|
|
|
#include <windows.h>
|
2005-06-13 16:45:22 +00:00
|
|
|
#include "nsXPCOMGlue.h"
|
1999-05-18 21:43:13 +00:00
|
|
|
#include "nsVoidArray.h"
|
2002-01-15 22:43:37 +00:00
|
|
|
#include "nsValueArray.h"
|
1999-05-18 21:43:13 +00:00
|
|
|
#include "nsIAtom.h"
|
2000-07-29 02:58:43 +00:00
|
|
|
#include "nsFixedSizeAllocator.h"
|
2002-01-24 06:48:58 +00:00
|
|
|
#include "nsRecyclingAllocator.h"
|
1999-05-18 21:43:13 +00:00
|
|
|
#include "nsIThread.h"
|
|
|
|
#include "nsDeque.h"
|
|
|
|
#include "nsTraceRefcnt.h"
|
2003-08-05 05:29:10 +00:00
|
|
|
#include "nsTraceRefcntImpl.h"
|
1999-05-18 21:43:13 +00:00
|
|
|
#include "nsXPIDLString.h"
|
|
|
|
#include "nsIEnumerator.h"
|
|
|
|
#include "nsEnumeratorUtils.h"
|
|
|
|
#include "nsQuickSort.h"
|
2000-03-31 10:19:31 +00:00
|
|
|
#include "nsString.h"
|
2001-08-30 04:42:01 +00:00
|
|
|
#include "nsPrintfCString.h"
|
1999-11-10 02:11:08 +00:00
|
|
|
#include "nsSupportsArray.h"
|
2002-10-07 19:11:18 +00:00
|
|
|
#include "nsArray.h"
|
|
|
|
#include "nsArrayEnumerator.h"
|
2003-10-06 03:05:40 +00:00
|
|
|
#include "nsProxyRelease.h"
|
1999-05-26 01:38:36 +00:00
|
|
|
#include "xpt_xdr.h"
|
|
|
|
#include "xptcall.h"
|
2000-01-28 23:35:55 +00:00
|
|
|
#include "nsILocalFile.h"
|
1999-06-03 21:51:14 +00:00
|
|
|
#include "nsIGenericFactory.h"
|
2000-01-05 03:56:47 +00:00
|
|
|
#include "nsIPipe.h"
|
2003-01-18 02:15:14 +00:00
|
|
|
#include "nsStreamUtils.h"
|
1999-08-11 23:48:08 +00:00
|
|
|
#include "nsWeakReference.h"
|
2000-01-17 22:32:13 +00:00
|
|
|
#include "nsTextFormatter.h"
|
2002-02-19 00:13:29 +00:00
|
|
|
#include "nsIStorageStream.h"
|
2006-01-02 02:30:32 +00:00
|
|
|
#include "nsStringStream.h"
|
1999-12-02 00:31:45 +00:00
|
|
|
#include "nsLinebreakConverter.h"
|
1999-11-16 21:14:52 +00:00
|
|
|
#include "nsIBinaryInputStream.h"
|
1999-11-28 02:17:24 +00:00
|
|
|
#include "nsIInterfaceRequestor.h"
|
2001-09-05 21:28:38 +00:00
|
|
|
#include "nsIInterfaceRequestorUtils.h"
|
2000-08-23 17:27:06 +00:00
|
|
|
#include "nsReadableUtils.h"
|
2000-08-22 05:59:06 +00:00
|
|
|
#include "nsStaticNameTable.h"
|
2001-01-22 22:38:43 +00:00
|
|
|
#include "nsProcess.h"
|
2003-03-10 21:09:31 +00:00
|
|
|
#include "nsStringEnumerator.h"
|
2001-06-17 05:23:38 +00:00
|
|
|
#include "nsIInputStreamTee.h"
|
2002-10-03 03:43:11 +00:00
|
|
|
#include "nsCheapSets.h"
|
1999-10-29 03:26:50 +00:00
|
|
|
#ifdef DEBUG
|
|
|
|
#include "pure.h"
|
|
|
|
#endif
|
2003-04-02 06:53:57 +00:00
|
|
|
#include "nsHashKeys.h"
|
2003-04-10 13:27:16 +00:00
|
|
|
#include "nsTHashtable.h"
|
2000-08-31 13:29:29 +00:00
|
|
|
#include "pldhash.h"
|
2001-10-31 23:35:07 +00:00
|
|
|
#include "nsVariant.h"
|
2003-03-15 01:04:32 +00:00
|
|
|
#include "nsEscape.h"
|
2003-10-06 02:28:17 +00:00
|
|
|
#include "nsStreamUtils.h"
|
2004-10-25 19:34:45 +00:00
|
|
|
#include "nsNativeCharsetUtils.h"
|
2004-11-15 20:16:52 +00:00
|
|
|
#include "nsInterfaceRequestorAgg.h"
|
2004-11-24 23:21:14 +00:00
|
|
|
#include "nsHashPropertyBag.h"
|
2004-11-30 02:41:31 +00:00
|
|
|
#include "nsStringAPI.h"
|
2005-02-02 22:18:37 +00:00
|
|
|
#include "nsStringBuffer.h"
|
2005-05-16 21:33:33 +00:00
|
|
|
|
|
|
|
#ifndef WINCE
|
2005-05-16 21:23:09 +00:00
|
|
|
#include "nsWindowsRegKey.h"
|
2005-05-16 21:33:33 +00:00
|
|
|
#endif
|
2004-02-19 02:44:03 +00:00
|
|
|
|
1999-05-18 21:43:13 +00:00
|
|
|
void XXXNeverCalled()
|
|
|
|
{
|
2005-09-01 12:50:53 +00:00
|
|
|
GRE_GetGREPathWithProperties(nsnull, 0, nsnull, 0, nsnull, 0);
|
2000-01-17 22:32:13 +00:00
|
|
|
nsTextFormatter::snprintf(nsnull,0,nsnull);
|
2000-03-05 10:14:50 +00:00
|
|
|
nsTextFormatter::smprintf(nsnull, nsnull);
|
|
|
|
nsTextFormatter::smprintf_free(nsnull);
|
1999-05-18 21:43:13 +00:00
|
|
|
nsVoidArray();
|
2001-12-21 01:10:07 +00:00
|
|
|
nsSmallVoidArray();
|
2002-08-06 04:15:10 +00:00
|
|
|
nsStringHashSet();
|
|
|
|
nsCStringHashSet();
|
|
|
|
nsInt32HashSet();
|
|
|
|
nsVoidHashSet();
|
2002-10-03 03:43:11 +00:00
|
|
|
nsCheapStringSet();
|
|
|
|
nsCheapInt32Set();
|
2002-01-15 22:43:37 +00:00
|
|
|
nsValueArray(0);
|
1999-11-10 02:10:39 +00:00
|
|
|
nsSupportsArray();
|
1999-05-18 21:43:13 +00:00
|
|
|
NS_GetNumberOfAtoms();
|
2003-06-03 10:52:26 +00:00
|
|
|
NS_NewPipe2(nsnull, nsnull, PR_FALSE, PR_FALSE, 0, 0, nsnull);
|
|
|
|
NS_NewInputStreamReadyEvent(nsnull, nsnull, nsnull);
|
|
|
|
NS_NewOutputStreamReadyEvent(nsnull, nsnull, nsnull);
|
2003-10-06 02:28:17 +00:00
|
|
|
NS_AsyncCopy(nsnull, nsnull, nsnull, NS_ASYNCCOPY_VIA_READSEGMENTS, 0, nsnull, nsnull);
|
2005-12-12 00:47:21 +00:00
|
|
|
{
|
|
|
|
nsCString temp;
|
|
|
|
NS_ConsumeStream(nsnull, 0, temp);
|
|
|
|
}
|
2005-03-26 02:20:36 +00:00
|
|
|
NS_InputStreamIsBuffered(nsnull);
|
|
|
|
NS_OutputStreamIsBuffered(nsnull);
|
2006-01-11 01:50:15 +00:00
|
|
|
NS_CopySegmentToStream(nsnull, nsnull, nsnull, 0, 0, nsnull);
|
|
|
|
NS_CopySegmentToBuffer(nsnull, nsnull, nsnull, 0, 0, nsnull);
|
|
|
|
NS_DiscardSegment(nsnull, nsnull, nsnull, 0, 0, nsnull);
|
2006-01-02 02:30:32 +00:00
|
|
|
NS_NewByteInputStream(nsnull, nsnull, 0, NS_ASSIGNMENT_COPY);
|
|
|
|
NS_NewCStringInputStream(nsnull, nsCString());
|
|
|
|
NS_NewStringInputStream(nsnull, nsString());
|
2003-04-10 13:27:16 +00:00
|
|
|
PL_DHashStubEnumRemove(nsnull, nsnull, nsnull, nsnull);
|
2003-06-03 10:52:26 +00:00
|
|
|
nsIDHashKey::HashKey(nsnull);
|
2000-07-29 02:58:43 +00:00
|
|
|
nsFixedSizeAllocator a;
|
2002-01-24 06:48:58 +00:00
|
|
|
nsRecyclingAllocator recyclingAllocator(2);
|
2000-07-29 03:13:41 +00:00
|
|
|
a.Init(0, 0, 0, 0, 0);
|
|
|
|
a.Alloc(0);
|
|
|
|
a.Free(0, 0);
|
2003-06-03 10:52:26 +00:00
|
|
|
nsIThread::GetCurrent(nsnull);
|
2005-06-03 15:00:34 +00:00
|
|
|
nsDeque d(nsnull);
|
|
|
|
nsDequeIterator di(d);
|
2003-08-05 05:29:10 +00:00
|
|
|
nsTraceRefcnt::LogAddCOMPtr(nsnull, nsnull);
|
|
|
|
nsTraceRefcntImpl::DumpStatistics();
|
2003-06-03 10:52:26 +00:00
|
|
|
NS_NewEmptyEnumerator(nsnull);
|
2004-01-15 06:14:18 +00:00
|
|
|
new nsArrayEnumerator(nsnull);
|
2003-06-03 10:52:26 +00:00
|
|
|
NS_QuickSort(nsnull, 0, 0, nsnull, nsnull);
|
2000-03-31 09:08:17 +00:00
|
|
|
nsString();
|
2003-10-06 03:05:40 +00:00
|
|
|
NS_ProxyRelease(nsnull, nsnull, PR_FALSE);
|
2003-06-03 10:52:26 +00:00
|
|
|
XPT_DoString(nsnull, nsnull, nsnull);
|
|
|
|
XPT_DoHeader(nsnull, nsnull, nsnull);
|
2005-01-30 21:33:47 +00:00
|
|
|
#if defined (DEBUG) && !defined (WINCE)
|
1999-10-29 03:26:50 +00:00
|
|
|
PurePrintf(0);
|
1999-05-26 01:38:36 +00:00
|
|
|
#endif
|
2003-06-03 10:52:26 +00:00
|
|
|
XPTC_InvokeByIndex(nsnull, 0, 0, nsnull);
|
1999-05-26 01:38:36 +00:00
|
|
|
xptc_dummy();
|
1999-06-12 04:30:13 +00:00
|
|
|
xptc_dummy2();
|
2003-06-03 10:52:26 +00:00
|
|
|
NS_NewGenericFactory(nsnull, nsnull);
|
|
|
|
NS_NewGenericModule2(nsnull, nsnull);
|
|
|
|
NS_GetWeakReference(nsnull);
|
1999-11-28 02:17:24 +00:00
|
|
|
nsCOMPtr<nsISupports> dummyFoo(do_GetInterface(nsnull));
|
2002-02-19 00:13:29 +00:00
|
|
|
NS_NewStorageStream(0,0, nsnull);
|
2000-01-05 03:56:47 +00:00
|
|
|
nsString foo;
|
2001-08-30 04:42:01 +00:00
|
|
|
nsPrintfCString bar("");
|
2000-01-05 03:56:47 +00:00
|
|
|
nsLinebreakConverter::ConvertStringLineBreaks(foo,
|
2000-01-28 23:35:55 +00:00
|
|
|
nsLinebreakConverter::eLinebreakAny, nsLinebreakConverter::eLinebreakContent);
|
2005-01-04 19:31:31 +00:00
|
|
|
NS_NewLocalFile(EmptyString(), PR_FALSE, nsnull);
|
|
|
|
NS_NewNativeLocalFile(EmptyCString(), PR_FALSE, nsnull);
|
2004-01-15 06:14:18 +00:00
|
|
|
new nsProcess();
|
2000-08-22 05:59:06 +00:00
|
|
|
nsStaticCaseInsensitiveNameTable();
|
2000-08-23 17:27:06 +00:00
|
|
|
nsAutoString str1;
|
2004-02-19 02:44:03 +00:00
|
|
|
str1.AssignWithConversion(nsnull, 0);
|
2000-08-23 17:27:06 +00:00
|
|
|
nsCAutoString str2;
|
|
|
|
ToNewUnicode(str1);
|
|
|
|
ToNewUnicode(str2);
|
|
|
|
ToNewCString(str1);
|
|
|
|
ToNewCString(str2);
|
2003-06-03 10:52:26 +00:00
|
|
|
PL_DHashTableFinish(nsnull);
|
|
|
|
NS_NewInputStreamTee(nsnull, nsnull, nsnull);
|
2002-10-07 19:11:18 +00:00
|
|
|
NS_NewArray(nsnull);
|
|
|
|
nsCOMArray<nsISupports> dummyArray;
|
|
|
|
NS_NewArray(nsnull, dummyArray);
|
|
|
|
NS_NewArrayEnumerator(nsnull, dummyArray);
|
2004-01-15 06:14:18 +00:00
|
|
|
new nsVariant();
|
2003-03-15 01:04:32 +00:00
|
|
|
nsUnescape(nsnull);
|
|
|
|
nsEscape(nsnull, url_XAlphas);
|
2003-03-10 21:09:31 +00:00
|
|
|
nsStringArray array;
|
|
|
|
NS_NewStringEnumerator(nsnull, &array);
|
|
|
|
NS_NewAdoptingStringEnumerator(nsnull, &array);
|
|
|
|
nsCStringArray carray;
|
|
|
|
NS_NewUTF8StringEnumerator(nsnull, &carray);
|
|
|
|
NS_NewAdoptingUTF8StringEnumerator(nsnull, &carray);
|
2003-10-09 16:59:23 +00:00
|
|
|
nsVoidableString str3;
|
2004-03-06 03:29:49 +00:00
|
|
|
{
|
|
|
|
nsAdoptingCString foo, bar;
|
|
|
|
foo = bar;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
nsAdoptingString foo, bar;
|
|
|
|
foo = bar;
|
|
|
|
}
|
2004-10-25 19:34:45 +00:00
|
|
|
NS_CopyNativeToUnicode(str2, str1);
|
|
|
|
NS_CopyUnicodeToNative(str1, str2);
|
2004-11-01 20:22:49 +00:00
|
|
|
{
|
|
|
|
nsID id;
|
2004-11-23 20:53:38 +00:00
|
|
|
CallCreateInstance(id, nsnull, id, nsnull);
|
|
|
|
CallCreateInstance("", nsnull, id, nsnull);
|
|
|
|
CallGetClassObject(id, id, nsnull);
|
2004-11-23 21:39:51 +00:00
|
|
|
CallGetClassObject("", id, nsnull);
|
2004-11-08 01:27:35 +00:00
|
|
|
|
|
|
|
nsServiceManager::GetGlobalServiceManager(nsnull);
|
2004-11-01 20:22:49 +00:00
|
|
|
}
|
2004-11-15 20:16:52 +00:00
|
|
|
NS_NewInterfaceRequestorAggregation(nsnull, nsnull, nsnull);
|
2004-11-24 23:21:14 +00:00
|
|
|
NS_NewHashPropertyBag(nsnull);
|
2004-11-25 07:03:20 +00:00
|
|
|
nsDependentString depstring;
|
|
|
|
depstring.Rebind(nsnull, PRUint32(0));
|
|
|
|
nsDependentCString depcstring;
|
|
|
|
depcstring.Rebind(nsnull, PRUint32(0));
|
2004-11-30 02:41:31 +00:00
|
|
|
// nsStringAPI
|
|
|
|
nsCStringContainer sc1;
|
|
|
|
NS_CStringContainerInit(sc1);
|
|
|
|
NS_CStringContainerInit2(sc1, nsnull, 0, 0);
|
|
|
|
NS_CStringContainerFinish(sc1);
|
|
|
|
NS_CStringGetData(str2, nsnull, nsnull);
|
2005-04-27 01:38:35 +00:00
|
|
|
NS_CStringGetMutableData(str2, 0, nsnull);
|
2004-11-30 02:41:31 +00:00
|
|
|
NS_CStringSetData(str2, nsnull, 0);
|
|
|
|
NS_CStringSetDataRange(str2, 0, 0, nsnull, 0);
|
|
|
|
NS_CStringCopy(str2, str2);
|
|
|
|
NS_CStringCloneData(str2);
|
|
|
|
nsStringContainer sc2;
|
|
|
|
NS_StringContainerInit(sc2);
|
|
|
|
NS_StringContainerInit2(sc2, nsnull, 0, 0);
|
|
|
|
NS_StringContainerFinish(sc2);
|
|
|
|
NS_StringGetData(str1, nsnull, nsnull);
|
2005-04-27 01:38:35 +00:00
|
|
|
NS_StringGetMutableData(str1, 0, nsnull);
|
2004-11-30 02:41:31 +00:00
|
|
|
NS_StringSetData(str1, nsnull, 0);
|
|
|
|
NS_StringSetDataRange(str1, 0, 0, nsnull, 0);
|
|
|
|
NS_StringCopy(str1, str1);
|
|
|
|
NS_StringCloneData(str1);
|
|
|
|
NS_UTF16ToCString(str1, NS_CSTRING_ENCODING_ASCII, str2);
|
|
|
|
NS_CStringToUTF16(str2, NS_CSTRING_ENCODING_ASCII, str1);
|
2005-02-02 22:18:37 +00:00
|
|
|
|
|
|
|
// nsStringBuffer.h
|
|
|
|
{
|
|
|
|
nsString x;
|
|
|
|
nsCString y;
|
|
|
|
nsStringBuffer b;
|
|
|
|
b.AddRef();
|
|
|
|
b.Release();
|
|
|
|
nsStringBuffer::Alloc(0);
|
|
|
|
nsStringBuffer::Realloc(nsnull, 0);
|
|
|
|
nsStringBuffer::FromString(x);
|
|
|
|
nsStringBuffer::FromString(y);
|
|
|
|
b.ToString(0, x);
|
|
|
|
b.ToString(0, y);
|
|
|
|
}
|
2005-05-16 21:23:09 +00:00
|
|
|
|
2005-05-16 21:33:33 +00:00
|
|
|
#ifndef WINCE
|
2005-05-16 21:23:09 +00:00
|
|
|
NS_NewWindowsRegKey(nsnull);
|
2005-05-16 21:33:33 +00:00
|
|
|
#endif
|
2001-03-12 20:43:02 +00:00
|
|
|
}
|