zabbix-agent2/src/libs/zbxeval/parse.c
/******************************************************************************
 *                                                                            *
 * Function: eval_is_compound_number_char                                     *
 *                                                                            *
 * Purpose: check if the character can be a part of a compound number         *
 *          following a macro                                                 *
 *                                                                            *
 ******************************************************************************/
eval_is_compound_number_char

Purpose: check if the character can be a part of a compound number
following a macro
eval_is_compound_number_char Purpose : check if the character can be a part of a compound number following a macro
static int	eval_is_compound_number_char(char c, int pos)
{
	if (0 != isdigit((unsigned char)c))
		return SUCCEED;
	switch (c)
	{
		case '.':
		case '{':
			return SUCCEED;
		case 'e':
		case 'E':
			return (0 != pos ? SUCCEED : FAIL);
	}
	return FAIL;
}
static int eval_is_compound_number_char ( char c , int pos ) { if ( 0 != isdigit ( ( unsigned char ) c ) ) return SUCCEED ; switch ( c ) { case ' ' : case ' ' : return SUCCEED ; case ' ' : case ' ' : return ( 0 != pos ? SUCCEED : FAIL ) ; } return FAIL ; }
Function: eval_is_compound_number_char                                     
                                                                            
 Purpose: check if the character can be a part of a compound number         
          following a macro
Function : eval_is_compound_number_char Purpose : check if the character can be a part of a compound number following a macro