<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>parseChangelog.c File Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.2.17 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="globals.html">Globals</a> <a class="qindex" href="pages.html">Related Pages</a> </center> <hr><h1>build/parseChangelog.c File Reference</h1>Parse changelog section from spec file. <a href="#_details">More...</a> <p> <code>#include "<a class="el" href="system_8h-source.html">system.h</a>"</code><br> <code>#include "<a class="el" href="rpmbuild_8h-source.html">rpmbuild.h</a>"</code><br> <code>#include "<a class="el" href="debug_8h-source.html">debug.h</a>"</code><br> <p> <a href="parseChangelog_8c-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td></td></tr> <tr><td colspan=2><br><h2>Functions</h2></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="group__rpmbuild.html#a26">addChangelogEntry</a> (<a class="el" href="group__header.html#a6">Header</a> h, time_t time, const char *<a class="el" href="parseScript_8c.html#a0">name</a>, const char *text)</td></tr> <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="parseChangelog_8c.html#a1">dateToTimet</a> (const char *datestr, time_t *secs)</td></tr> <tr><td> </td><td><font size=-1><em>Parse date string to seconds.</em> <a href="#a1"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="parseChangelog_8c.html#a2">addChangelog</a> (<a class="el" href="group__header.html#a6">Header</a> h, <a class="el" href="stringbuf_8h.html#a2">StringBuf</a> sb)</td></tr> <tr><td> </td><td><font size=-1><em>Add changelog section to header.</em> <a href="#a2"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="group__rpmbuild.html#a28">parseChangelog</a> (<a class="el" href="group__rpmbuild.html#a3">Spec</a> spec)</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Parse changelog section from spec file. <p> <p> <p> Definition in file <a class="el" href="parseChangelog_8c-source.html">parseChangelog.c</a>.<hr><h2>Function Documentation</h2> <a name="a2" doxytag="parseChangelog.c::addChangelog"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int addChangelog </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__header.html#a6">Header</a> </td> <td class="mdname" nowrap> <em>h</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="stringbuf_8h.html#a2">StringBuf</a> </td> <td class="mdname" nowrap> <em>sb</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [static]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Add changelog section to header. <p> <dl compact><dt><b>Parameters: </b></dt><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>h</em> </td><td> header </td></tr> <tr><td valign=top><em>sb</em> </td><td> changelog strings </td></tr> </table> </dl><dl compact><dt><b>Returns :</b></dt><dd> 0 on success </dl> <p> Definition at line <a class="el" href="parseChangelog_8c-source.html#l00108">108</a> of file <a class="el" href="parseChangelog_8c-source.html">parseChangelog.c</a>. <p> References <a class="el" href="system_8h-source.html#l00370">_</a>, <a class="el" href="parseChangelog_8c-source.html#l00011">addChangelogEntry</a>(), <a class="el" href="parseChangelog_8c-source.html#l00037">dateToTimet</a>(), <a class="el" href="stringbuf_8c-source.html#l00078">getStringBuf</a>(), <a class="el" href="rpmerr_8h.html#a91a60">RPMERR_BADSPEC</a>, <a class="el" href="rpmerr_8h-source.html#l00140">rpmError</a>, <a class="el" href="rpmbuild_8h-source.html#l00043">SKIPNONSPACE</a>, <a class="el" href="rpmbuild_8h-source.html#l00042">SKIPSPACE</a>, and <a class="el" href="rpmio_8h-source.html#l00633">xisspace</a>(). <p> Referenced by <a class="el" href="parseChangelog_8c-source.html#l00205">parseChangelog</a>(). </td> </tr> </table> <a name="a1" doxytag="parseChangelog.c::dateToTimet"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int dateToTimet </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const char * </td> <td class="mdname" nowrap> <em>datestr</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>time_t * </td> <td class="mdname" nowrap> <em>secs</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [static]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Parse date string to seconds. <p> <dl compact><dt><b>Parameters: </b></dt><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>datestr</em> </td><td> date string (e.g. 'Wed Jan 1 1997') </td></tr> </table> </dl><dl compact><dt><b>Return values: </b></dt><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>secs</em> </td><td> secs since the unix epoch </td></tr> </table> </dl><dl compact><dt><b>Returns :</b></dt><dd> 0 on success, -1 on error </dl> <p> Definition at line <a class="el" href="parseChangelog_8c-source.html#l00037">37</a> of file <a class="el" href="parseChangelog_8c-source.html">parseChangelog.c</a>. <p> References <a class="el" href="system_8h.html#a36">alloca</a>(), <a class="el" href="rpmbuild_8h-source.html#l00043">SKIPNONSPACE</a>, and <a class="el" href="rpmbuild_8h-source.html#l00042">SKIPSPACE</a>. <p> Referenced by <a class="el" href="parseChangelog_8c-source.html#l00108">addChangelog</a>(). </td> </tr> </table> <hr><address style="align: right;"><small>Generated on Thu Sep 12 22:15:03 2002 for rpm by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.17 </small></address> </body> </html>