1987-03-10 09:24:02 +00:00
|
|
|
/* $Header$ */
|
1987-03-09 15:15:03 +00:00
|
|
|
/*
|
|
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
|
|
*/
|
1987-01-05 17:31:38 +00:00
|
|
|
#include <ranlib.h>
|
|
|
|
#include "object.h"
|
|
|
|
|
|
|
|
rd_ranlib(fd, ran, cnt)
|
|
|
|
register struct ranlib *ran;
|
|
|
|
register long cnt;
|
|
|
|
{
|
|
|
|
rd_bytes(fd, (char *) ran, cnt * SZ_RAN);
|
1991-08-26 16:57:47 +00:00
|
|
|
#if BYTE_ORDER == 0x0123
|
1987-01-05 17:31:38 +00:00
|
|
|
if (sizeof (struct ranlib) != SZ_RAN)
|
|
|
|
#endif
|
|
|
|
{
|
1991-08-26 16:57:47 +00:00
|
|
|
register char *c = (char *) ran + cnt * SZ_RAN;
|
1987-01-05 17:31:38 +00:00
|
|
|
|
1991-08-26 16:57:47 +00:00
|
|
|
ran += cnt;
|
1987-01-05 17:31:38 +00:00
|
|
|
while (cnt--) {
|
1991-08-26 16:57:47 +00:00
|
|
|
ran--;
|
|
|
|
c -= 4; ran->ran_pos = get4(c);
|
|
|
|
c -= 4; ran->ran_off = get4(c);
|
1987-01-05 17:31:38 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|