| To: vim_dev@googlegroups.com |
| Subject: Patch 7.3.342 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.3.342 |
| Problem: Code not in Vim style. |
| Solution: Fix the style. (Elias Diem) |
| Files: src/os_amiga.c, src/os_mac_conv.c, src/os_win16.c |
| |
| |
| |
| |
| |
| *** 1022,1028 **** |
| |
| /* insure longword alignment */ |
| #ifdef __amigaos4__ |
| ! if(!(id = AllocDosObject(DOS_INFODATA, 0))) |
| goto out; |
| #else |
| id = (struct InfoData *)(((long)id_a + 3L) & ~3L); |
| --- 1022,1028 ---- |
| |
| /* insure longword alignment */ |
| #ifdef __amigaos4__ |
| ! if (!(id = AllocDosObject(DOS_INFODATA, 0))) |
| goto out; |
| #else |
| id = (struct InfoData *)(((long)id_a + 3L) & ~3L); |
| |
| |
| |
| *** 77,83 **** |
| *unconvlenp = 0; |
| cfstr = CFStringCreateWithBytes(NULL, ptr, len, from, 0); |
| |
| ! if(cfstr == NULL) |
| fprintf(stderr, "Encoding failed\n"); |
| /* When conversion failed, try excluding bytes from the end, helps when |
| * there is an incomplete byte sequence. Only do up to 6 bytes to avoid |
| --- 77,83 ---- |
| *unconvlenp = 0; |
| cfstr = CFStringCreateWithBytes(NULL, ptr, len, from, 0); |
| |
| ! if (cfstr == NULL) |
| fprintf(stderr, "Encoding failed\n"); |
| /* When conversion failed, try excluding bytes from the end, helps when |
| * there is an incomplete byte sequence. Only do up to 6 bytes to avoid |
| |
| |
| |
| *** 243,251 **** |
| /* Wait for the command to terminate before continuing */ |
| while (GetModuleUsage((HINSTANCE)h_module) > 0 && again ) |
| { |
| ! while( PeekMessage( &msg, NULL, 0, 0, PM_REMOVE ) && again ) |
| { |
| ! if(msg.message == WM_QUIT) |
| |
| { |
| PostQuitMessage(msg.wParam); |
| --- 243,251 ---- |
| /* Wait for the command to terminate before continuing */ |
| while (GetModuleUsage((HINSTANCE)h_module) > 0 && again ) |
| { |
| ! while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE) && again) |
| { |
| ! if (msg.message == WM_QUIT) |
| |
| { |
| PostQuitMessage(msg.wParam); |
| |
| |
| |
| *** 711,712 **** |
| --- 711,714 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 342, |
| /**/ |
| |
| -- |
| You are only young once, but you can stay immature indefinitely. |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ an exciting new programming language -- http://www.Zimbu.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |