All paths moved to path.h.
Cleanup in curses.h: removed reg definition. All include files reformatted for 4-space indent.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
/* struct.h 4.1 83/05/03 */
|
||||
/* struct.h 4.1 83/05/03 */
|
||||
|
||||
/*
|
||||
* access to information relating to the fields of a structure
|
||||
*/
|
||||
|
||||
#define fldoff(str, fld) ((int)&(((struct str *)0)->fld))
|
||||
#define fldsiz(str, fld) (sizeof(((struct str *)0)->fld))
|
||||
#define strbase(str, ptr, fld) ((struct str *)((char *)(ptr)-fldoff(str, fld)))
|
||||
#define fldoff(str, fld) ((int)&(((struct str *)0)->fld))
|
||||
#define fldsiz(str, fld) (sizeof(((struct str *)0)->fld))
|
||||
#define strbase(str, ptr, fld) ((struct str *)((char *)(ptr)-fldoff(str, fld)))
|
||||
|
||||
Reference in New Issue
Block a user