This commit is contained in:
James McCoy 2017-06-06 21:35:44 -04:00
parent af59a290d8
commit ca1ba1085a
No known key found for this signature in database
GPG Key ID: DFE691AE331BA3DB
2 changed files with 19 additions and 20 deletions

View File

@ -3915,24 +3915,21 @@ static int eval5(char_u **arg, typval_T *rettv, int evaluate)
// TODO(ZyX-I): move to eval/expressions // TODO(ZyX-I): move to eval/expressions
/* /// Handle fifth level expression:
* Handle fifth level expression: /// - * number multiplication
* * number multiplication /// - / number division
* / number division /// - % number modulo
* % number modulo ///
* /// @param[in,out] arg Points to the first non-whitespace character of the
* "arg" must point to the first non-white of the expression. /// expression. Is advanced to the next non-whitespace
* "arg" is advanced to the next non-white after the recognized expression. /// character after the recognized expression.
* /// @param[out] rettv Location where result is saved.
* Return OK or FAIL. /// @param[in] evaluate If not true, rettv is not populated.
*/ /// @param[in] want_string True if "." is string_concatenation, otherwise
static int /// float
eval6 ( /// @return OK or FAIL.
char_u **arg, static int eval6(char_u **arg, typval_T *rettv, int evaluate, int want_string)
typval_T *rettv, FUNC_ATTR_NO_SANITIZE_UNDEFINED
int evaluate,
int want_string /* after "." operator */
) FUNC_ATTR_NO_SANITIZE_UNDEFINED
{ {
typval_T var2; typval_T var2;
int op; int op;

View File

@ -128,9 +128,11 @@
# endif # endif
# if NVIM_HAS_ATTRIBUTE(no_sanitize_undefined) # if NVIM_HAS_ATTRIBUTE(no_sanitize_undefined)
# define REAL_FATTR_NO_SANITIZE_UNDEFINED __attribute__((no_sanitize_undefined)) # define REAL_FATTR_NO_SANITIZE_UNDEFINED \
__attribute__((no_sanitize_undefined))
# elif NVIM_HAS_ATTRIBUTE(no_sanitize) # elif NVIM_HAS_ATTRIBUTE(no_sanitize)
# define REAL_FATTR_NO_SANITIZE_UNDEFINED __attribute__((no_sanitize("undefined"))) # define REAL_FATTR_NO_SANITIZE_UNDEFINED \
__attribute__((no_sanitize("undefined")))
# endif # endif
# endif # endif