src/commands/autil/obj.h File Reference

#include <local.h>
#include <stdio.h>
#include <out.h>
#include <ranlib.h>
#include <arch.h>
#include "object.h"

Go to the source code of this file.

Classes

struct  fil

Defines

#define CHAR_UNSIGNED   0
#define Xchar(ch)   ((ch) & 0377)
#define BYTE_ORDER   0x3210
#define uget2(c)   (Xchar((c)[0]) | ((unsigned) Xchar((c)[1]) << 8))
#define Xput2(i, c)   (((c)[0] = (i)), ((c)[1] = (i) >> 8))
#define put2(i, c)   { register int j = (i); Xput2(j, c); }
#define get2(c)   ((short) uget2(c))
#define get4(c)   (uget2(c) | ((long) uget2((c)+2) << 16))
#define put4(l, c)
#define SECTCNT   3
#define WBUFSIZ   BUFSIZ
#define PARTEMIT   0
#define PARTRELO   (PARTEMIT+SECTCNT)
#define PARTNAME   (PARTRELO+1)
#define PARTCHAR   (PARTNAME+1)
#define PARTDBUG   (PARTCHAR+0)
#define NPARTS   (PARTDBUG + 1)
#define getsect(s)   (PARTEMIT+((s)>=(SECTCNT-1)?(SECTCNT-1):(s)))

Variables

struct fil __parts []


Define Documentation

#define BYTE_ORDER   0x3210

Definition at line 24 of file obj.h.

#define CHAR_UNSIGNED   0

Definition at line 14 of file obj.h.

#define get2 ( c   )     ((short) uget2(c))

Definition at line 37 of file obj.h.

#define get4 ( c   )     (uget2(c) | ((long) uget2((c)+2) << 16))

Definition at line 40 of file obj.h.

#define getsect ( s   )     (PARTEMIT+((s)>=(SECTCNT-1)?(SECTCNT-1):(s)))

Definition at line 79 of file obj.h.

#define NPARTS   (PARTDBUG + 1)

Definition at line 77 of file obj.h.

#define PARTCHAR   (PARTNAME+1)

Definition at line 71 of file obj.h.

#define PARTDBUG   (PARTCHAR+0)

Definition at line 75 of file obj.h.

#define PARTEMIT   0

Definition at line 68 of file obj.h.

#define PARTNAME   (PARTRELO+1)

Definition at line 70 of file obj.h.

#define PARTRELO   (PARTEMIT+SECTCNT)

Definition at line 69 of file obj.h.

#define put2 ( i,
c   )     { register int j = (i); Xput2(j, c); }

Definition at line 30 of file obj.h.

#define put4 ( l,
c   ) 

Value:

{ register long x=(l); \
                          Xput2((int)x,c); \
                          Xput2((int)(x>>16),(c)+2); \
                        }

Definition at line 41 of file obj.h.

#define SECTCNT   3

Definition at line 50 of file obj.h.

#define uget2 ( c   )     (Xchar((c)[0]) | ((unsigned) Xchar((c)[1]) << 8))

Definition at line 28 of file obj.h.

#define WBUFSIZ   BUFSIZ

Definition at line 54 of file obj.h.

#define Xchar ( ch   )     ((ch) & 0377)

Definition at line 20 of file obj.h.

#define Xput2 ( i,
c   )     (((c)[0] = (i)), ((c)[1] = (i) >> 8))

Definition at line 29 of file obj.h.


Variable Documentation

struct fil __parts[]


Generated on Tue Mar 9 04:36:24 2010 for Minix by  doxygen 1.5.8