build/spec.c File Reference

Handle spec data structure. More...

#include "system.h"
#include "buildio.h"
#include "debug.h"

Go to the source code of this file.

Defines

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

Functions

static struct TriggerFileEntryfreeTriggerFiles (struct TriggerFileEntry *p)
static struct SourcefreeSources (struct Source *s)
 Destroy source component chain.
int lookupPackage (Spec spec, const char *name, int flag, Package *pkg)
 Find sub-package control structure by name.
Package newPackage (Spec spec)
 Create and initialize package control structure.
Package freePackage (Package pkg)
 Destroy package control structure.
Package freePackages (Package packages)
 Destroy all packages associated with spec file.
static struct SourcefindSource (Spec spec, int num, int flag)
int parseNoSource (Spec spec, const char *field, int tag)
int addSource (Spec spec, Package pkg, const char *field, int tag)
static speclines newSl (void)
static speclines freeSl (speclines sl)
static spectags newSt (void)
static spectags freeSt (spectags st)
Spec newSpec (void)
 Create and initialize Spec structure.
Spec freeSpec (Spec spec)
 Destroy Spec structure.
struct OpenFileInfonewOpenFileInfo (void)

Variables

int specedit


Detailed Description

Handle spec data structure.

Definition in file spec.c.


Define Documentation

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

Definition at line 16 of file spec.c.

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

Definition at line 15 of file spec.c.


Function Documentation

static struct Source* findSource ( Spec  spec,
int  num,
int  flag 
) [static, read]

Definition at line 190 of file spec.c.

static speclines freeSl ( speclines  sl  )  [inline, static]

Definition at line 359 of file spec.c.

static struct Source* freeSources ( struct Source s  )  [static, read]

Destroy source component chain.

Parameters:
source component chain
Returns:
NULL always

Definition at line 46 of file spec.c.

static spectags freeSt ( spectags  st  )  [inline, static]

Definition at line 391 of file spec.c.

static struct TriggerFileEntry* freeTriggerFiles ( struct TriggerFileEntry p  )  [static, read]

Returns:
NULL always

Definition at line 24 of file spec.c.

static speclines newSl ( void   )  [inline, static]

Definition at line 342 of file spec.c.

static spectags newSt ( void   )  [inline, static]

Definition at line 374 of file spec.c.


Variable Documentation

int specedit

Definition at line 17 of file poptQV.c.


Generated on Mon Sep 28 03:22:12 2009 for rpm by  doxygen 1.5.9