#include "system.h"
#include "rpmbuild.h"
#include "debug.h"
Go to the source code of this file.
Functions | |
void | addChangelogEntry (Header h, time_t time, const char *name, const char *text) |
Add changelog entry to header. | |
static int | dateToTimet (const char *datestr, time_t *secs) |
Parse date string to seconds. | |
static int | addChangelog (Header h, StringBuf sb) |
Add changelog section to header. | |
int | parseChangelog (Spec spec) |
Parse %changelog section of a spec file. |
Definition in file parseChangelog.c.
Add changelog section to header.
h | header | |
sb | changelog strings |
Definition at line 111 of file parseChangelog.c.
References _, addChangelogEntry(), dateToTimet(), getStringBuf(), next, RPMERR_BADSPEC, rpmError, SKIPNONSPACE, SKIPSPACE, and xisspace().
Referenced by parseChangelog().
static int dateToTimet | ( | const char * | datestr, | |
time_t * | secs | |||
) | [static] |
Parse date string to seconds.
datestr | date string (e.g. 'Wed Jan 1 1997') |
secs | secs since the unix epoch |
Definition at line 38 of file parseChangelog.c.
References alloca(), SKIPNONSPACE, and SKIPSPACE.
Referenced by addChangelog().