extern "C" {
#endif
-/**
- * Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
- * @param p memory to free
- * @return NULL always
- */
-static inline
-void * _free(const void * p)
-{
- if (p != NULL) free((void *)p);
- return NULL;
-}
-
/** \ingroup rpmtrans
* The RPM Transaction Set.
* Transaction sets are inherently unordered! RPM may reorder transaction
return (c == ' ' || c == '\t' || c == '\n' || c == '\r' || c == '\f' || c == '\v');
}
-/**
- * Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
- * @param p memory to free
- * @return NULL always
- */
-static inline void *
-_free(const void * p)
-{
- if (p != NULL) free((void *)p);
- return NULL;
-}
-
StringBuf newStringBuf(void)
{
StringBuf sb = xmalloc(sizeof(*sb));
HV_t hdrVec; /* forward reference */
-/**
- * Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
- * @param p memory to free
- * @return NULL always
- */
-static inline void *
-_free(const void * p)
-{
- if (p != NULL) free((void *)p);
- return NULL;
-}
-
/** \ingroup header
* Reference a header instance.
* @param h header
#include "debug.h"
-/**
- * Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
- * @param p memory to free
- * @return NULL always
- */
-static inline
-void * _free(const void * p)
-{
- if (p != NULL) free((void *)p);
- return NULL;
-}
-
void argvPrint(const char * msg, ARGV_t argv, FILE * fp)
{
ARGV_t av;
/* forward ref */
static int expandMacro(MacroBuf mb);
-/**
- * Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
- * @param p memory to free
- * @retval NULL always
- */
-static inline void *
-_free(const void * p)
-{
- if (p != NULL) free((void *)p);
- return NULL;
-}
-
/* =============================================================== */
/**
*/
int _rpmio_debug = 0;
-/**
- * Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
- * @param p memory to free
- * @retval NULL always
- */
-static inline void *
-_free(const void * p)
-{
- if (p != NULL) free((void *)p);
- return NULL;
-}
-
/* =============================================================== */
static const char * fdbg(FD_t fd)
static int nrecs = 0;
static rpmlogRec recs = NULL;
-/**
- * Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
- * @param p memory to free
- * @retval NULL always
- */
-static inline void *
-_free(const void * p)
-{
- if (p != NULL) free((void *)p);
- return NULL;
-}
-
int rpmlogGetNrecs(void)
{
return nrecs;
{ -1, "Unknown armor key" }
};
-/**
- * Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
- * @param p memory to free
- * @return NULL always
- */
-static inline void *
-_free(const void * p)
-{
- if (p != NULL) free((void *)p);
- return NULL;
-}
-
static void pgpPrtNL(void)
{
if (!_print) return;
#include "ugid.h"
#include "debug.h"
-
-/**
- * Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
- * @param p memory to free
- * @retval NULL always
- */
-static inline void *
-_free(const void * p)
-{
- if (p != NULL) free((void *)p);
- return NULL;
-}
-
/* =============================================================== */
int Mkdir (const char * path, mode_t mode)
{
#define URLDBG(_f, _m, _x) if ((_url_debug | (_f)) & (_m)) fprintf _x
-/**
- * Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
- * @param p memory to free
- * @retval NULL always
- */
-static inline void *
-_free(const void * p)
-{
- if (p != NULL) free((void *)p);
- return NULL;
-}
-
urlinfo urlNew()
{
urlinfo u;
#define rpm_execcon(_v, _fn, _av, _envp) (0)
#endif
+/**
+ * Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
+ * @param p memory to free
+ * @return NULL always
+ */
+static inline
+void * _free(const void * p)
+{
+ if (p != NULL) free((void *)p);
+ return NULL;
+}
+
+
/* FIX: these are macros */
/**
*/