diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-12-07 09:53:53 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-12-07 09:53:53 +0200 |
commit | 23bba68b56c590f2fdbb955c60e5dff0ceae5bb8 (patch) | |
tree | b50a796cc5a1bfa77199a818a419ec7e78caadd3 /build/rpmbuild.h | |
parent | 2a9c146f31f9695da5af489ff9d14540b10fcd13 (diff) | |
download | librpm-tizen-23bba68b56c590f2fdbb955c60e5dff0ceae5bb8.tar.gz librpm-tizen-23bba68b56c590f2fdbb955c60e5dff0ceae5bb8.tar.bz2 librpm-tizen-23bba68b56c590f2fdbb955c60e5dff0ceae5bb8.zip |
rpm5.org: fixup spec parsing from rpmerr.h removal
- renumber rpmParseState enums to leave room for error codes
Diffstat (limited to 'build/rpmbuild.h')
-rw-r--r-- | build/rpmbuild.h | 55 |
1 files changed, 31 insertions, 24 deletions
diff --git a/build/rpmbuild.h b/build/rpmbuild.h index d131c9496..06f36e1c5 100644 --- a/build/rpmbuild.h +++ b/build/rpmbuild.h @@ -44,30 +44,37 @@ typedef enum rpmBuildFlags_e { /** \ingroup rpmbuild * rpmSpec file parser states. */ -typedef enum rpmParseState_e { - PART_NONE = 0, /*!< */ - PART_PREAMBLE = 1, /*!< */ - PART_PREP = 2, /*!< */ - PART_BUILD = 3, /*!< */ - PART_INSTALL = 4, /*!< */ - PART_CHECK = 5, /*!< */ - PART_CLEAN = 6, /*!< */ - PART_FILES = 7, /*!< */ - PART_PRE = 8, /*!< */ - PART_POST = 9, /*!< */ - PART_PREUN = 10, /*!< */ - PART_POSTUN = 11, /*!< */ - PART_PRETRANS = 12, /*!< */ - PART_POSTTRANS = 13, /*!< */ - PART_DESCRIPTION = 14, /*!< */ - PART_CHANGELOG = 15, /*!< */ - PART_TRIGGERIN = 16, /*!< */ - PART_TRIGGERUN = 17, /*!< */ - PART_VERIFYSCRIPT = 18, /*!< */ - PART_BUILDARCHITECTURES= 19,/*!< */ - PART_TRIGGERPOSTUN = 20, /*!< */ - PART_LAST = 21 /*!< */ -} rpmParseState; +/** \ingroup rpmbuild + * * Spec file parser states. + * */ +#define PART_BASE 0 +typedef enum rpmParseState_e { + PART_NONE = 0+PART_BASE, /*!< */ + /* leave room for RPMRC_NOTFOUND returns. */ + PART_PREAMBLE = 11+PART_BASE, /*!< */ + PART_PREP = 12+PART_BASE, /*!< */ + PART_BUILD = 13+PART_BASE, /*!< */ + PART_INSTALL = 14+PART_BASE, /*!< */ + PART_CHECK = 15+PART_BASE, /*!< */ + PART_CLEAN = 16+PART_BASE, /*!< */ + PART_FILES = 17+PART_BASE, /*!< */ + PART_PRE = 18+PART_BASE, /*!< */ + PART_POST = 19+PART_BASE, /*!< */ + PART_PREUN = 20+PART_BASE, /*!< */ + PART_POSTUN = 21+PART_BASE, /*!< */ + PART_PRETRANS = 22+PART_BASE, /*!< */ + PART_POSTTRANS = 23+PART_BASE, /*!< */ + PART_DESCRIPTION = 24+PART_BASE, /*!< */ + PART_CHANGELOG = 25+PART_BASE, /*!< */ + PART_TRIGGERIN = 26+PART_BASE, /*!< */ + PART_TRIGGERUN = 27+PART_BASE, /*!< */ + PART_VERIFYSCRIPT = 28+PART_BASE, /*!< */ + PART_BUILDARCHITECTURES= 29+PART_BASE,/*!< */ + PART_TRIGGERPOSTUN = 30+PART_BASE, /*!< */ + PART_TRIGGERPREIN = 31+PART_BASE, /*!< */ + PART_LAST = 32+PART_BASE /*!< */ +} rpmParseState; + #define STRIP_NOTHING 0 #define STRIP_TRAILINGSPACE (1 << 0) |