Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

parseSpec.c File Reference

Top level dispatcher for spec file parsing. More...

#include "system.h"
#include <rpmio_internal.h>
#include <rpmbuild.h>
#include "rpmds.h"
#include "rpmts.h"
#include "debug.h"

Go to the source code of this file.

Data Structures

struct  PartRec

Functions

void initParts (struct PartRec *p)
rpmParseState isPart (const char *line)
int matchTok (const char *token, const char *line)
void handleComments (char *s)
void forceIncludeFile (Spec spec, const char *fileName)
int copyNextLine (Spec spec, OFI_t *ofi, int strip)
int readLine (Spec spec, int strip)
void closeSpec (Spec spec)
int parseSpec (rpmts ts, const char *specFile, const char *rootURL, const char *buildRootURL, int recursing, const char *passPhrase, char *cookie, int anyarch, int force)

Variables

PartRec partList []
int noLang


Detailed Description

Top level dispatcher for spec file parsing.

Definition in file parseSpec.c.


Function Documentation

int copyNextLine Spec  spec,
OFI_t ofi,
int  strip
[static]
 

Definition at line 129 of file parseSpec.c.

References _, expandMacros(), handleComments(), Spec_s::lbuf, Spec_s::line, Spec_s::lineNum, Spec_s::macros, Spec_s::nextline, Spec_s::nextpeekc, OFI_t, ReadLevelEntry::reading, OpenFileInfo::readPtr, Spec_s::readStack, RPMERR_BADSPEC, rpmError, Spec, and xisspace().

Referenced by readLine().

void forceIncludeFile Spec  spec,
const char *  fileName
[static]
 

Definition at line 115 of file parseSpec.c.

References OpenFileInfo::fileName, Spec_s::fileStack, newOpenFileInfo(), OpenFileInfo::next, OFI_t, Spec, and xstrdup().

Referenced by readLine().

void initParts struct PartRec p  )  [inline, static]
 

Definition at line 48 of file parseSpec.c.

References PartRec::len, and PartRec::token.

Referenced by isPart().

int matchTok const char *  token,
const char *  line
[static]
 

Definition at line 80 of file parseSpec.c.

References SKIPNONSPACE, SKIPSPACE, and xstrncasecmp().

Referenced by readLine().


Variable Documentation

int noLang
 

Definition at line 53 of file poptBT.c.

struct PartRec partList[] [static]
 

Referenced by isPart().


Generated on Fri May 4 02:11:54 2007 for rpm by  doxygen 1.3.9.1