list 98 src/dps8/utlist.h # define _SV(elt,list) _tmp = (char*)(list); {char **_alias = (char**)&(list); *_alias = (elt); } list 99 src/dps8/utlist.h # define _NEXT(elt,list,next) ((char*)((list)->next)) list 100 src/dps8/utlist.h # define _NEXTASGN(elt,list,to,next) { char **_alias = (char**)&((list)->next); *_alias=(char*)(to); } list 102 src/dps8/utlist.h # define _PREVASGN(elt,list,to,prev) { char **_alias = (char**)&((list)->prev); *_alias=(char*)(to); } list 103 src/dps8/utlist.h # define _RS(list) { char **_alias = (char**)&(list); *_alias=_tmp; } list 106 src/dps8/utlist.h # define _SV(elt,list) list 107 src/dps8/utlist.h # define _NEXT(elt,list,next) ((elt)->next) list 108 src/dps8/utlist.h # define _NEXTASGN(elt,list,to,next) ((elt)->next)=(to) list 110 src/dps8/utlist.h # define _PREVASGN(elt,list,to,prev) ((elt)->prev)=(to) list 111 src/dps8/utlist.h # define _RS(list) list 122 src/dps8/utlist.h # define LL_SORT(list, cmp) \ list 123 src/dps8/utlist.h LL_SORT2(list, cmp, next) list 125 src/dps8/utlist.h # define LL_SORT2(list, cmp, next) \ list 127 src/dps8/utlist.h LDECLTYPE(list) _ls_p; \ list 128 src/dps8/utlist.h LDECLTYPE(list) _ls_q; \ list 129 src/dps8/utlist.h LDECLTYPE(list) _ls_e; \ list 130 src/dps8/utlist.h LDECLTYPE(list) _ls_tail; \ list 132 src/dps8/utlist.h if (list) { \ list 136 src/dps8/utlist.h _CASTASGN(_ls_p,list); \ list 137 src/dps8/utlist.h list = NULL; \ list 146 src/dps8/utlist.h _SV(_ls_q,list); _ls_q = _NEXT(_ls_q,list,next); _RS(list); \ list 152 src/dps8/utlist.h _ls_e = _ls_q; _SV(_ls_q,list); _ls_q = \ list 153 src/dps8/utlist.h _NEXT(_ls_q,list,next); _RS(list); _ls_qsize--; \ list 155 src/dps8/utlist.h _ls_e = _ls_p; _SV(_ls_p,list); _ls_p = \ list 156 src/dps8/utlist.h _NEXT(_ls_p,list,next); _RS(list); _ls_psize--; \ list 158 src/dps8/utlist.h _ls_e = _ls_p; _SV(_ls_p,list); _ls_p = \ list 159 src/dps8/utlist.h _NEXT(_ls_p,list,next); _RS(list); _ls_psize--; \ list 161 src/dps8/utlist.h _ls_e = _ls_q; _SV(_ls_q,list); _ls_q = \ list 162 src/dps8/utlist.h _NEXT(_ls_q,list,next); _RS(list); _ls_qsize--; \ list 165 src/dps8/utlist.h _SV(_ls_tail,list); _NEXTASGN(_ls_tail,list,_ls_e,next); _RS(list); \ list 167 src/dps8/utlist.h _CASTASGN(list,_ls_e); \ list 174 src/dps8/utlist.h _SV(_ls_tail,list); _NEXTASGN(_ls_tail,list,NULL,next); _RS(list); \ list 184 src/dps8/utlist.h # define DL_SORT(list, cmp) \ list 185 src/dps8/utlist.h DL_SORT2(list, cmp, prev, next) list 187 src/dps8/utlist.h # define DL_SORT2(list, cmp, prev, next) \ list 189 src/dps8/utlist.h LDECLTYPE(list) _ls_p; \ list 190 src/dps8/utlist.h LDECLTYPE(list) _ls_q; \ list 191 src/dps8/utlist.h LDECLTYPE(list) _ls_e; \ list 192 src/dps8/utlist.h LDECLTYPE(list) _ls_tail; \ list 194 src/dps8/utlist.h if (list) { \ list 198 src/dps8/utlist.h _CASTASGN(_ls_p,list); \ list 199 src/dps8/utlist.h list = NULL; \ list 208 src/dps8/utlist.h _SV(_ls_q,list); _ls_q = _NEXT(_ls_q,list,next); _RS(list); \ list 214 src/dps8/utlist.h _ls_e = _ls_q; _SV(_ls_q,list); _ls_q = \ list 215 src/dps8/utlist.h _NEXT(_ls_q,list,next); _RS(list); _ls_qsize--; \ list 217 src/dps8/utlist.h _ls_e = _ls_p; _SV(_ls_p,list); _ls_p = \ list 218 src/dps8/utlist.h _NEXT(_ls_p,list,next); _RS(list); _ls_psize--; \ list 220 src/dps8/utlist.h _ls_e = _ls_p; _SV(_ls_p,list); _ls_p = \ list 221 src/dps8/utlist.h _NEXT(_ls_p,list,next); _RS(list); _ls_psize--; \ list 223 src/dps8/utlist.h _ls_e = _ls_q; _SV(_ls_q,list); _ls_q = \ list 224 src/dps8/utlist.h _NEXT(_ls_q,list,next); _RS(list); _ls_qsize--; \ list 227 src/dps8/utlist.h _SV(_ls_tail,list); _NEXTASGN(_ls_tail,list,_ls_e,next); _RS(list); \ list 229 src/dps8/utlist.h _CASTASGN(list,_ls_e); \ list 231 src/dps8/utlist.h _SV(_ls_e,list); _PREVASGN(_ls_e,list,_ls_tail,prev); _RS(list); \ list 236 src/dps8/utlist.h _CASTASGN(list->prev, _ls_tail); \ list 237 src/dps8/utlist.h _SV(_ls_tail,list); _NEXTASGN(_ls_tail,list,NULL,next); _RS(list); \ list 246 src/dps8/utlist.h # define CDL_SORT(list, cmp) \ list 247 src/dps8/utlist.h CDL_SORT2(list, cmp, prev, next) list 249 src/dps8/utlist.h # define CDL_SORT2(list, cmp, prev, next) \ list 251 src/dps8/utlist.h LDECLTYPE(list) _ls_p; \ list 252 src/dps8/utlist.h LDECLTYPE(list) _ls_q; \ list 253 src/dps8/utlist.h LDECLTYPE(list) _ls_e; \ list 254 src/dps8/utlist.h LDECLTYPE(list) _ls_tail; \ list 255 src/dps8/utlist.h LDECLTYPE(list) _ls_oldhead; \ list 256 src/dps8/utlist.h LDECLTYPE(list) _tmp; \ list 258 src/dps8/utlist.h if (list) { \ list 262 src/dps8/utlist.h _CASTASGN(_ls_p,list); \ list 263 src/dps8/utlist.h _CASTASGN(_ls_oldhead,list); \ list 264 src/dps8/utlist.h list = NULL; \ list 273 src/dps8/utlist.h _SV(_ls_q,list); \ list 274 src/dps8/utlist.h if (_NEXT(_ls_q,list,next) == _ls_oldhead) { \ list 277 src/dps8/utlist.h _ls_q = _NEXT(_ls_q,list,next); \ list 279 src/dps8/utlist.h _RS(list); \ list 285 src/dps8/utlist.h _ls_e = _ls_q; _SV(_ls_q,list); _ls_q = \ list 286 src/dps8/utlist.h _NEXT(_ls_q,list,next); _RS(list); _ls_qsize--; \ list 289 src/dps8/utlist.h _ls_e = _ls_p; _SV(_ls_p,list); _ls_p = \ list 290 src/dps8/utlist.h _NEXT(_ls_p,list,next); _RS(list); _ls_psize--; \ list 293 src/dps8/utlist.h _ls_e = _ls_p; _SV(_ls_p,list); _ls_p = \ list 294 src/dps8/utlist.h _NEXT(_ls_p,list,next); _RS(list); _ls_psize--; \ list 297 src/dps8/utlist.h _ls_e = _ls_q; _SV(_ls_q,list); _ls_q = \ list 298 src/dps8/utlist.h _NEXT(_ls_q,list,next); _RS(list); _ls_qsize--; \ list 302 src/dps8/utlist.h _SV(_ls_tail,list); _NEXTASGN(_ls_tail,list,_ls_e,next); _RS(list); \ list 304 src/dps8/utlist.h _CASTASGN(list,_ls_e); \ list 306 src/dps8/utlist.h _SV(_ls_e,list); _PREVASGN(_ls_e,list,_ls_tail,prev); _RS(list); \ list 311 src/dps8/utlist.h _CASTASGN(list->prev,_ls_tail); \ list 312 src/dps8/utlist.h _CASTASGN(_tmp,list); \ list 313 src/dps8/utlist.h _SV(_ls_tail,list); _NEXTASGN(_ls_tail,list,_tmp,next); _RS(list); \ list 3688 src/simh/sim_tmxr.c int32 *list; list 3699 src/simh/sim_tmxr.c list = (int32 *) calloc (mp->lines, sizeof (int32)); /* allocate new line order array */ list 3700 src/simh/sim_tmxr.c if (list == NULL) /* allocation failed? */ list 3705 src/simh/sim_tmxr.c FREE (list); /* free successful list allocation */ list 3712 src/simh/sim_tmxr.c FREE(list); list 3735 src/simh/sim_tmxr.c list [0] = -1; /* set sequential order flag */ list 3744 src/simh/sim_tmxr.c list [idx] = line; /* add line to connection order */ list 3753 src/simh/sim_tmxr.c list [idx] = line; /* no, so add it */ list 3757 src/simh/sim_tmxr.c memcpy (mp->lnorder, list, mp->lines * sizeof (int32)); /* copy working array to connection array */ list 3760 src/simh/sim_tmxr.c FREE (list); /* free list allocation */