зеркало из https://github.com/mozilla/gecko-dev.git
Update to build under Unix
This commit is contained in:
Родитель
f9b5f38418
Коммит
71903370cb
|
@ -28,7 +28,7 @@ include $(DEPTH)/config/autoconf.mk
|
|||
|
||||
EXPORT_RESOURCE_CONTENT = \
|
||||
$(srcdir)/importDialog.xul \
|
||||
$(srcdir)/importDialog.xul \
|
||||
$(srcdir)/importDialog.js \
|
||||
$(srcdir)/importProgress.xul \
|
||||
$(srcdir)/importProgress.js \
|
||||
$(srcdir)/fieldMapImport.xul \
|
||||
|
|
|
@ -26,7 +26,8 @@ VPATH = @srcdir@
|
|||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
LIBRARY_NAME = import
|
||||
MODULE = import
|
||||
LIBRARY_NAME = import
|
||||
IS_COMPONENT = 1
|
||||
|
||||
CPPSRCS = \
|
||||
|
@ -40,7 +41,7 @@ CPPSRCS = \
|
|||
ImportTranslate.cpp \
|
||||
nsImportTranslator.cpp \
|
||||
ImportCharSet.cpp \
|
||||
ImportOutFile.cpp \
|
||||
ImportOutFile.cpp \
|
||||
nsImportScanFile.cpp \
|
||||
nsImportEncodeScan.cpp \
|
||||
nsImportMimeEncode.cpp \
|
||||
|
@ -48,12 +49,13 @@ CPPSRCS = \
|
|||
$(NULL)
|
||||
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
EXTRA_DSO_LDOPTS = \
|
||||
-L$(DIST)/bin \
|
||||
$(NSPR_LIBS) \
|
||||
-lxpcom \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
|
||||
|
|
|
@ -289,7 +289,7 @@ NS_IMETHODIMP nsImportGenericAddressBooks::GetData(const char *dataId, nsISuppor
|
|||
rNum += (*pNum - '0');
|
||||
pNum++;
|
||||
}
|
||||
IMPORT_LOG1( "Requesting sample data #: %ld\n", rNum);
|
||||
IMPORT_LOG1( "Requesting sample data #: %ld\n", (long)rNum);
|
||||
if (m_pInterface) {
|
||||
nsCOMPtr<nsISupportsWString> data;
|
||||
rv = nsComponentManager::CreateInstance( kSupportsWStringCID, nsnull, kISupportsWStringIID, getter_AddRefs( data));
|
||||
|
@ -412,7 +412,7 @@ void nsImportGenericAddressBooks::GetDefaultLocation( void)
|
|||
if (m_description)
|
||||
nsCRT::free( m_description);
|
||||
m_description = nsnull;
|
||||
nsresult rv = m_pInterface->GetAutoFind( &m_description, &m_autoFind);
|
||||
m_pInterface->GetAutoFind( &m_description, &m_autoFind);
|
||||
m_gotLocation = PR_TRUE;
|
||||
if (m_autoFind) {
|
||||
m_found = PR_TRUE;
|
||||
|
@ -421,7 +421,7 @@ void nsImportGenericAddressBooks::GetDefaultLocation( void)
|
|||
}
|
||||
|
||||
nsIFileSpec * pLoc = nsnull;
|
||||
rv = m_pInterface->GetDefaultLocation( &pLoc, &m_found, &m_userVerify);
|
||||
m_pInterface->GetDefaultLocation( &pLoc, &m_found, &m_userVerify);
|
||||
if (!m_pLocation)
|
||||
m_pLocation = pLoc;
|
||||
else {
|
||||
|
|
|
@ -64,7 +64,6 @@
|
|||
#include "nsIMsgAccountManager.h"
|
||||
#include "nsIMsgMailSession.h"
|
||||
#include "nsMsgBaseCID.h"
|
||||
#include "nsPOP3IncomingServer.h"
|
||||
#include "nsIProfile.h"
|
||||
#include "nsIMsgFolder.h"
|
||||
#include "nsImportStringBundle.h"
|
||||
|
@ -72,7 +71,6 @@
|
|||
|
||||
#include "ImportDebug.h"
|
||||
|
||||
static NS_DEFINE_IID(kIPOP3IncomingServerIID, NS_IPOP3INCOMINGSERVER_IID);
|
||||
static NS_DEFINE_CID(kMsgAccountCID, NS_MSGACCOUNT_CID);
|
||||
static NS_DEFINE_CID(kMsgIdentityCID, NS_MSGIDENTITY_CID);
|
||||
static NS_DEFINE_CID(kMsgBiffManagerCID, NS_MSGBIFFMANAGER_CID);
|
||||
|
@ -351,7 +349,7 @@ void nsImportGenericMail::GetDefaultLocation( void)
|
|||
m_gotLocation = PR_TRUE;
|
||||
|
||||
nsIFileSpec * pLoc = nsnull;
|
||||
nsresult rv = m_pInterface->GetDefaultLocation( &pLoc, &m_found, &m_userVerify);
|
||||
m_pInterface->GetDefaultLocation( &pLoc, &m_found, &m_userVerify);
|
||||
if (!m_pSrcLocation)
|
||||
m_pSrcLocation = pLoc;
|
||||
else {
|
||||
|
@ -364,7 +362,7 @@ void nsImportGenericMail::GetDefaultMailboxes( void)
|
|||
if (!m_pInterface || m_pMailboxes || !m_pSrcLocation)
|
||||
return;
|
||||
|
||||
nsresult rv = m_pInterface->FindMailboxes( m_pSrcLocation, &m_pMailboxes);
|
||||
m_pInterface->FindMailboxes( m_pSrcLocation, &m_pMailboxes);
|
||||
}
|
||||
|
||||
void nsImportGenericMail::GetDefaultDestination( void)
|
||||
|
@ -746,12 +744,12 @@ ImportMailThread( void *stuff)
|
|||
nsString error;
|
||||
|
||||
// Initialize the curFolder proxy object
|
||||
NS_WITH_SERVICE( nsIProxyObjectManager, proxyMgr, kProxyObjectManagerCID, &rv);
|
||||
NS_WITH_SERVICE( nsIProxyObjectManager, proxyMgr, kProxyObjectManagerCID, &rv);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
rv = proxyMgr->GetProxyObject( NS_UI_THREAD_EVENTQ, nsIMsgFolder::GetIID(),
|
||||
curFolder, PROXY_SYNC, getter_AddRefs( curProxy));
|
||||
|
||||
IMPORT_LOG1( "Proxy result for curFolder: 0x%lx\n", rv);
|
||||
IMPORT_LOG1( "Proxy result for curFolder: 0x%lx\n", (long) rv);
|
||||
}
|
||||
else {
|
||||
IMPORT_LOG0( "Unable to obtain proxy service to do import\n");
|
||||
|
@ -774,7 +772,7 @@ ImportMailThread( void *stuff)
|
|||
rv = box->GetSize( &size);
|
||||
rv = box->GetDepth( &newDepth);
|
||||
if (newDepth > depth) {
|
||||
char * pStr = lastName.ToNewCString();
|
||||
pStr = lastName.ToNewCString();
|
||||
IMPORT_LOG1( "* Finding folder for child named: %s\n", pStr);
|
||||
rv = curProxy->GetChildNamed( pStr, getter_AddRefs( subFolder));
|
||||
nsCRT::free( pStr);
|
||||
|
@ -792,7 +790,7 @@ ImportMailThread( void *stuff)
|
|||
break;
|
||||
}
|
||||
|
||||
IMPORT_LOG1( "Created proxy for new subFolder: 0x%lx\n", rv);
|
||||
IMPORT_LOG1( "Created proxy for new subFolder: 0x%lx\n", (long) rv);
|
||||
}
|
||||
else if (newDepth < depth) {
|
||||
rv = NS_OK;
|
||||
|
@ -823,11 +821,11 @@ ImportMailThread( void *stuff)
|
|||
exists = PR_FALSE;
|
||||
rv = curProxy->ContainsChildNamed( pStr, &exists);
|
||||
if (exists) {
|
||||
char *pName = nsnull;
|
||||
curProxy->GenerateUniqueSubfolderName( pStr, nsnull, &pName);
|
||||
if (pName) {
|
||||
char *pSubName = nsnull;
|
||||
curProxy->GenerateUniqueSubfolderName( pStr, nsnull, &pSubName);
|
||||
if (pSubName) {
|
||||
nsCRT::free( pStr);
|
||||
pStr = pName;
|
||||
pStr = pSubName;
|
||||
}
|
||||
}
|
||||
lastName = pStr;
|
||||
|
@ -836,10 +834,10 @@ ImportMailThread( void *stuff)
|
|||
|
||||
rv = curProxy->CreateSubfolder( pStr);
|
||||
|
||||
IMPORT_LOG1( "New folder created, rv: 0x%lx\n", rv);
|
||||
IMPORT_LOG1( "New folder created, rv: 0x%lx\n", (long) rv);
|
||||
if (NS_SUCCEEDED( rv)) {
|
||||
rv = curProxy->GetChildNamed( pStr, getter_AddRefs( subFolder));
|
||||
IMPORT_LOG1( "GetChildNamed for new folder returned rv: 0x%lx\n", rv);
|
||||
IMPORT_LOG1( "GetChildNamed for new folder returned rv: 0x%lx\n", (long) rv);
|
||||
if (NS_SUCCEEDED( rv)) {
|
||||
newFolder = do_QueryInterface( subFolder);
|
||||
if (newFolder) {
|
||||
|
|
|
@ -724,6 +724,9 @@ void nsImportModuleList::AddModule( const nsCID& cid, const char *pSupports, con
|
|||
m_pList[m_count]->SetDescription( pDesc);
|
||||
|
||||
m_count++;
|
||||
|
||||
IMPORT_LOG3( "* nsImportService registered import module: %S, %S, %s\n", pName, pDesc, pSupports);
|
||||
#ifdef IMPORT_DEBUG
|
||||
nsCString name( pName);
|
||||
nsCString desc( pDesc);
|
||||
IMPORT_LOG3( "* nsImportService registered import module: %s, %s, %s\n", (const char *)name, (const char *)desc, pSupports);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ VPATH = @srcdir@
|
|||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
DIRS = content locale
|
||||
DIRS = locale
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ VPATH = @srcdir@
|
|||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = impText
|
||||
#LIBRARY_NAME = addrbook
|
||||
LIBRARY_NAME = impText
|
||||
IS_COMPONENT = 1
|
||||
|
||||
|
||||
|
@ -37,20 +37,11 @@ CPPSRCS = nsTextFactory.cpp \
|
|||
nsTextAddress.cpp \
|
||||
$(NULL)
|
||||
|
||||
#EXPORTS = nsAbBaseCID.h
|
||||
|
||||
#SHARED_LIBRARY_LIBS = \
|
||||
# $(DIST)/lib/libaddrbook_s.a \
|
||||
# $(NULL)
|
||||
|
||||
EXTRA_DSO_LDOPTS = \
|
||||
$(MKSHLIB_FORCE_ALL) \
|
||||
$(MKSHLIB_UNFORCE_ALL) \
|
||||
-L$(DIST)/bin \
|
||||
$(NSPR_LIBS) \
|
||||
-lxpcom \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
#$(LIBRARY) $(SHARED_LIBRARY): $(SHARED_LIBRARY_LIBS) Makefile
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include "nsTextAddress.h"
|
||||
|
||||
#include "nsIAddrDatabase.h"
|
||||
#include "nsABBaseCID.h"
|
||||
#include "nsAbBaseCID.h"
|
||||
#include "nsIAbCard.h"
|
||||
|
||||
static NS_DEFINE_CID(kAbCardCID, NS_ABCARD_CID);
|
||||
|
@ -496,7 +496,7 @@ nsresult nsTextAddress::ProcessLine( const char *pLine, PRInt32 len, nsString& e
|
|||
}
|
||||
else {
|
||||
if (active) {
|
||||
IMPORT_LOG1( "*** Error getting field map for index %ld\n", i);
|
||||
IMPORT_LOG1( "*** Error getting field map for index %ld\n", (long) i);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1254,4 +1254,5 @@ void nsTextAddress::AddLdifColToDatabase(nsIMdbRow* newRow, char* typeSlot, char
|
|||
default:
|
||||
break; // default
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -618,7 +618,7 @@ NS_IMETHODIMP ImportAddressImpl::GetSampleData( PRInt32 index, PRBool *pFound, P
|
|||
*pStr = nsCRT::strdup( str.GetUnicode());
|
||||
*pFound = PR_TRUE;
|
||||
|
||||
IMPORT_LOG1( "Sample data: %S\n", str.GetUnicode());
|
||||
/* IMPORT_LOG1( "Sample data: %S\n", str.GetUnicode()); */
|
||||
}
|
||||
else {
|
||||
*pFound = PR_FALSE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче