mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
d8e503c38b
--HG-- rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
23 lines
339 B
C++
23 lines
339 B
C++
typedef int bool;
|
|
typedef int PRUint32;
|
|
typedef int PRInt32;
|
|
|
|
typedef PRUint32 nsresult;
|
|
typedef short PRUnichar;
|
|
|
|
#define NS_OUTPARAM __attribute__((user("NS_outparam")))
|
|
|
|
bool baz(int *p NS_OUTPARAM);
|
|
|
|
bool bar(int *p NS_OUTPARAM) {
|
|
return baz(p);
|
|
}
|
|
|
|
nsresult foo(int *p) {
|
|
if (bar(p)) {
|
|
return 0;
|
|
} else {
|
|
return 1;
|
|
}
|
|
}
|