summaryrefslogtreecommitdiff
path: root/build/parseSpec.c
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/parseSpec.c
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/parseSpec.c')
-rw-r--r--build/parseSpec.c9
1 files changed, 9 insertions, 0 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;