bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

javacomp: small optimization


From: Bruno Haible
Subject: javacomp: small optimization
Date: Sat, 27 Jan 2007 03:20:40 +0100 (MET)
User-agent: KMail/1.5.4

This implements a small optimization.

2007-01-26  Bruno Haible  <address@hidden>

        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
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]