ruby-changes:28390
From: akr <ko1@a...>
Date: Wed, 24 Apr 2013 21:52:36 +0900 (JST)
Subject: [ruby-changes:28390] akr:r40442 (trunk): * configure.in: Check mblen().
akr 2013-04-24 21:52:26 +0900 (Wed, 24 Apr 2013) New Revision: 40442 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40442 Log: * configure.in: Check mblen(). * eval_intern.h (CharNext): Don't use mblen() is not available. Modified files: trunk/ChangeLog trunk/configure.in trunk/eval_intern.h Index: eval_intern.h =================================================================== --- eval_intern.h (revision 40441) +++ eval_intern.h (revision 40442) @@ -195,7 +195,11 @@ VALUE rb_vm_top_self(); https://github.com/ruby/ruby/blob/trunk/eval_intern.h#L195 VALUE rb_vm_cbase(void); #ifndef CharNext /* defined as CharNext[AW] on Windows. */ -#define CharNext(p) ((p) + mblen((p), RUBY_MBCHAR_MAXSIZE)) +# ifdef HAVE_MBLEN +# define CharNext(p) ((p) + mblen((p), RUBY_MBCHAR_MAXSIZE)) +# else +# define CharNext(p) ((p) + 1) +# endif #endif #if defined DOSISH || defined __CYGWIN__ Index: configure.in =================================================================== --- configure.in (revision 40441) +++ configure.in (revision 40442) @@ -1701,7 +1701,7 @@ AC_CHECK_FUNCS(fmod killpg wait4 waitpid https://github.com/ruby/ruby/blob/trunk/configure.in#L1701 setuid setgid daemon select_large_fdset setenv unsetenv\ mktime timegm gmtime_r clock_gettime gettimeofday poll ppoll\ pread sendfile shutdown sigaltstack dl_iterate_phdr\ - dup dup3 pipe2 posix_memalign memalign ioctl) + dup dup3 pipe2 posix_memalign memalign ioctl mblen) AC_CACHE_CHECK(for sigsetjmp as a macro or function, ac_cv_func_sigsetjmp, [AC_TRY_COMPILE([ Index: ChangeLog =================================================================== --- ChangeLog (revision 40441) +++ ChangeLog (revision 40442) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Apr 24 21:51:13 2013 Tanaka Akira <akr@f...> + + * configure.in: Check mblen(). + + * eval_intern.h (CharNext): Don't use mblen() is not available. + Wed Apr 24 15:55:06 2013 KOSAKI Motohiro <kosaki.motohiro@g...> * io.c (rb_fd_fix_cloexec): use rb_update_max_fd(). -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/