|
From: | Aharon Robbins |
Subject: | Re: [PATCH 1/5] maint: ensure that MB_CUR_MAX is defined even when !MBS_SUPPORT |
Date: | Sun, 09 Oct 2011 21:00:37 +0200 |
User-agent: | Heirloom mailx 12.4 7/29/08 |
Hi. > > Having variables grep_mb_cur_max and dfa_mb_cur_max (separate for the > > reasons Arnold explained) would work, but it would make it impossible > > for the compiler to throw away the multibyte code when MBS_SUPPORT is zero. > > Why? > > #if MBS_SUPPORT > int greb_mb_cur_max = MB_CUR_MAX; /* or initialize it in main */ > #else > #define grep_mb_cur_max 1 > #endif > > Hmmm. Maybe I should try a proof-of-concept for this in gawk... :-) I did that and it works ok. At least with GCC. :-) Arnold
[Prev in Thread] | Current Thread | [Next in Thread] |