lib/stringbuf.h File Reference

Go to the source code of this file.

Defines

#define appendStringBuf(sb, s)   appendStringBufAux(sb, s, 0)
#define appendLineStringBuf(sb, s)   appendStringBufAux(sb, s, 1)

Typedefs

typedef StringBufRecStringBuf

Functions

StringBuf newStringBuf (void)
StringBuf freeStringBuf (StringBuf sb)
void truncStringBuf (StringBuf sb)
char * getStringBuf (StringBuf sb)
void stripTrailingBlanksStringBuf (StringBuf sb)
void appendStringBufAux (StringBuf sb, const char *s, int nl)


Detailed Description

Definition in file stringbuf.h.


Define Documentation

#define appendLineStringBuf ( sb,
 )     appendStringBufAux(sb, s, 1)

Definition at line 48 of file stringbuf.h.

Referenced by addFileToTag(), doPatchMacro(), doSetupMacro(), parseDescription(), parsePrep(), processSourceFiles(), rpmfcGenerateDependsHelper(), and rpmfcHelper().

#define appendStringBuf ( sb,
 )     appendStringBufAux(sb, s, 0)

Definition at line 44 of file stringbuf.h.

Referenced by addFile(), addFileToTagAux(), doSetupMacro(), getOutputFrom(), parseBuildInstallClean(), parseChangelog(), parseFiles(), parsePrep(), parseScript(), processPackageFiles(), and rpmReadPackageManifest().


Typedef Documentation

typedef struct StringBufRec* StringBuf

Definition at line 10 of file stringbuf.h.


Function Documentation

void appendStringBufAux ( StringBuf  sb,
const char *  s,
int  nl 
)

Definition at line 88 of file stringbuf.c.

References StringBufRec::allocated, StringBufRec::buf, BUF_CHUNK, StringBufRec::free, StringBufRec::tail, and xrealloc().

StringBuf freeStringBuf ( StringBuf  sb  ) 

Definition at line 52 of file stringbuf.c.

References _free(), and StringBufRec::buf.

Referenced by addFileToArrayTag(), addFileToTag(), addFileToTagAux(), checkFiles(), doSetupMacro(), freePackage(), freeSpec(), parseChangelog(), parseDescription(), parsePrep(), parseScript(), processBinaryFiles(), processSourceFiles(), rpmfcExec(), rpmfcFree(), rpmfcGenerateDependsHelper(), rpmfcHelper(), and rpmReadPackageManifest().

char* getStringBuf ( StringBuf  sb  ) 

Definition at line 83 of file stringbuf.c.

References StringBufRec::buf.

Referenced by addChangelog(), addFileToArrayTag(), addFileToTag(), checkFiles(), doScript(), doSetupMacro(), parseDescription(), parsePrep(), parseScript(), processPackageFiles(), processSourceFiles(), rpmfcExec(), rpmfcGenerateDependsHelper(), rpmfcHelper(), and rpmReadPackageManifest().

StringBuf newStringBuf ( void   ) 

Definition at line 40 of file stringbuf.c.

References BUF_CHUNK, xcalloc(), and xmalloc().

Referenced by addFileToArrayTag(), addFileToTag(), doSetupMacro(), getOutputFrom(), parseBuildInstallClean(), parseChangelog(), parseDescription(), parseFiles(), parsePrep(), parseScript(), processBinaryFiles(), processSourceFiles(), rpmfcGenerateDependsHelper(), rpmfcHelper(), and rpmReadPackageManifest().

void stripTrailingBlanksStringBuf ( StringBuf  sb  ) 

Definition at line 70 of file stringbuf.c.

References StringBufRec::allocated, StringBufRec::free, StringBufRec::tail, and xisspace().

Referenced by parseDescription(), and parseScript().

void truncStringBuf ( StringBuf  sb  ) 

Definition at line 61 of file stringbuf.c.

References StringBufRec::allocated, StringBufRec::buf, StringBufRec::free, and StringBufRec::tail.


Generated on Fri Oct 12 08:44:55 2007 for rpm by  doxygen 1.5.2