comparison src/crypt_zip.c @ 18757:c469e1930456 v8.1.2368

patch 8.1.2368: using old C style comments Commit: https://github.com/vim/vim/commit/c667da5185ce5dce914d2006d62da2be0cedb384 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 30 20:52:27 2019 +0100 patch 8.1.2368: using old C style comments Problem: Using old C style comments. Solution: Use // comments where appropriate.
author Bram Moolenaar <Bram@vim.org>
date Sat, 30 Nov 2019 21:00:04 +0100
parents ce04ebdf26b8
children 7e9e53a0368f
comparison
equal deleted inserted replaced
18756:c58a9ff2b806 18757:c469e1930456
21 * NOTE FOR USA: Since 2000 exporting this code from the USA is allowed to 21 * NOTE FOR USA: Since 2000 exporting this code from the USA is allowed to
22 * most countries. There are a few exceptions, but that still should not be a 22 * most countries. There are a few exceptions, but that still should not be a
23 * problem since this code was originally created in Europe and India. 23 * problem since this code was originally created in Europe and India.
24 */ 24 */
25 25
26 /* Need a type that should be 32 bits. 64 also works but wastes space. */ 26 // Need a type that should be 32 bits. 64 also works but wastes space.
27 typedef unsigned int u32_T; /* int is at least 32 bits */ 27 typedef unsigned int u32_T; // int is at least 32 bits
28 28
29 /* The state of encryption, referenced by cryptstate_T. */ 29 // The state of encryption, referenced by cryptstate_T.
30 typedef struct { 30 typedef struct {
31 u32_T keys[3]; 31 u32_T keys[3];
32 } zip_state_T; 32 } zip_state_T;
33 33
34 34
149 temp = (int)(((unsigned)(temp * (temp ^ 1U)) >> 8) & 0xff); 149 temp = (int)(((unsigned)(temp * (temp ^ 1U)) >> 8) & 0xff);
150 UPDATE_KEYS_ZIP(zs->keys, to[i] = from[i] ^ temp); 150 UPDATE_KEYS_ZIP(zs->keys, to[i] = from[i] ^ temp);
151 } 151 }
152 } 152 }
153 153
154 #endif /* FEAT_CRYPT */ 154 #endif // FEAT_CRYPT