mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
23 lines
345 B
C++
23 lines
345 B
C++
|
typedef int PRBool;
|
||
|
typedef int PRUint32;
|
||
|
typedef int PRInt32;
|
||
|
|
||
|
typedef PRUint32 nsresult;
|
||
|
typedef short PRUnichar;
|
||
|
|
||
|
#define NS_OUTPARAM __attribute__((user("NS_outparam")))
|
||
|
|
||
|
PRBool baz(int *p NS_OUTPARAM);
|
||
|
|
||
|
PRBool bar(int *p NS_OUTPARAM) {
|
||
|
return baz(p);
|
||
|
}
|
||
|
|
||
|
nsresult foo(int *p) {
|
||
|
if (bar(p)) {
|
||
|
return 0;
|
||
|
} else {
|
||
|
return 1;
|
||
|
}
|
||
|
}
|