|
|
1.1 ! root 1: #include <coff.h> ! 2: ! 3: /* The PLIST struct describes all aspects of a single patch operation. */ ! 4: typedef struct plist { ! 5: SYMENT *p_lvnp; /* nlist entry for LHS of assignment. */ ! 6: SYMENT *p_rvnp; /* nlist entry for RHS of assignment. */ ! 7: long p_lval; /* Value of LHS of assignment. */ ! 8: long p_rval; /* Value of RHS of assignment. */ ! 9: int p_type; /* Type of data being patched. Can be one of: ! 10: * 'c' - character ! 11: * 's' - short ! 12: * 'i' - integer ! 13: * 'l' - long ! 14: */ ! 15: union { ! 16: char p_char; ! 17: short p_short; ! 18: int p_int; ! 19: long p_long; ! 20: } p_val; ! 21: } PLIST; ! 22: ! 23: #if !defined(TRUE) || !defined(FALSE) ! 24: #undef TRUE ! 25: #undef FALSE ! 26: #define TRUE (1==1) ! 27: #define FALSE (1==2) ! 28: #endif ! 29: ! 30: void main(); ! 31: int getnames(); ! 32: void badsym(); ! 33: void getone(); ! 34: void setfile(); ! 35: void setkmem(); ! 36: int patch(); ! 37: long myatol(); ! 38: void usage(); ! 39: char *index(); ! 40: char *realloc();
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.