Exemplo n.º 1
0
/*
 * print the numbered order *and* its associated lineitems
 */
int
pr_order_line(void *vo, int mode)
{
  order_t* o = (order_t*)vo;
  tdefs[ORDER].name = tdefs[ORDER_LINE].name;
  pr_order(o, mode);
  pr_line(o, mode);

  return(0);
}
Exemplo n.º 2
0
int pr_body (void *body)
{
	u8	*b = body;
	int	i;

	lock();
	for (i = 0; i < BODY_SIZE/BYTES_PER_LINE; i++) {
		pr_line(b);
		b += BYTES_PER_LINE;
	}
	unlock();
	return 1;
}