Expand description
NSIS integer semantics, ported line-for-line from Contrib/ExDLL/pluginapi.c.
str::parse is not equivalent and must not be used. NSIS accepts 0x/0X
hex, leading-zero octal, and signed decimal; it stops at the first character
it does not recognise instead of failing; it wraps on overflow; and an
unparseable string is 0, not an error. Scripts depend on all of that.
Functions§
- atoi_or
myatoi_or: likestr_to_ptr, but ORs together2|4|8forms.- format
- Formats an integer the way
pushintptrdoes: plain signed decimal. - str_
to_ ptr nsishelper_str_to_ptr: NSIS’s own string-to-integer conversion.