* ext/nkf/nkf-utf8/nkf.c (reinit): should initialize all static
variables. fixed: [ruby-list:40445] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1b9d66dfeb
commit
70a1eecdb9
@ -1,3 +1,8 @@
|
|||||||
|
Tue Dec 28 15:41:48 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/nkf/nkf-utf8/nkf.c (reinit): should initialize all static
|
||||||
|
variables. fixed: [ruby-list:40445]
|
||||||
|
|
||||||
Tue Dec 28 15:25:20 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Tue Dec 28 15:25:20 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* ext/nkf/lib/kconv.rb (Kconv::RegexpEucjp): second byte is up to
|
* ext/nkf/lib/kconv.rb (Kconv::RegexpEucjp): second byte is up to
|
||||||
|
@ -1303,6 +1303,10 @@ struct input_code * find_inputcode_byfunc(iconv_func)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CHECK_OPTION
|
||||||
|
static int (*iconv_for_check)() = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef ANSI_C_PROTOTYPE
|
#ifdef ANSI_C_PROTOTYPE
|
||||||
void set_iconv(int f, int (*iconv_func)(int c2,int c1,int c0))
|
void set_iconv(int f, int (*iconv_func)(int c2,int c1,int c0))
|
||||||
#else
|
#else
|
||||||
@ -1311,9 +1315,6 @@ void set_iconv(f, iconv_func)
|
|||||||
int (*iconv_func)();
|
int (*iconv_func)();
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
#ifdef CHECK_OPTION
|
|
||||||
static int (*iconv_for_check)() = 0;
|
|
||||||
#endif
|
|
||||||
#ifdef INPUT_CODE_FIX
|
#ifdef INPUT_CODE_FIX
|
||||||
if (f || !input_f)
|
if (f || !input_f)
|
||||||
#endif
|
#endif
|
||||||
@ -4292,6 +4293,9 @@ reinit()
|
|||||||
broken_counter = 0;
|
broken_counter = 0;
|
||||||
broken_last = 0;
|
broken_last = 0;
|
||||||
z_prev2=0,z_prev1=0;
|
z_prev2=0,z_prev1=0;
|
||||||
|
#ifdef CHECK_OPTION
|
||||||
|
iconv_for_check = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user