Back to index

lightning-sunbird  0.9+nobinonly
dlldeps.cpp
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00004  *
00005  * The contents of this file are subject to the Mozilla Public License Version
00006  * 1.1 (the "License"); you may not use this file except in compliance with
00007  * the License. You may obtain a copy of the License at
00008  * http://www.mozilla.org/MPL/
00009  *
00010  * Software distributed under the License is distributed on an "AS IS" basis,
00011  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012  * for the specific language governing rights and limitations under the
00013  * License.
00014  *
00015  * The Original Code is mozilla.org code.
00016  *
00017  * The Initial Developer of the Original Code is
00018  * Netscape Communications Corporation.
00019  * Portions created by the Initial Developer are Copyright (C) 1998
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Contributor(s):
00023  *
00024  * Alternatively, the contents of this file may be used under the terms of
00025  * either of the GNU General Public License Version 2 or later (the "GPL"),
00026  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00027  * in which case the provisions of the GPL or the LGPL are applicable instead
00028  * of those above. If you wish to allow use of your version of this file only
00029  * under the terms of either the GPL or the LGPL, and not to allow others to
00030  * use your version of this file under the terms of the MPL, indicate your
00031  * decision by deleting the provisions above and replace them with the notice
00032  * and other provisions required by the GPL or the LGPL. If you do not delete
00033  * the provisions above, a recipient may use your version of this file under
00034  * the terms of any one of the MPL, the GPL or the LGPL.
00035  *
00036  * ***** END LICENSE BLOCK ***** */
00037 
00038 // Force references to all of the symbols that we want exported from
00039 // the dll that are located in the .lib files we link with
00040 
00041 #include <windows.h>
00042 #include "nsXPCOMGlue.h"
00043 #include "nsVoidArray.h"
00044 #include "nsTArray.h"
00045 #include "nsValueArray.h"
00046 #include "nsIAtom.h"
00047 #include "nsIByteArrayInputStream.h"
00048 #include "nsFixedSizeAllocator.h"
00049 #include "nsRecyclingAllocator.h"
00050 #include "nsIThread.h"
00051 #include "nsDeque.h"
00052 #include "nsTraceRefcnt.h"
00053 #include "nsTraceRefcntImpl.h"
00054 #include "nsXPIDLString.h"
00055 #include "nsIEnumerator.h"
00056 #include "nsEnumeratorUtils.h"
00057 #include "nsQuickSort.h"
00058 #include "nsString.h"
00059 #include "nsPrintfCString.h"
00060 #include "nsSupportsArray.h"
00061 #include "nsArray.h"
00062 #include "nsArrayEnumerator.h"
00063 #include "nsProxyRelease.h"
00064 #include "xpt_xdr.h"
00065 #include "xptcall.h"
00066 #include "nsILocalFile.h"
00067 #include "nsIGenericFactory.h"
00068 #include "nsIPipe.h"
00069 #include "nsStreamUtils.h"
00070 #include "nsWeakReference.h"
00071 #include "nsTextFormatter.h"
00072 #include "nsIStorageStream.h"
00073 #include "nsLinebreakConverter.h"
00074 #include "nsIBinaryInputStream.h"
00075 #include "nsIInterfaceRequestor.h"
00076 #include "nsIInterfaceRequestorUtils.h"
00077 #include "nsReadableUtils.h"
00078 #include "nsStaticNameTable.h"
00079 #include "nsProcess.h"
00080 #include "nsStringEnumerator.h"
00081 #include "nsIInputStreamTee.h"
00082 #include "nsCheapSets.h"
00083 #ifdef DEBUG
00084 #include "pure.h"
00085 #endif
00086 #include "nsHashKeys.h"
00087 #include "nsTHashtable.h"
00088 #include "pldhash.h"
00089 #include "nsVariant.h"
00090 #include "nsEscape.h"
00091 #include "nsStreamUtils.h"
00092 #include "nsNativeCharsetUtils.h"
00093 #include "nsInterfaceRequestorAgg.h"
00094 #include "nsHashPropertyBag.h"
00095 #include "nsStringAPI.h"
00096 #include "nsStringBuffer.h"
00097 #include "nsCategoryCache.h"
00098 
00099 #ifndef WINCE
00100 #include "nsWindowsRegKey.h"
00101 #endif
00102 
00103 void XXXNeverCalled()
00104 {
00105     GRE_GetGREPathWithProperties(nsnull, 0, nsnull, 0, nsnull, 0);
00106     nsTextFormatter::snprintf(nsnull,0,nsnull);
00107     nsTextFormatter::smprintf(nsnull, nsnull);
00108     nsTextFormatter::smprintf_free(nsnull);
00109     nsVoidArray();
00110     nsSmallVoidArray();
00111     {
00112       nsTArray<PRBool> array1(1), array2(1);
00113       PRBool a, b, c;
00114       a = b = c = PR_FALSE;
00115       array1.AppendElement(a);
00116       array2.InsertElementAt(b, 0);
00117       array2.InsertElementAt(c, 0);
00118       array1.AppendElements(array2);
00119     }
00120     nsStringHashSet();
00121     nsCStringHashSet();
00122     nsInt32HashSet();
00123     nsVoidHashSet();
00124     nsCheapStringSet();
00125     nsCheapInt32Set();
00126     nsValueArray(0);
00127     nsSupportsArray();
00128     NS_GetNumberOfAtoms();
00129     NS_NewPipe2(nsnull, nsnull, PR_FALSE, PR_FALSE, 0, 0, nsnull);
00130     NS_NewInputStreamReadyEvent(nsnull, nsnull, nsnull);
00131     NS_NewOutputStreamReadyEvent(nsnull, nsnull, nsnull);
00132     NS_AsyncCopy(nsnull, nsnull, nsnull, NS_ASYNCCOPY_VIA_READSEGMENTS, 0, nsnull, nsnull);
00133     {
00134       nsCString temp;
00135       NS_ConsumeStream(nsnull, 0, temp);
00136     }
00137     NS_InputStreamIsBuffered(nsnull);
00138     NS_OutputStreamIsBuffered(nsnull);
00139     NS_CopySegmentToStream(nsnull, nsnull, nsnull, 0, 0, nsnull);
00140     NS_CopySegmentToBuffer(nsnull, nsnull, nsnull, 0, 0, nsnull);
00141     NS_DiscardSegment(nsnull, nsnull, nsnull, 0, 0, nsnull);
00142     NS_WriteSegmentThunk(nsnull, nsnull, nsnull, 0, 0, 0);
00143     PL_DHashStubEnumRemove(nsnull, nsnull, nsnull, nsnull);
00144     nsIDHashKey::HashKey(nsnull);
00145     nsFixedSizeAllocator a;
00146     nsRecyclingAllocator recyclingAllocator(2);
00147     a.Init(0, 0, 0, 0, 0);
00148     a.Alloc(0);
00149     a.Free(0, 0);
00150     nsIThread::GetCurrent(nsnull);
00151     nsDeque d(nsnull);
00152     nsDequeIterator di(d);
00153     nsTraceRefcnt::LogAddCOMPtr(nsnull, nsnull);
00154     nsTraceRefcntImpl::DumpStatistics();
00155     NS_NewEmptyEnumerator(nsnull);
00156     new nsArrayEnumerator(nsnull);
00157     NS_QuickSort(nsnull, 0, 0, nsnull, nsnull);
00158     nsString();
00159     NS_ProxyRelease(nsnull, nsnull, PR_FALSE);
00160     XPT_DoString(nsnull, nsnull, nsnull);
00161     XPT_DoHeader(nsnull, nsnull, nsnull);
00162 #if defined (DEBUG) && !defined (WINCE)
00163     PurePrintf(0);
00164 #endif
00165     XPTC_InvokeByIndex(nsnull, 0, 0, nsnull);
00166     xptc_dummy();
00167     xptc_dummy2();
00168     XPTI_GetInterfaceInfoManager();
00169     NS_NewGenericFactory(nsnull, nsnull);
00170     NS_NewGenericModule2(nsnull, nsnull);
00171     NS_GetWeakReference(nsnull);
00172     nsCOMPtr<nsISupports> dummyFoo(do_GetInterface(nsnull));
00173     NS_NewByteArrayInputStream(nsnull, nsnull, 0);
00174     NS_NewStorageStream(0,0, nsnull);
00175     nsString foo;
00176     nsPrintfCString bar("");
00177     nsLinebreakConverter::ConvertStringLineBreaks(foo, 
00178     nsLinebreakConverter::eLinebreakAny, nsLinebreakConverter::eLinebreakContent);
00179     NS_NewLocalFile(EmptyString(), PR_FALSE, nsnull);
00180     NS_NewNativeLocalFile(EmptyCString(), PR_FALSE, nsnull);
00181     new nsProcess();
00182     nsStaticCaseInsensitiveNameTable();
00183     nsAutoString str1;
00184     str1.AssignWithConversion(nsnull, 0);
00185     nsCAutoString str2;
00186     ToNewUnicode(str1);
00187     ToNewUnicode(str2);
00188     ToNewCString(str1);
00189     ToNewCString(str2);
00190     PL_DHashTableFinish(nsnull);
00191     NS_NewInputStreamTee(nsnull, nsnull, nsnull);
00192     NS_NewArray(nsnull);
00193     nsCOMArray<nsISupports> dummyArray;
00194     NS_NewArray(nsnull, dummyArray);
00195     NS_NewArrayEnumerator(nsnull, dummyArray);
00196     new nsVariant();
00197     nsUnescape(nsnull);
00198     nsEscape(nsnull, url_XAlphas);
00199     nsStringArray array;
00200     NS_NewStringEnumerator(nsnull, &array);
00201     NS_NewAdoptingStringEnumerator(nsnull, &array);
00202     nsCStringArray carray;
00203     NS_NewUTF8StringEnumerator(nsnull, &carray);
00204     NS_NewAdoptingUTF8StringEnumerator(nsnull, &carray);
00205     nsVoidableString str3;
00206     {
00207       nsAdoptingCString foo, bar;
00208       foo = bar;
00209     }
00210     {
00211       nsAdoptingString foo, bar;
00212       foo = bar;
00213     }
00214     NS_CopyNativeToUnicode(str2, str1);
00215     NS_CopyUnicodeToNative(str1, str2);
00216     {
00217       nsID id;
00218       CallCreateInstance(id, nsnull, id, nsnull);
00219       CallCreateInstance("", nsnull, id, nsnull);
00220       CallGetClassObject(id, id, nsnull);
00221       CallGetClassObject("", id, nsnull);
00222 
00223       nsServiceManager::GetGlobalServiceManager(nsnull);
00224     }
00225     NS_NewInterfaceRequestorAggregation(nsnull, nsnull, nsnull);
00226     NS_NewHashPropertyBag(nsnull);
00227     nsDependentString depstring;
00228     depstring.Rebind(nsnull, PRUint32(0));
00229     nsDependentCString depcstring;
00230     depcstring.Rebind(nsnull, PRUint32(0));
00231     // nsStringAPI
00232     nsCStringContainer sc1;
00233     NS_CStringContainerInit(sc1);
00234     NS_CStringContainerInit2(sc1, nsnull, 0, 0);
00235     NS_CStringContainerFinish(sc1);
00236     NS_CStringGetData(str2, nsnull, nsnull);
00237     NS_CStringGetMutableData(str2, 0, nsnull);
00238     NS_CStringSetData(str2, nsnull, 0);
00239     NS_CStringSetDataRange(str2, 0, 0, nsnull, 0);
00240     NS_CStringCopy(str2, str2);
00241     NS_CStringCloneData(str2);
00242     nsStringContainer sc2;
00243     NS_StringContainerInit(sc2);
00244     NS_StringContainerInit2(sc2, nsnull, 0, 0);
00245     NS_StringContainerFinish(sc2);
00246     NS_StringGetData(str1, nsnull, nsnull);
00247     NS_StringGetMutableData(str1, 0, nsnull);
00248     NS_StringSetData(str1, nsnull, 0);
00249     NS_StringSetDataRange(str1, 0, 0, nsnull, 0);
00250     NS_StringCopy(str1, str1);
00251     NS_StringCloneData(str1);
00252     NS_UTF16ToCString(str1, NS_CSTRING_ENCODING_ASCII, str2);
00253     NS_CStringToUTF16(str2, NS_CSTRING_ENCODING_ASCII, str1);
00254 
00255     nsCategoryObserver catobs(nsnull, nsnull);
00256     nsCategoryCache<nsILocalFile> catcache(nsnull);
00257 
00258     // nsStringBuffer.h
00259     {
00260       nsString x;
00261       nsCString y;
00262       nsStringBuffer b;
00263       b.AddRef();
00264       b.Release();
00265       nsStringBuffer::Alloc(0);
00266       nsStringBuffer::Realloc(nsnull, 0);
00267       nsStringBuffer::FromString(x);
00268       nsStringBuffer::FromString(y);
00269       b.ToString(0, x);
00270       b.ToString(0, y);
00271     }
00272 
00273 #ifndef WINCE
00274     NS_NewWindowsRegKey(nsnull);
00275 #endif
00276 }