bug-grep
[Top][All Lists]
Advanced

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

Re: [PATCH 08/34] maint: dfa: convert #if-MBS_SUPPORT (dfaoptimize, dfac


From: Paolo Bonzini
Subject: Re: [PATCH 08/34] maint: dfa: convert #if-MBS_SUPPORT (dfaoptimize, dfacomp)
Date: Thu, 15 Sep 2011 14:28:54 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2

On 09/15/2011 02:21 PM, Jim Meyering wrote:
>  As an additional cleanup, you can make using_utf8() return always
>  false if !MBS_SUPPORT.
using_utf8 does that already:

static inline int
using_utf8 (void)
{
   static int utf8 = -1;
   if (utf8 == -1)
     {
#if defined HAVE_LANGINFO_CODESET&&  defined MBS_SUPPORT
       utf8 = (STREQ (nl_langinfo (CODESET), "UTF-8"));
#else
       utf8 = 0;
#endif
     }

   return utf8;
}

Then I missed the conversion to if() in you patch series, or equivalently to

  static int utf8 = MBS_SUPPORT ? -1 : 0;

>  This lets you clean up dfa_optimize further.

This still stands. :)

Paolo



reply via email to

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