/freebsd/contrib/ntp/sntp/libevent/compat/sys/ |
H A D | queue.h | 109 #define SLIST_NEXT(elm, field) ((elm)->field.sle_next) argument 111 #define SLIST_FOREACH(var, head, field) \ argument 114 (var) = SLIST_NEXT(var, field)) 123 #define SLIST_INSERT_AFTER(slistelm, elm, field) do { \ argument 124 (elm)->field.sle_next = (slistelm)->field.sle_next; \ 125 (slistelm)->field.sle_next = (elm); \ 128 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument 129 (elm)->field.sle_next = (head)->slh_first; \ 133 #define SLIST_REMOVE_HEAD(head, field) do { \ argument 134 (head)->slh_first = (head)->slh_first->field.sle_next; \ [all …]
|
/freebsd/contrib/libevent/compat/sys/ |
H A D | queue.h | 109 #define SLIST_NEXT(elm, field) ((elm)->field.sle_next) argument 111 #define SLIST_FOREACH(var, head, field) \ argument 114 (var) = SLIST_NEXT(var, field)) 123 #define SLIST_INSERT_AFTER(slistelm, elm, field) do { \ argument 124 (elm)->field.sle_next = (slistelm)->field.sle_next; \ 125 (slistelm)->field.sle_next = (elm); \ 128 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument 129 (elm)->field.sle_next = (head)->slh_first; \ 133 #define SLIST_REMOVE_HEAD(head, field) do { \ argument 134 (head)->slh_first = (head)->slh_first->field.sle_next; \ [all …]
|
/freebsd/contrib/ntp/sntp/libevent/WIN32-Code/ |
H A D | tree.h | 75 #define SPLAY_LEFT(elm, field) (elm)->field.spe_left argument 76 #define SPLAY_RIGHT(elm, field) (elm)->field.spe_right argument 81 #define SPLAY_ROTATE_RIGHT(head, tmp, field) do { \ argument 82 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \ 83 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \ 87 #define SPLAY_ROTATE_LEFT(head, tmp, field) do { \ argument 88 SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \ 89 SPLAY_LEFT(tmp, field) = (head)->sph_root; \ 93 #define SPLAY_LINKLEFT(head, tmp, field) do { \ argument 94 SPLAY_LEFT(tmp, field) = (head)->sph_root; \ [all …]
|
/freebsd/contrib/libevent/WIN32-Code/ |
H A D | tree.h | 75 #define SPLAY_LEFT(elm, field) (elm)->field.spe_left argument 76 #define SPLAY_RIGHT(elm, field) (elm)->field.spe_right argument 81 #define SPLAY_ROTATE_RIGHT(head, tmp, field) do { \ argument 82 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \ 83 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \ 87 #define SPLAY_ROTATE_LEFT(head, tmp, field) do { \ argument 88 SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \ 89 SPLAY_LEFT(tmp, field) = (head)->sph_root; \ 93 #define SPLAY_LINKLEFT(head, tmp, field) do { \ argument 94 SPLAY_LEFT(tmp, field) = (head)->sph_root; \ [all …]
|
/freebsd/sys/sys/ |
H A D | queue.h | 214 #define SLIST_CONCAT(head1, head2, type, field) do { \ argument 220 while (SLIST_NEXT(curelm, field) != NULL) \ 221 curelm = SLIST_NEXT(curelm, field); \ 222 SLIST_NEXT(curelm, field) = SLIST_FIRST(head2); \ 231 #define SLIST_FOREACH(var, head, field) \ argument 234 (var) = SLIST_NEXT((var), field)) 236 #define SLIST_FOREACH_FROM(var, head, field) \ argument 239 (var) = SLIST_NEXT((var), field)) 241 #define SLIST_FOREACH_SAFE(var, head, field, tvar) \ argument 243 (var) && ((tvar) = SLIST_NEXT((var), field), 1); \ [all …]
|
H A D | arb.h | 66 #define ARB_INIT(x, field, head, maxn) \ argument 72 ARB_ARRFOREACH_REVWCOND(x, field, head, \ 73 ARB_RETURNFREE(head, x, field)) 86 #define ARB_ENTRYINIT(elm, field) do { \ argument 87 (elm)->field.arbe_parent_idx = \ 88 (elm)->field.arbe_left_idx = \ 89 (elm)->field.arbe_right_idx = ARB_NULLIDX; \ 90 (elm)->field.arbe_color = ARB_NULLCOL; \ 105 #define ARB_LEFT(head, elm, field) ARB_NODE(head, ARB_LEFTIDX(elm, field)) argument 106 #define ARB_RIGHT(head, elm, field) ARB_NODE(head, ARB_RIGHTIDX(elm, field)) argument [all …]
|
H A D | tree.h | 92 #define SPLAY_LEFT(elm, field) (elm)->field.spe_left argument 93 #define SPLAY_RIGHT(elm, field) (elm)->field.spe_right argument 98 #define SPLAY_ROTATE_RIGHT(head, tmp, field) do { \ argument 99 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \ 100 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \ 104 #define SPLAY_ROTATE_LEFT(head, tmp, field) do { \ argument 105 SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \ 106 SPLAY_LEFT(tmp, field) = (head)->sph_root; \ 110 #define SPLAY_LINKLEFT(head, tmp, field) do { \ argument 111 SPLAY_LEFT(tmp, field) = (head)->sph_root; \ [all …]
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | sys-tree.h | 82 #define SPLAY_LEFT(elm, field) (elm)->field.spe_left argument 83 #define SPLAY_RIGHT(elm, field) (elm)->field.spe_right argument 88 #define SPLAY_ROTATE_RIGHT(head, tmp, field) do { \ argument 89 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \ 90 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \ 94 #define SPLAY_ROTATE_LEFT(head, tmp, field) do { \ argument 95 SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \ 96 SPLAY_LEFT(tmp, field) = (head)->sph_root; \ 100 #define SPLAY_LINKLEFT(head, tmp, field) do { \ argument 101 SPLAY_LEFT(tmp, field) = (head)->sph_root; \ [all …]
|
H A D | sys-queue.h | 205 #define SLIST_NEXT(elm, field) ((elm)->field.sle_next) argument 207 #define SLIST_FOREACH(var, head, field) \ argument 210 (var) = SLIST_NEXT(var, field)) 212 #define SLIST_FOREACH_SAFE(var, head, field, tvar) \ argument 214 (var) && ((tvar) = SLIST_NEXT(var, field), 1); \ 224 #define SLIST_INSERT_AFTER(slistelm, elm, field) do { \ argument 225 (elm)->field.sle_next = (slistelm)->field.sle_next; \ 226 (slistelm)->field.sle_next = (elm); \ 229 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument 230 (elm)->field.sle_next = (head)->slh_first; \ [all …]
|
/freebsd/contrib/openbsm/compat/ |
H A D | queue.h | 160 #define SLIST_FOREACH(var, head, field) \ argument 163 (var) = SLIST_NEXT((var), field)) 165 #define SLIST_FOREACH_SAFE(var, head, field, tvar) \ argument 167 (var) && ((tvar) = SLIST_NEXT((var), field), 1); \ 170 #define SLIST_FOREACH_PREVPTR(var, varp, head, field) \ argument 173 (varp) = &SLIST_NEXT((var), field)) 179 #define SLIST_INSERT_AFTER(slistelm, elm, field) do { \ argument 180 SLIST_NEXT((elm), field) = SLIST_NEXT((slistelm), field); \ 181 SLIST_NEXT((slistelm), field) = (elm); \ 184 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument [all …]
|
/freebsd/contrib/libarchive/unzip/ |
H A D | la_queue.h | 184 #define SLIST_CONCAT(head1, head2, type, field) do { \ argument 190 while (SLIST_NEXT(curelm, field) != NULL) \ 191 curelm = SLIST_NEXT(curelm, field); \ 192 SLIST_NEXT(curelm, field) = SLIST_FIRST(head2); \ 201 #define SLIST_FOREACH(var, head, field) \ argument 204 (var) = SLIST_NEXT((var), field)) 206 #define SLIST_FOREACH_FROM(var, head, field) \ argument 209 (var) = SLIST_NEXT((var), field)) 211 #define SLIST_FOREACH_SAFE(var, head, field, tvar) \ argument 213 (var) && ((tvar) = SLIST_NEXT((var), field), 1); \ [all …]
|
/freebsd/contrib/libucl/src/ |
H A D | tree.h | 70 #define TREE_DELTA(self, field) \ argument 71 (( (((self)->field.avl_left) ? (self)->field.avl_left->field.avl_height : 0)) \ 72 - (((self)->field.avl_right) ? (self)->field.avl_right->field.avl_height : 0)) 76 #define TREE_DEFINE(node, field) \ argument 78 static struct node *_HU_FUNCTION(TREE_BALANCE_##node##_##field)(struct node *); \ 80 static struct node *_HU_FUNCTION(TREE_ROTL_##node##_##field)(struct node *self) \ 82 struct node *r= self->field.avl_right; \ 83 self->field.avl_right= r->field.avl_left; \ 84 r->field.avl_left= TREE_BALANCE_##node##_##field(self); \ 85 return TREE_BALANCE_##node##_##field(r); \ [all …]
|
/freebsd/crypto/heimdal/base/ |
H A D | heimqueue.h | 59 #define QUEUEDEBUG_HEIM_TAILQ_INSERT_HEAD(head, elm, field) \ argument 61 (head)->tqh_first->field.tqe_prev != &(head)->tqh_first) \ 63 #define QUEUEDEBUG_HEIM_TAILQ_INSERT_TAIL(head, elm, field) \ argument 66 #define QUEUEDEBUG_HEIM_TAILQ_OP(elm, field) \ argument 67 if ((elm)->field.tqe_next && \ 68 (elm)->field.tqe_next->field.tqe_prev != \ 69 &(elm)->field.tqe_next) \ 71 if (*(elm)->field.tqe_prev != (elm)) \ 73 #define QUEUEDEBUG_HEIM_TAILQ_PREREMOVE(head, elm, field) \ argument 74 if ((elm)->field.tqe_next == NULL && \ [all …]
|
/freebsd/crypto/heimdal/lib/asn1/ |
H A D | asn1_queue.h | 59 #define QUEUEDEBUG_ASN1_TAILQ_INSERT_HEAD(head, elm, field) \ argument 61 (head)->tqh_first->field.tqe_prev != &(head)->tqh_first) \ 63 #define QUEUEDEBUG_ASN1_TAILQ_INSERT_TAIL(head, elm, field) \ argument 66 #define QUEUEDEBUG_ASN1_TAILQ_OP(elm, field) \ argument 67 if ((elm)->field.tqe_next && \ 68 (elm)->field.tqe_next->field.tqe_prev != \ 69 &(elm)->field.tqe_next) \ 71 if (*(elm)->field.tqe_prev != (elm)) \ 73 #define QUEUEDEBUG_ASN1_TAILQ_PREREMOVE(head, elm, field) \ argument 74 if ((elm)->field.tqe_next == NULL && \ [all …]
|
/freebsd/sys/contrib/ck/include/ |
H A D | ck_queue.h | 148 #define CK_SLIST_NEXT(elm, field) \ argument 149 ck_pr_load_ptr(&((elm)->field.csle_next)) 151 #define CK_SLIST_FOREACH(var, head, field) \ argument 154 (var) = CK_SLIST_NEXT((var), field)) 156 #define CK_SLIST_FOREACH_FROM(var, head, field) \ argument 159 (var) = CK_SLIST_NEXT((var), field)) 161 #define CK_SLIST_FOREACH_SAFE(var, head, field, tvar) \ argument 163 (var) && ((tvar) = CK_SLIST_NEXT(var, field), 1); \ 166 #define CK_SLIST_FOREACH_PREVPTR(var, varp, head, field) \ argument 169 (varp) = &(var)->field.csle_next) [all …]
|
/freebsd/contrib/sendmail/include/sm/ |
H A D | tailq.h | 77 #define SM_TAILQ_NEXT(elm, field) ((elm)->field.tqe_next) argument 81 #define SM_TAILQ_PREV(elm, headname, field) \ argument 82 (*(((struct headname *)((elm)->field.tqe_prev))->tqh_last)) 86 #define SM_TAILQ_FOREACH(var, head, field) \ argument 89 (var) = SM_TAILQ_NEXT(var, field)) 91 #define SM_TAILQ_FOREACH_REVERSE(var, head, headname, field) \ argument 94 (var) = SM_TAILQ_PREV(var, headname, field)) 104 #define SM_TAILQ_INSERT_HEAD(head, elm, field) do { \ argument 105 if (((elm)->field.tqe_next = (head)->tqh_first) != NULL) \ 106 (head)->tqh_first->field.tqe_prev = \ [all …]
|
/freebsd/contrib/ncurses/form/ |
H A D | frm_driver.c | 132 #define Position_Of_Row_In_Buffer(field,row) ((row)*(field)->dcols) argument 135 #define Address_Of_Nth_Buffer(field,N) \ argument 136 ((field)->buf + (N)*(1+Buffer_Length(field))) 139 #define Address_Of_Row_In_Nth_Buffer(field,N,row) \ argument 140 (Address_Of_Nth_Buffer(field,N) + Position_Of_Row_In_Buffer(field,row)) 143 #define Address_Of_Row_In_Buffer(field,row) \ argument 144 Address_Of_Row_In_Nth_Buffer(field,0,row) 168 #define Is_Scroll_Field(field) \ argument 169 (((field)->drows > (field)->rows) || \ 170 ((field)->dcols > (field)->cols)) [all …]
|
H A D | fld_link.c | 53 link_field(FIELD *field, int frow, int fcol) in FORM_EXPORT() 58 T((T_CALLED("link_field(%p,%d,%d)"), (void *)field, frow, fcol)); in FORM_EXPORT() 59 if (field && (frow >= 0) && (fcol >= 0) && in FORM_EXPORT() 68 New_Field->link = field->link; in FORM_EXPORT() 69 field->link = New_Field; in FORM_EXPORT() 71 New_Field->buf = field->buf; in FORM_EXPORT() 72 New_Field->rows = field->rows; in FORM_EXPORT() 73 New_Field->cols = field->cols; in FORM_EXPORT() 74 New_Field->nrow = field->nrow; in FORM_EXPORT() 75 New_Field->nbuf = field->nbuf; in FORM_EXPORT() [all …]
|
/freebsd/sys/dev/aic7xxx/ |
H A D | aic79xx.reg | 89 field DST_MODE 0x70 90 field SRC_MODE 0x07 103 field HWERRINT 0x80 104 field BRKADRINT 0x40 105 field SWTMINT 0x20 106 field PCIINT 0x10 107 field SCSIINT 0x08 108 field SEQINT 0x04 109 field CMDCMPLT 0x02 110 field SPLTINT 0x01 [all …]
|
H A D | aic7xxx.reg | 58 field TEMODE 0x80 59 field ENSELO 0x40 60 field ENSELI 0x20 61 field ENRSELI 0x10 62 field ENAUTOATNO 0x08 63 field ENAUTOATNI 0x04 64 field ENAUTOATNP 0x02 65 field SCSIRSTO 0x01 75 field DFON 0x80 76 field DFPEXP 0x40 [all …]
|
/freebsd/usr.sbin/nscd/ |
H A D | hashtable.h | 73 #define HASHTABLE_INIT(table, type, field, _entries_size) \ argument 80 (table)->entries[var].field.capacity = \ 82 (table)->entries[var].field.size = 0; \ 83 (table)->entries[var].field.values = malloc( \ 86 assert((table)->entries[var].field.values != NULL);\ 93 #define HASHTABLE_DESTROY(table, field) \ argument 97 free((table)->entries[var].field.values); \ 115 #define HASHTABLE_ENTRY_FOREACH(entry, field, var) \ argument 116 for ((var) = &((entry)->field.values[0]); \ 117 (var) < &((entry)->field.values[(entry)->field.size]); \ [all …]
|
/freebsd/contrib/libxo/xolint/ |
H A D | xolint.pl | 347 my(@field) = @_; 348 print "checking field: [" . join("][", @field) . "]\n" if $opt_debug; 350 if ($field[0] =~ /,/) { 352 my @parts = split(/,/, $field[0]); 373 $field[4] = substr($field[0], index($field[0], ",")); 374 $field[0] = $parts[0] . $new; 378 $vocabulary{$field[1]} = 1 379 if $field[1] && $field[0] !~ /[DELNPTUW\[\]]/; 390 if $last =~ /[DELNPTUVW\[\]]/ && $field[0] !~ /[DELNPTUVW\[\]]/; 397 my $cf = count_args($field[2]); [all …]
|
/freebsd/contrib/elftoolchain/common/ |
H A D | _elftc.h | 80 #define LIST_FOREACH_SAFE(var, head, field, tvar) \ argument 82 (var) && ((tvar) = LIST_NEXT((var), field), 1); \ 87 #define SLIST_FOREACH_SAFE(var, head, field, tvar) \ argument 89 (var) && ((tvar) = SLIST_NEXT((var), field), 1); \ 132 #define STAILQ_FOREACH(var, head, field) \ argument 135 (var) = ((var)->field.stqe_next)) 139 #define STAILQ_FOREACH_SAFE(var, head, field, tvar) \ argument 141 (var) && ((tvar) = STAILQ_NEXT((var), field), 1); \ 153 #define STAILQ_INSERT_HEAD(head, elm, field) do { \ argument 154 if (((elm)->field.stqe_next = (head)->stqh_first) == NULL) \ [all …]
|
/freebsd/sys/dev/bnxt/bnxt_en/ |
H A D | convert_hsi.pl | 182 my $field=shift; 194 …T "\tRTE_LOG(DEBUG, PMD, \" % *s = 0x%%08\"PRIX32\"\\n\", data->$field);\n",$max_field_len,$field; 197 …T "\tRTE_LOG(DEBUG, PMD, \" % *s = 0x%%04\"PRIX16\"\\n\", data->$field);\n",$max_field_len,$field; 200 …UT "\tRTE_LOG(DEBUG, PMD, \" % *s = 0x%%02\"PRIX8\"\\n\", data->$field);\n",$max_field_len,$field; 203 … "\tRTE_LOG(DEBUG, PMD, \" % *s = 0x%%016\"PRIX64\"\\n\", data->$field);\n",$max_field_len,$field; 206 if ($field =~ s/\[([0-9]+)\]//) { 207 …OUT "\tRTE_LOG(DEBUG, PMD, \" % *s = \\\"%%.$1s\\\"\\n\", data->$field);\n",$max_field_len,$field; 210 …UT "\tRTE_LOG(DEBUG, PMD, \" % *s = 0x%%02\"PRIX8\"\\n\", data->$field);\n",$max_field_len,$field; 217 my $macro_prefix = uc($name).'_'.uc($field).'_'; 219 $macro_prefix =~ s/FLAGS_TYPE_$/FLAGS_/ if ($field eq 'flags_type'); [all …]
|
/freebsd/crypto/heimdal/lib/gssapi/mech/ |
H A D | mechqueue.h | 60 #define HEIM_SLIST_INSERT_AFTER(slistelm, elm, field) do { \ argument 61 (elm)->field.sle_next = (slistelm)->field.sle_next; \ 62 (slistelm)->field.sle_next = (elm); \ 65 #define HEIM_SLIST_INSERT_HEAD(head, elm, field) do { \ argument 66 (elm)->field.sle_next = (head)->slh_first; \ 70 #define HEIM_SLIST_REMOVE_HEAD(head, field) do { \ argument 71 (head)->slh_first = (head)->slh_first->field.sle_next; \ 74 #define HEIM_SLIST_REMOVE(head, elm, type, field) do { \ argument 76 HEIM_SLIST_REMOVE_HEAD((head), field); \ 80 while(curelm->field.sle_next != (elm)) \ [all …]
|