Lines Matching refs:sp
154 #define PSC_CALL_BACK_INIT(sp) do { \
155 (sp)->limit = 0; \
156 (sp)->index = 0; \
159 #define PSC_CALL_BACK_INDEX_OF_LAST(sp) ((sp)->index - 1)
161 #define PSC_CALL_BACK_CANCEL(sp, idx) do { \
163 if ((idx) < 0 || (idx) >= (sp)->index) \
165 myname, (idx), (sp)->index); \
166 _cb_ = (sp)->table + (idx); \
172 #define PSC_CALL_BACK_EXTEND(hp, sp) do { \
173 if ((sp)->index >= (sp)->limit) { \
174 int _count_ = ((sp)->limit ? (sp)->limit * 2 : 5); \
175 (hp)->value = myrealloc((char *) (sp), sizeof(*(sp)) + \
176 _count_ * sizeof((sp)->table)); \
177 (sp) = (PSC_DNSBL_SCORE *) (hp)->value; \
178 (sp)->limit = _count_; \
182 #define PSC_CALL_BACK_ENTER(sp, fn, ctx) do { \
183 PSC_CALL_BACK_ENTRY *_cb_ = (sp)->table + (sp)->index++; \
188 #define PSC_CALL_BACK_NOTIFY(sp, ev) do { \
190 for (_cb_ = (sp)->table; _cb_ < (sp)->table + (sp)->index; _cb_++) \