#include <collections/list.hfa>


int main() {







struct req;
P9_EMBEDDED_FWD_INFUNC(req, dlink(req))






struct req {
  int pri, rqr;
  inline dlink(req);
};

dlist(req) reqs;

req
  r1 = {1, 42},
  r2 = {2, 42};

insert_first(reqs, r2);
insert_first(reqs, r1);







P9_EMBEDDED_INFUNC(req, dlink(req))











while( req & cur = reqs`elems; cur`moveNext )
    printf("{%d %d} ", cur.pri, cur.rqr);
printf("\n");







}
