]> git.mxchange.org Git - simgear.git/commit
Nasal: require 0o as prefix for octal numbers.
authorThomas Geymayer <tomgey@gmail.com>
Mon, 14 Jul 2014 16:51:11 +0000 (18:51 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Mon, 14 Jul 2014 16:51:11 +0000 (18:51 +0200)
commita5e99ea99639b5189d4c53e1ebc894607b5af868
tree3dee887acc0fb3e9ff3463c6e165abee37f26e7d
parentd9df10fe109b476e51dbe5741f5012c36a59b489
Nasal: require 0o as prefix for octal numbers.

Using just 0 as prefix for octal number can lead to confusion
where numbers could be interpreted the wrong way (oct instead of
dec).
Lets follow the same convention as Python 3 and Ecma 262 level 6
and use '0o' as prefix which can not be confused inadvertently.
simgear/nasal/cppbind/nasal_num_test.cxx
simgear/nasal/lex.c
simgear/nasal/string.c