/[gentoo-projects]/pax-utils/scanelf.c
Gentoo

Diff of /pax-utils/scanelf.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.235 Revision 1.236
1/* 1/*
2 * Copyright 2003-2007 Gentoo Foundation 2 * Copyright 2003-2007 Gentoo Foundation
3 * Distributed under the terms of the GNU General Public License v2 3 * Distributed under the terms of the GNU General Public License v2
4 * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.235 2011/12/13 05:12:14 vapier Exp $ 4 * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.236 2011/12/21 17:34:12 vapier Exp $
5 * 5 *
6 * Copyright 2003-2007 Ned Ludd - <solar@gentoo.org> 6 * Copyright 2003-2007 Ned Ludd - <solar@gentoo.org>
7 * Copyright 2004-2007 Mike Frysinger - <vapier@gentoo.org> 7 * Copyright 2004-2007 Mike Frysinger - <vapier@gentoo.org>
8 */ 8 */
9 9
10static const char rcsid[] = "$Id: scanelf.c,v 1.235 2011/12/13 05:12:14 vapier Exp $"; 10static const char rcsid[] = "$Id: scanelf.c,v 1.236 2011/12/21 17:34:12 vapier Exp $";
11const char argv0[] = "scanelf"; 11const char argv0[] = "scanelf";
12 12
13#include "paxinc.h" 13#include "paxinc.h"
14 14
15#define IS_MODIFIER(c) (c == '%' || c == '#' || c == '+') 15#define IS_MODIFIER(c) (c == '%' || c == '#' || c == '+')
969 } else { \ 969 } else { \
970 /* -N -> print matching entries */ \ 970 /* -N -> print matching entries */ \
971 size_t n; \ 971 size_t n; \
972 const char *find_lib_name; \ 972 const char *find_lib_name; \
973 \ 973 \
974 array_for_each(find_lib_arr, n, find_lib_name) \ 974 array_for_each(find_lib_arr, n, find_lib_name) { \
975 int invert = 1; \
976 if (find_lib_name[0] == '!') \
977 invert = 0, ++find_lib_name; \
975 if (!strcmp(find_lib_name, needed)) \ 978 if (!strcmp(find_lib_name, needed) == invert) \
976 ++matched; \ 979 ++matched; \
980 } \
977 \ 981 \
978 if (matched == array_cnt(find_lib_arr)) { \ 982 if (matched == array_cnt(find_lib_arr)) { \
979 *found_lib = 1; \ 983 *found_lib = 1; \
980 return (be_wewy_wewy_quiet ? NULL : find_lib); \ 984 return (be_wewy_wewy_quiet ? NULL : find_lib); \
981 } \ 985 } \

Legend:
Removed from v.1.235  
changed lines
  Added in v.1.236

  ViewVC Help
Powered by ViewVC 1.1.20