Mercurial > vim
comparison src/mbyte.c @ 5136:28e6f5f88968 v7.3.1311
updated for version 7.3.1311
Problem: Compiler warnings on Cygwin.
Solution: Add type casts. Add windows include files. (Ken Takata)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 05 Jul 2013 20:09:16 +0200 |
parents | 322441058afc |
children | 853a76c7fded |
comparison
equal
deleted
inserted
replaced
5135:47c8addd2f35 | 5136:28e6f5f88968 |
---|---|
4106 p += 5; | 4106 p += 5; |
4107 else if (STRNCMP(p_enc, "2byte-", 6) == 0) | 4107 else if (STRNCMP(p_enc, "2byte-", 6) == 0) |
4108 p += 6; | 4108 p += 6; |
4109 | 4109 |
4110 if (p[0] == 'c' && p[1] == 'p') | 4110 if (p[0] == 'c' && p[1] == 'p') |
4111 cp = atoi(p + 2); | 4111 cp = atoi((char *)p + 2); |
4112 else if ((idx = enc_canon_search(p)) >= 0) | 4112 else if ((idx = enc_canon_search(p)) >= 0) |
4113 cp = enc_canon_table[idx].codepage; | 4113 cp = enc_canon_table[idx].codepage; |
4114 else | 4114 else |
4115 return 0; | 4115 return 0; |
4116 if (IsValidCodePage(cp)) | 4116 if (IsValidCodePage(cp)) |