* tests/test.c [GC_GCJ_SUPPORT && TEST_WITH_SYSTEM_MALLOC] (reverse):
Call GC_noop1 for malloc() result.
* tools/if_not_there.c (main): Move "f" local variable assignments
outside conditional expression.
sexpr reverse(sexpr x)
{
# ifdef TEST_WITH_SYSTEM_MALLOC
- malloc(100000);
+ GC_noop1(GC_HIDE_POINTER(malloc(100000)));
# endif
return( reverse1(x, nil) );
}
DIR * d;
#endif /* __DJGPP__ */
if (argc < 3) goto Usage;
- if ((f = fopen(argv[1], "rb")) != 0
- || (f = fopen(argv[1], "r")) != 0) {
+
+ f = fopen(argv[1], "rb");
+ if (f != NULL) {
+ fclose(f);
+ return(0);
+ }
+ f = fopen(argv[1], "r");
+ if (f != NULL) {
fclose(f);
return(0);
}