mshtml: Better ns*String handling.
This commit is contained in:
parent
8aeb049341
commit
7080c8d98e
|
@ -151,6 +151,7 @@ void init_nsio(nsIComponentManager*,nsIComponentRegistrar*);
|
||||||
nsIURI *get_nsIURI(LPCWSTR);
|
nsIURI *get_nsIURI(LPCWSTR);
|
||||||
|
|
||||||
nsACString *nsACString_Create(void);
|
nsACString *nsACString_Create(void);
|
||||||
|
PRUint32 nsACString_GetData(const nsACString*,const char**,PRBool*);
|
||||||
void nsACString_SetData(nsACString*,const char*);
|
void nsACString_SetData(nsACString*,const char*);
|
||||||
void nsACString_Destroy(nsACString*);
|
void nsACString_Destroy(nsACString*);
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,13 @@ struct nsStringContainer {
|
||||||
void *d3;
|
void *d3;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct nsCStringContainer {
|
||||||
|
void *v;
|
||||||
|
void *d1;
|
||||||
|
PRUint32 d2;
|
||||||
|
void *d3;
|
||||||
|
};
|
||||||
|
|
||||||
static nsresult (*NS_InitXPCOM2)(nsIServiceManager**,void*,void*);
|
static nsresult (*NS_InitXPCOM2)(nsIServiceManager**,void*,void*);
|
||||||
static nsresult (*NS_ShutdownXPCOM)(nsIServiceManager*);
|
static nsresult (*NS_ShutdownXPCOM)(nsIServiceManager*);
|
||||||
static nsresult (*NS_GetComponentRegistrar)(nsIComponentRegistrar**);
|
static nsresult (*NS_GetComponentRegistrar)(nsIComponentRegistrar**);
|
||||||
|
@ -60,7 +67,7 @@ static nsresult (*NS_CStringContainerFinish)(nsCStringContainer*);
|
||||||
static nsresult (*NS_StringSetData)(nsAString*,const PRUnichar*,PRUint32);
|
static nsresult (*NS_StringSetData)(nsAString*,const PRUnichar*,PRUint32);
|
||||||
static nsresult (*NS_CStringSetData)(nsACString*,const char*,PRUint32);
|
static nsresult (*NS_CStringSetData)(nsACString*,const char*,PRUint32);
|
||||||
static nsresult (*NS_NewLocalFile)(const nsAString*,PRBool,nsIFile**);
|
static nsresult (*NS_NewLocalFile)(const nsAString*,PRBool,nsIFile**);
|
||||||
static PRUint32 (*NS_CStringGetData)(nsACString*,const char**,PRBool*);
|
static PRUint32 (*NS_CStringGetData)(const nsACString*,const char**,PRBool*);
|
||||||
|
|
||||||
static HINSTANCE hXPCOM = NULL;
|
static HINSTANCE hXPCOM = NULL;
|
||||||
|
|
||||||
|
@ -370,7 +377,7 @@ void nsACString_SetData(nsACString *str, const char *data)
|
||||||
NS_CStringSetData(str, data, PR_UINT32_MAX);
|
NS_CStringSetData(str, data, PR_UINT32_MAX);
|
||||||
}
|
}
|
||||||
|
|
||||||
static PRUint32 nsACString_GetData(nsACString *str, const char **data, PRBool *termited)
|
PRUint32 nsACString_GetData(const nsACString *str, const char **data, PRBool *termited)
|
||||||
{
|
{
|
||||||
return NS_CStringGetData(str, data, termited);
|
return NS_CStringGetData(str, data, termited);
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,9 +46,9 @@ typedef LARGE_INTEGER PRInt64;
|
||||||
typedef ULARGE_INTEGER PRUint64;
|
typedef ULARGE_INTEGER PRUint64;
|
||||||
typedef PRUint64 DOMTimeStamp;
|
typedef PRUint64 DOMTimeStamp;
|
||||||
|
|
||||||
|
typedef struct nsCStringContainer nsCStringContainer;
|
||||||
typedef struct nsStringContainer nsStringContainer;
|
typedef struct nsStringContainer nsStringContainer;
|
||||||
typedef nsStringContainer nsCStringContainer;
|
typedef nsCStringContainer nsACString;
|
||||||
typedef nsStringContainer nsACString;
|
|
||||||
typedef nsStringContainer nsAString;
|
typedef nsStringContainer nsAString;
|
||||||
|
|
||||||
interface nsIWebBrowserChrome;
|
interface nsIWebBrowserChrome;
|
||||||
|
|
Loading…
Reference in New Issue