summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-08-25 14:52:58 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-08-25 14:52:58 +0300
commit2a6efbca7ed753b6fac717976a14e24cf969db45 (patch)
tree3ebf48f5122358a2fe1711bc96423f561fecaec2 /build
parent8d448745f053103ce3fbcf16f014cc376be8ddcf (diff)
downloadlibrpm-tizen-2a6efbca7ed753b6fac717976a14e24cf969db45.tar.gz
librpm-tizen-2a6efbca7ed753b6fac717976a14e24cf969db45.tar.bz2
librpm-tizen-2a6efbca7ed753b6fac717976a14e24cf969db45.zip
Bury OpenFileInfo inside parseSpec.c
- Nothing outside spec parsing machinery needs this nor should mess with it, enforce with opaque pointer.
Diffstat (limited to 'build')
-rw-r--r--build/parseSpec.c9
-rw-r--r--build/rpmspec.h11
2 files changed, 9 insertions, 11 deletions
diff --git a/build/parseSpec.c b/build/parseSpec.c
index eccd6e883..9488eed0c 100644
--- a/build/parseSpec.c
+++ b/build/parseSpec.c
@@ -21,6 +21,15 @@
#define LEN_AND_STR(_tag) (sizeof(_tag)-1), (_tag)
+typedef struct OpenFileInfo {
+ char * fileName;
+ FILE *fp;
+ int lineNum;
+ char readBuf[BUFSIZ];
+ char * readPtr;
+ struct OpenFileInfo * next;
+} OFI_t;
+
static const struct PartRec {
int part;
size_t len;
diff --git a/build/rpmspec.h b/build/rpmspec.h
index f4b4c9355..6d6e63864 100644
--- a/build/rpmspec.h
+++ b/build/rpmspec.h
@@ -54,17 +54,6 @@ typedef struct ReadLevelEntry {
/** \ingroup rpmbuild
*/
-typedef struct OpenFileInfo {
- char * fileName;
- FILE *fp;
- int lineNum;
- char readBuf[BUFSIZ];
- char * readPtr;
- struct OpenFileInfo * next;
-} OFI_t;
-
-/** \ingroup rpmbuild
- */
typedef struct spectag_s {
int t_tag;
int t_startx;