String constants are now (const char *)s and must be explicitly cast to (char *). operator new is expected to be empty or throw an expection instead of returning null. (ifdef'd for gcc 2.95+) Stricter checks on register clobbering in embedded asm. (at least I think that's what it is) Expects the main function to return int, not something similiar to it like PRInt32. Still requires a tweak to remove -mno-486 from NSPR's *.mk files. git-svn-id: svn://10.0.0.236/trunk@42646 18797224-902f-48f8-a5cc-f745e15eee43
30 lines
574 B
C++
30 lines
574 B
C++
#define NS_IMPL_IDS
|
|
#include "nsISupports.h"
|
|
#include "nsIServiceManager.h"
|
|
#include "nsICookieService.h"
|
|
|
|
|
|
static NS_DEFINE_IID(kICookieServiceIID, NS_ICOOKIESERVICE_IID);
|
|
static NS_DEFINE_IID(kCookieServiceCID, NS_COOKIESERVICE_CID);
|
|
|
|
|
|
|
|
int main(PRInt32 argc, char *argv[])
|
|
{
|
|
|
|
nsICookieService *cookieService = NULL;
|
|
|
|
nsresult rv;
|
|
|
|
rv = nsServiceManager::GetService(kCookieServiceCID,
|
|
kICookieServiceIID,
|
|
(nsISupports **)&cookieService);
|
|
|
|
if (rv == NS_OK) {
|
|
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|