Mercurial > vim
diff 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 |
line wrap: on
line diff
--- a/src/vim.h +++ b/src/vim.h @@ -312,11 +312,12 @@ #define NUMBUFLEN 65 // flags for vim_str2nr() -#define STR2NR_BIN 0x01 -#define STR2NR_OCT 0x02 -#define STR2NR_HEX 0x04 -#define STR2NR_ALL (STR2NR_BIN + STR2NR_OCT + STR2NR_HEX) -#define STR2NR_NO_OCT (STR2NR_BIN + STR2NR_HEX) +#define STR2NR_BIN 0x01 +#define STR2NR_OCT 0x02 +#define STR2NR_HEX 0x04 +#define STR2NR_OOCT 0x08 // Octal with prefix "0o": 0o777 +#define STR2NR_ALL (STR2NR_BIN + STR2NR_OCT + STR2NR_HEX + STR2NR_OOCT) +#define STR2NR_NO_OCT (STR2NR_BIN + STR2NR_HEX + STR2NR_OOCT) #define STR2NR_FORCE 0x80 // only when ONE of the above is used