summaryrefslogtreecommitdiff
path: root/build/rpmfc.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-02-17 15:09:20 +0200
committerPanu Matilainen <pmatilai@redhat.com>2010-02-17 15:09:20 +0200
commitad2c8485ea109d37a2fb8ee9ed5f688eef282bf8 (patch)
tree85e3977ebf5e666207a1d1e0d56178a3be8cbccc /build/rpmfc.h
parentf3ca4fb48171b4bd0549fe67f302517135c465ff (diff)
downloadrpm-ad2c8485ea109d37a2fb8ee9ed5f688eef282bf8.tar.gz
rpm-ad2c8485ea109d37a2fb8ee9ed5f688eef282bf8.tar.bz2
rpm-ad2c8485ea109d37a2fb8ee9ed5f688eef282bf8.zip
Use text token attributes instead of bitfield for file classification
- 32 bits are nowhere near enough to meaningfully classify all the types of data we might want to extract dependencies for, the bitfield was already almost used up and twisty with embedded enumeration in the middle etc. With text-based tokens, there are no limits to the total number of known attributes or number of attributes that can be attached to a given file. This also paves way to moving the classification table out of librpmbuild into configuration file(s). - Remove most of the now unused RPMFC_FOO definitions from the FCOLOR enum, leaving just the more abstract INCLUDE, WHITE etc which control other aspects of the operation. Also ELF is special as the value ends up in headers, preserve it too.
Diffstat (limited to 'build/rpmfc.h')
-rw-r--r--build/rpmfc.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/build/rpmfc.h b/build/rpmfc.h
index 87f9f1336..96229640e 100644
--- a/build/rpmfc.h
+++ b/build/rpmfc.h
@@ -31,40 +31,6 @@ enum FCOLOR_e {
#define RPMFC_ELF (RPMFC_ELF32|RPMFC_ELF64|RPMFC_ELFMIPSN32)
/* (1 << 3) leaks into package headers, reserved */
- /* bits 4-6 unused */
- RPMFC_OCAML = (1 << 7),
- RPMFC_PKGCONFIG = (1 << 8),
- RPMFC_LIBTOOL = (1 << 9),
- RPMFC_BOURNE = (1 << 10),
- RPMFC_MONO = (1 << 11),
-
- RPMFC_SCRIPT = (1 << 12),
- RPMFC_STATIC = (1 << 13),
- RPMFC_NOTSTRIPPED = (1 << 14),
- /* bit 15 unused */
-
- /* bits 16-19 are enumerated, not bits */
- RPMFC_DIRECTORY = (1 << 16),
- RPMFC_SYMLINK = (2 << 16),
- RPMFC_DEVICE = (3 << 16),
- RPMFC_LIBRARY = (4 << 16),
- RPMFC_FONT = (5 << 16),
- RPMFC_IMAGE = (6 << 16),
- RPMFC_MANPAGE = (7 << 16),
- RPMFC_TEXT = (8 << 16),
- RPMFC_DOCUMENT = (9 << 16),
-
- RPMFC_ARCHIVE = (1 << 20),
- RPMFC_COMPRESSED = (1 << 21),
- RPMFC_MODULE = (1 << 22),
- RPMFC_EXECUTABLE = (1 << 23),
-
- RPMFC_PERL = (1 << 24),
- RPMFC_JAVA = (1 << 25),
- RPMFC_PYTHON = (1 << 26),
- RPMFC_PHP = (1 << 27),
- RPMFC_TCL = (1 << 28),
-
RPMFC_WHITE = (1 << 29),
RPMFC_INCLUDE = (1 << 30),
RPMFC_ERROR = (1 << 31)
@@ -89,13 +55,6 @@ int rpmfcExec(ARGV_const_t av, StringBuf sb_stdin, StringBuf * sb_stdoutp,
int failnonzero);
/** \ingroup rpmfc
- * Return file color given file(1) string.
- * @param fmstr file(1) string
- * @return file color
- */
-int rpmfcColoring(const char * fmstr);
-
-/** \ingroup rpmfc
* Print results of file classification.
* @todo Remove debugging routine.
* @param msg message prefix (NULL for none)