This implements a small optimization. 2007-01-26 Bruno Haible <[EMAIL PROTECTED]>
Small optimization. * lib/javacomp.c: Include c-strstr.h. (is_envjavac_gcj): Use c_strstr instead of strstr. * modules/javacomp (Depends-on): Add c-strstr, remove strstr. *** lib/javacomp.c 26 Jan 2007 22:16:55 -0000 1.10 --- lib/javacomp.c 27 Jan 2007 02:19:31 -0000 *************** *** 48,53 **** --- 48,54 ---- #include "clean-temp.h" #include "error.h" #include "xvasprintf.h" + #include "c-strstr.h" #include "gettext.h" #define _(str) gettext (str) *************** *** 572,578 **** fclose (fp); goto failed; } ! envjavac_gcj = (strstr (line, "gcj") != NULL); fclose (fp); --- 573,581 ---- fclose (fp); goto failed; } ! /* It is safe to call c_strstr() instead of strstr() here; see the ! comments in c-strstr.h. */ ! envjavac_gcj = (c_strstr (line, "gcj") != NULL); fclose (fp); *** modules/javacomp 24 Jul 2006 19:48:57 -0000 1.4 --- modules/javacomp 27 Jan 2007 02:19:31 -0000 *************** *** 25,31 **** clean-temp error xvasprintf ! strstr gettext-h javacomp-script --- 25,31 ---- clean-temp error xvasprintf ! c-strstr gettext-h javacomp-script