*renamed MB_ANOTHER_LAMBDA -> MB_LAMBDA_ALIAS.

This commit is contained in:
Wang Renxin 2017-07-13 20:25:36 +08:00
parent c6c676682e
commit df7f9f3885

View File

@ -2127,9 +2127,9 @@ MBCONST static const _func_t _core_libs[] = {
#ifdef MB_ENABLE_LAMBDA
{ "LAMBDA", _core_lambda },
# ifdef MB_ANOTHER_LAMBDA
{ MB_ANOTHER_LAMBDA, _core_lambda },
# endif /* MB_ANOTHER_LAMBDA */
# ifdef MB_LAMBDA_ALIAS
{ MB_LAMBDA_ALIAS, _core_lambda },
# endif /* MB_LAMBDA_ALIAS */
#endif /* MB_ENABLE_LAMBDA */
#ifdef MB_ENABLE_ALLOC_STAT
@ -4814,13 +4814,13 @@ static bool_t _is_numeric_char(char c) {
/* Determine whether a character is identifier char */
static bool_t _is_identifier_char(char c) {
#if defined MB_ENABLE_LAMBDA && defined MB_ANOTHER_LAMBDA
char* p = MB_ANOTHER_LAMBDA;
#if defined MB_ENABLE_LAMBDA && defined MB_LAMBDA_ALIAS
char* p = MB_LAMBDA_ALIAS;
while(*p) {
if(c == *p) return true;
++p;
}
#endif /* MB_ENABLE_LAMBDA && MB_ANOTHER_LAMBDA */
#endif /* MB_ENABLE_LAMBDA && MB_LAMBDA_ALIAS */
return (
(c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') ||