|
|
|
@ -31,25 +31,6 @@
|
|
|
|
|
#define ESXNOCHANSUP 48
|
|
|
|
|
#define ESXRAPIDREPLY 49
|
|
|
|
|
|
|
|
|
|
/* sexp helpers */
|
|
|
|
|
#define SEXP_IS_LIST(sx) \
|
|
|
|
|
((sx)->ty == SEXP_LIST) ? 1 : 0
|
|
|
|
|
|
|
|
|
|
#define SEXP_IS_TYPE(sx,type) \
|
|
|
|
|
((sx)->ty == SEXP_VALUE && (sx)->aty == (type)) ? 1 : 0
|
|
|
|
|
|
|
|
|
|
#define SEXP_ITERATE_LIST(lst, iter, ind) \
|
|
|
|
|
for((ind) = 0, (iter) = (lst)->list; (ind) < sexp_list_length(lst); \
|
|
|
|
|
(ind)++, (iter) = (iter)->next)
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
int sexp_list_cdr(sexp_t *expr, sexp_t **sx);
|
|
|
|
|
int sexp_list_car(sexp_t *expr, sexp_t **sx);
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#define VERIFY_DEPTH 1 /* FIXME: */
|
|
|
|
|
|
|
|
|
|
#define MAX_CONNECTIONS 32768
|
|
|
|
|