index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aurelien Foret <aurelien@archlinux.org> | 2005-04-24 21:36:30 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-04-24 21:36:30 +0000 |
commit | beda47fd22d204ba7f79ccab5251ed13c3faf82d (patch) | |
tree | f583cd91f88526561eda7373bc0a8b1e7cb02349 /lib/libalpm/package.h | |
parent | a9540e2c7629bd7ecd7e98a562f77e33a289dba9 (diff) |
-rw-r--r-- | lib/libalpm/package.h | 15 |
diff --git a/lib/libalpm/package.h b/lib/libalpm/package.h index 105a80aa..a555a7e9 100644 --- a/lib/libalpm/package.h +++ b/lib/libalpm/package.h @@ -67,12 +67,19 @@ typedef struct __pmpkg_t { unsigned char infolevel; } pmpkg_t; -#define FREEPKG(p) do { if(p) { pkg_free(p); p = NULL; } } while(0) +#define FREEPKG(p) \ +do { \ + if(p) { \ + pkg_free(p); \ + p = NULL; \ + } \ +} while(0) -#define FREELISTPKGS(p) do {\ +#define FREELISTPKGS(p) \ +do { \ if(p) { \ - PMList *i;\ - for(i = p; i; i = i->next) {\ + PMList *i; \ + for(i = p; i; i = i->next) { \ FREEPKG(i->data); \ }\ FREELIST(p);\ |