git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5574
This commit is contained in:
Julian Seward 2006-01-20 16:47:20 +00:00
parent 332b20ecef
commit e05481ea7a
3 changed files with 9 additions and 9 deletions

View File

@ -17,10 +17,10 @@ void actual ( void )
as if its soname was "NONE". */
void I_WRAP_SONAME_FNNAME_ZU(NONE,actual) ( void )
{
OrigFn orig;
VALGRIND_GET_ORIG_FN(orig);
OrigFn fn;
VALGRIND_GET_ORIG_FN(fn);
printf("wrapper-pre\n");
CALL_FN_v_v(orig);
CALL_FN_v_v(fn);
printf("wrapper-post\n");
}

View File

@ -16,10 +16,10 @@ int fact ( int n )
int I_WRAP_SONAME_FNNAME_ZU(NONE,fact) ( int n )
{
int r;
OrigFn orig;
VALGRIND_GET_ORIG_FN(orig);
OrigFn fn;
VALGRIND_GET_ORIG_FN(fn);
printf("in wrapper1-pre: fact(%d)\n", n);
CALL_FN_W_W(r, orig, n);
CALL_FN_W_W(r, fn, n);
printf("in wrapper1-post: fact(%d) = %d\n", n, r);
return r;
}

View File

@ -13,10 +13,10 @@ extern void actual ( void );
"wrap7so.so". */
void I_WRAP_SONAME_FNNAME_ZU(wrap7soZdso,actual) ( void )
{
OrigFn orig;
VALGRIND_GET_ORIG_FN(orig);
OrigFn fn;
VALGRIND_GET_ORIG_FN(fn);
printf("wrapper-pre\n");
CALL_FN_v_v(orig);
CALL_FN_v_v(fn);
printf("wrapper-post\n");
}