comparison src/vim.h @ 20665:6ff992bf4c82 v8.2.0886

patch 8.2.0886: cannot use octal numbers in scriptversion 4 Commit: https://github.com/vim/vim/commit/c17e66c5c0acd5038f1eb3d7b3049b64bb6ea30b Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 2 21:38:22 2020 +0200 patch 8.2.0886: cannot use octal numbers in scriptversion 4 Problem: Cannot use octal numbers in scriptversion 4. Solution: Add the "0o" notation. (Ken Takata, closes https://github.com/vim/vim/issues/5304)
author Bram Moolenaar <Bram@vim.org>
date Tue, 02 Jun 2020 21:45:03 +0200
parents 8bce783af0cb
children e76b83c07bd8
comparison
equal deleted inserted replaced
20664:2ee305469487 20665:6ff992bf4c82
310 310
311 // length of a buffer to store a number in ASCII (64 bits binary + NUL) 311 // length of a buffer to store a number in ASCII (64 bits binary + NUL)
312 #define NUMBUFLEN 65 312 #define NUMBUFLEN 65
313 313
314 // flags for vim_str2nr() 314 // flags for vim_str2nr()
315 #define STR2NR_BIN 0x01 315 #define STR2NR_BIN 0x01
316 #define STR2NR_OCT 0x02 316 #define STR2NR_OCT 0x02
317 #define STR2NR_HEX 0x04 317 #define STR2NR_HEX 0x04
318 #define STR2NR_ALL (STR2NR_BIN + STR2NR_OCT + STR2NR_HEX) 318 #define STR2NR_OOCT 0x08 // Octal with prefix "0o": 0o777
319 #define STR2NR_NO_OCT (STR2NR_BIN + STR2NR_HEX) 319 #define STR2NR_ALL (STR2NR_BIN + STR2NR_OCT + STR2NR_HEX + STR2NR_OOCT)
320 #define STR2NR_NO_OCT (STR2NR_BIN + STR2NR_HEX + STR2NR_OOCT)
320 321
321 #define STR2NR_FORCE 0x80 // only when ONE of the above is used 322 #define STR2NR_FORCE 0x80 // only when ONE of the above is used
322 323
323 #define STR2NR_QUOTE 0x10 // ignore embedded single quotes 324 #define STR2NR_QUOTE 0x10 // ignore embedded single quotes
324 325