Eliminate newOpenFileInfo() from librpmbuild API

- Nothing outside parseSpec.c needs, bury it there and make static
This commit is contained in:
Panu Matilainen 2010-08-24 12:38:50 +03:00
parent 5ed685425e
commit 1719b2f341
3 changed files with 15 additions and 19 deletions

View File

@ -96,6 +96,21 @@ void handleComments(char *s)
*s = '\0';
}
static struct OpenFileInfo * newOpenFileInfo(void)
{
struct OpenFileInfo *ofi;
ofi = xmalloc(sizeof(*ofi));
ofi->fp = NULL;
ofi->fileName = NULL;
ofi->lineNum = 0;
ofi->readBuf[0] = '\0';
ofi->readPtr = NULL;
ofi->next = NULL;
return ofi;
}
/**
*/
static void forceIncludeFile(rpmSpec spec, const char * fileName)

View File

@ -197,10 +197,6 @@ rpmSpec freeSpec(rpmSpec spec);
*/
int rpmspecQuery(rpmts ts, QVA_t qva, const char * arg);
/** \ingroup rpmbuild
*/
struct OpenFileInfo * newOpenFileInfo(void);
/** \ingroup rpmbuild
* stashSt.
* @param spec spec file control structure

View File

@ -342,21 +342,6 @@ rpmSpec freeSpec(rpmSpec spec)
return spec;
}
struct OpenFileInfo * newOpenFileInfo(void)
{
struct OpenFileInfo *ofi;
ofi = xmalloc(sizeof(*ofi));
ofi->fp = NULL;
ofi->fileName = NULL;
ofi->lineNum = 0;
ofi->readBuf[0] = '\0';
ofi->readPtr = NULL;
ofi->next = NULL;
return ofi;
}
int rpmspecQuery(rpmts ts, QVA_t qva, const char * arg)
{
rpmSpec spec = NULL;