[llvm] r211016 - Support/ConvertUTF: restore compatibility with MSVC, which only implements C89

Dmitri Gribenko gribozavr at gmail.com
Mon Jun 16 05:51:45 PDT 2014


On Mon, Jun 16, 2014 at 12:33 PM, Aaron Ballman <aaron at aaronballman.com> wrote:
> On Mon, Jun 16, 2014 at 7:22 AM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
>> Author: gribozavr
>> Date: Mon Jun 16 06:22:33 2014
>> New Revision: 211016
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=211016&view=rev
>> Log:
>> Support/ConvertUTF: restore compatibility with MSVC, which only implements C89
>
> Why is this C code in the first place? (Not that I expect you to
> change this as part of this patch.)

Because it evolved from the reference UTF-8 decoder from one of the
old versions of the Unicode specification.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the llvm-commits mailing list