10 #ifndef TYPES_H_INCLUDED 11 #define TYPES_H_INCLUDED 22 #define SYS_INT_LONG_T_MIN LONG_MIN 23 #define SYS_INT_LONG_T_MAX LONG_MAX 24 #define SYS_INT_LONG_T_STR_SIZE 11 27 #define SIZE_T_MAX ( ~( (size_t) (0) ) ) 28 #define PINDEX_MAX SIZE_T_MAX 29 #define PINDEX_BAD PINDEX_MAX 30 typedef size_t pindex_t; 31 typedef size_t pcount_t; 33 #define IS_WHITESPACE(c) ( ((c) == ' ') || ((c) == '\t') ) 34 #define IS_DIGIT(c) ( ( '0' <= (c) ) && ( (c) <= '9') ) 35 #define IS_ALPHA(c) isalpha(c) 36 #define IS_ALNUM(c) isalnum(c) value_t value_new_lint(sys_int_long lint)
Definition: types.c:30
value_types
value type selector
Definition: types.h:46
enum value_types type
Definition: types.h:65
value_t value_new_type(enum value_types type)
Definition: types.c:23
void value_to_string(char *dst_str, value_t src_val)
Definition: types.c:68
value data container provider
Definition: types.h:56
Represents a numeric value or an error.
Definition: types.h:64
int long sys_int_long
Definition: types.h:21
pindex_t find_matching(size_t str_len, const char *str, pindex_t start)
Find the index of the matching closing paren in a string.
Definition: types.c:103
value_t string_to_value(size_t src_str_len, char const *src_str)
Create value from a string.
Definition: types.c:46
sys_int_long lint
Definition: types.h:57
size_t pindex_t
Type for an index into an expression string during parsing.
Definition: types.h:30