Eliminate newOpenFileInfo() from librpmbuild API
- Nothing outside parseSpec.c needs, bury it there and make static
This commit is contained in:
parent
5ed685425e
commit
1719b2f341
|
@ -96,6 +96,21 @@ void handleComments(char *s)
|
||||||
*s = '\0';
|
*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)
|
static void forceIncludeFile(rpmSpec spec, const char * fileName)
|
||||||
|
|
|
@ -197,10 +197,6 @@ rpmSpec freeSpec(rpmSpec spec);
|
||||||
*/
|
*/
|
||||||
int rpmspecQuery(rpmts ts, QVA_t qva, const char * arg);
|
int rpmspecQuery(rpmts ts, QVA_t qva, const char * arg);
|
||||||
|
|
||||||
/** \ingroup rpmbuild
|
|
||||||
*/
|
|
||||||
struct OpenFileInfo * newOpenFileInfo(void);
|
|
||||||
|
|
||||||
/** \ingroup rpmbuild
|
/** \ingroup rpmbuild
|
||||||
* stashSt.
|
* stashSt.
|
||||||
* @param spec spec file control structure
|
* @param spec spec file control structure
|
||||||
|
|
15
build/spec.c
15
build/spec.c
|
@ -342,21 +342,6 @@ rpmSpec freeSpec(rpmSpec spec)
|
||||||
return 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)
|
int rpmspecQuery(rpmts ts, QVA_t qva, const char * arg)
|
||||||
{
|
{
|
||||||
rpmSpec spec = NULL;
|
rpmSpec spec = NULL;
|
||||||
|
|
Loading…
Reference in New Issue