#include "builtins.h" #include "blocktype.h" static const char *ins[] = { "+", "-" }; static const char *outs[] = { "Out" }; static BLOCKPARAM params[] = { { .name = "Hysteresis", .type = PAR_FRANGE, .u = { .frange = { .min = 0, .max = 2 } } } }; BLOCKTYPE block_cmp = { .name = "Cmp", .n_in = 2, .ins = &ins[0], .n_out = 1, .outs = &outs[0], .n_param = 1, .params = ¶ms[0] };