diff options
author | 2008-12-30 13:27:09 +0000 | |
---|---|---|
committer | 2008-12-30 13:27:09 +0000 | |
commit | 90a0c6affc9b2fe9ebd6ba3cf3ee9fbcc1fc5835 (patch) | |
tree | 306cd231345df87c1433c5d7aeff525bf2817846 /paxmacho.h | |
parent | drop excessive parenthesis (diff) | |
download | pax-utils-90a0c6affc9b2fe9ebd6ba3cf3ee9fbcc1fc5835.tar.gz pax-utils-90a0c6affc9b2fe9ebd6ba3cf3ee9fbcc1fc5835.tar.bz2 pax-utils-90a0c6affc9b2fe9ebd6ba3cf3ee9fbcc1fc5835.zip |
cleanup code style a bit and simplify a bunch of places -- hopefully i didnt break anything
Diffstat (limited to 'paxmacho.h')
-rw-r--r-- | paxmacho.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* * Copyright 2005-2007 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 - * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxmacho.h,v 1.4 2008/09/08 07:02:56 grobian Exp $ + * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxmacho.h,v 1.5 2008/12/30 13:27:09 vapier Exp $ * * Copyright 2005-2007 Ned Ludd - <solar@gentoo.org> * Copyright 2005-2007 Mike Frysinger - <vapier@gentoo.org> @@ -15,6 +15,9 @@ #include "macho.h" +#define MGET(swapped, value) (swapped ? bswap_32(value) : value) +#define MOBJGET(obj, member) MGET((obj)->swapped, (obj)->member) + typedef struct _fatobj { char *data; /* mmapped image of the whole file */ size_t len; /* length of data (file length) */ |