rpm  5.4.10
Macros | Functions
parseReqs.c File Reference

Parse dependency tag from spec file or from auto-dependency generator. More...

#include "system.h"
#include <rpmio.h>
#include <rpmiotypes.h>
#include <rpmlog.h>
#include "rpmbuild.h"
#include "debug.h"
Include dependency graph for parseReqs.c:

Go to the source code of this file.

Macros

#define _RPMEVR_INTERNAL
 
#define SKIPWHITE(_x)   {while(*(_x) && (xisspace(*_x) || *(_x) == ',')) (_x)++;}
 
#define SKIPNONWHITE(_x)   {while(*(_x) &&!(xisspace(*_x) || *(_x) == ',')) (_x)++;}
 

Functions

rpmRC parseRCPOT (Spec spec, Package pkg, const char *field, rpmTag tagN, rpmuint32_t index, rpmsenseFlags tagflags)
 Parse dependency relations from spec file and/or autogenerated output buffer. More...
 

Detailed Description

Parse dependency tag from spec file or from auto-dependency generator.

Definition in file parseReqs.c.

Macro Definition Documentation

§ _RPMEVR_INTERNAL

#define _RPMEVR_INTERNAL

Definition at line 11 of file parseReqs.c.

§ SKIPNONWHITE

#define SKIPNONWHITE (   _x)    {while(*(_x) &&!(xisspace(*_x) || *(_x) == ',')) (_x)++;}

Definition at line 18 of file parseReqs.c.

Referenced by parseRCPOT().

§ SKIPWHITE

#define SKIPWHITE (   _x)    {while(*(_x) && (xisspace(*_x) || *(_x) == ',')) (_x)++;}

Definition at line 17 of file parseReqs.c.

Referenced by parseRCPOT().

Function Documentation

§ parseRCPOT()

rpmRC parseRCPOT ( Spec  spec,
Package  pkg,
const char *  field,
rpmTag  tagN,
rpmuint32_t  index,
rpmsenseFlags  tagflags 
)

Parse dependency relations from spec file and/or autogenerated output buffer.

Parameters
specspec file control structure
pkgpackage control structure
fieldtext to parse (e.g. "foo < 0:1.2-3, bar = 5:6.7")
tagNtag, identifies type of dependency
index(0 always)
tagflagsdependency flags already known from context
Returns
RPMRC_OK on success

Definition at line 20 of file parseReqs.c.

References _, _free(), addReqProv(), alloca(), Package_s::header, Spec_s::line, Spec_s::lineNum, rpmEVRflags(), rpmEVRparse(), rpmlog(), RPMLOG_ERR, RPMRC_FAIL, RPMRC_OK, RPMSENSE_SENSEMASK, RPMTAG_BUILDCONFLICTS, RPMTAG_BUILDENHANCES, RPMTAG_BUILDOBSOLETES, RPMTAG_BUILDPREREQ, RPMTAG_BUILDPROVIDES, RPMTAG_BUILDREQUIRES, RPMTAG_BUILDSUGGESTS, RPMTAG_CONFLICTFLAGS, RPMTAG_OBSOLETEFLAGS, RPMTAG_PREREQ, RPMTAG_PROVIDEFLAGS, RPMTAG_REQUIREFLAGS, RPMTAG_TRIGGERIN, RPMTAG_TRIGGERPOSTTRANSIN, RPMTAG_TRIGGERPOSTTRANSUN, RPMTAG_TRIGGERPOSTUN, RPMTAG_TRIGGERPREIN, RPMTAG_TRIGGERPRETRANSIN, RPMTAG_TRIGGERPRETRANSUN, RPMTAG_TRIGGERUN, SKIPNONWHITE, SKIPWHITE, Spec_s::sourceHeader, xisalnum(), and xmalloc.

Referenced by handlePreambleTag(), newSpec(), and parseScript().