*
*/
-#ifndef BITMAP_H
-#define BITMAP_H
+#ifndef SATSOLVER_BITMAP_H
+#define SATSOLVER_BITMAP_H
typedef struct _Map {
unsigned char *map;
extern void map_free(Map *m);
extern void map_clone(Map *t, Map *s);
-#endif /* BITMAP_H */
+#endif /* SATSOLVER_BITMAP_H */
*
*/
-#ifndef EVR_H
-#define EVR_H
+#ifndef SATSOLVER_EVR_H
+#define SATSOLVER_EVR_H
#ifdef __cplusplus
extern "C" {
}
#endif
-#endif /* EVR_H */
+#endif /* SATSOLVER_EVR_H */
* generic hash functions
*/
-#ifndef HASH_H
-#define HASH_H
+#ifndef SATSOLVER_HASH_H
+#define SATSOLVER_HASH_H
#include "pooltypes.h"
return num * 2 - 1;
}
-#endif /* HASH_H */
+#endif /* SATSOLVER_HASH_H */
*
*/
-#ifndef POOL_H
-#define POOL_H
+#ifndef SATSOLVER_POOL_H
+#define SATSOLVER_POOL_H
#ifdef __cplusplus
extern "C" {
}
#endif
-#endif /* POOL_H */
+#endif /* SATSOLVER_POOL_H */
* for further information
*/
-#ifndef POOLARCH_H
-#define POOLARCH_H
+#ifndef SATSOLVER_POOLARCH_H
+#define SATSOLVER_POOLARCH_H
#include "pool.h"
extern void pool_setarch(Pool *, const char *);
-#endif /* POOLARCH_H */
+#endif /* SATSOLVER_POOLARCH_H */
*
*/
-#ifndef POOLID_H
-#define POOLID_H
+#ifndef SATSOLVER_POOLID_H
+#define SATSOLVER_POOLID_H
#include "pooltypes.h"
#include "hash.h"
extern void pool_shrink_rels(Pool *pool);
extern void pool_freeidhashes(Pool *pool);
-#endif /* POOLID_H */
+#endif /* SATSOLVER_POOLID_H */
*
*/
-#ifndef POOLID_PRIVATE_H
-#define POOLID_PRIVATE_H
+#ifndef SATSOLVER_POOLID_PRIVATE_H
+#define SATSOLVER_POOLID_PRIVATE_H
// the size of all buffers is incremented in blocks
// these are the block values (increment values) for the
//
#define REL_BLOCK 1023 // hashtable for relations
-#endif /* POOLID_PRIVATE_H */
+#endif /* SATSOLVER_POOLID_PRIVATE_H */
*
*/
-#ifndef POOLTYPES_H
-#define POOLTYPES_H
+#ifndef SATSOLVER_POOLTYPES_H
+#define SATSOLVER_POOLTYPES_H
/* version number for .solv files */
#define SOLV_VERSION 0
// offset value, e.g. used to 'point' into the stringspace
typedef unsigned int Offset;
-#endif /* POOLTYPES_H */
+#endif /* SATSOLVER_POOLTYPES_H */
* for further information
*/
-#ifndef POOLVENDOR_H
-#define POOLVENDOR_H
+#ifndef SATSOLVER_POOLVENDOR_H
+#define SATSOLVER_POOLVENDOR_H
#include "pool.h"
Id pool_vendor2mask(Pool *pool, Id vendor);
-#endif /* POOLVENDOR_H */
+#endif /* SATSOLVER_POOLVENDOR_H */
*
*/
-#ifndef QUEUE_H
-#define QUEUE_H
+#ifndef SATSOLVER_QUEUE_H
+#define SATSOLVER_QUEUE_H
#include "pooltypes.h"
extern void queue_init_buffer(Queue *q, Id *buf, int size);
extern void queue_free(Queue *q);
-#endif /* QUEUE_H */
+#endif /* SATSOLVER_QUEUE_H */
*
*/
-#ifndef REPO_H
-#define REPO_H
+#ifndef SATSOLVER_REPO_H
+#define SATSOLVER_REPO_H
#include "pooltypes.h"
#include "pool.h"
for (p = (r)->start, s = (r)->pool->solvables + p; p < (r)->end; p++, s++) \
if (s->repo == (r))
-#endif /* REPO_H */
+#endif /* SATSOLVER_REPO_H */
*
*/
-#ifndef REPO_SOLVE_H
-#define REPO_SOLVE_H
+#ifndef SATSOLVER_REPO_SOLVE_H
+#define SATSOLVER_REPO_SOLVE_H
#ifdef __cplusplus
extern "C" {
}
#endif
-#endif /* REPO_SOLVE_H */
+#endif /* SATSOLVER_REPO_SOLVE_H */
* A solvable represents an object with name-epoch:version-release.arch and dependencies
*/
-#ifndef SOLVABLE_H
-#define SOLVABLE_H
+#ifndef SATSOLVER_SOLVABLE_H
+#define SATSOLVER_SOLVABLE_H
#include "pooltypes.h"
Offset freshens;
} Solvable;
-#endif /* SOLVABLE_H */
+#endif /* SATSOLVER_SOLVABLE_H */
*
*/
-#ifndef SOLVER_H
-#define SOLVER_H
+#ifndef SATSOLVER_SOLVER_H
+#define SATSOLVER_SOLVER_H
#include "pooltypes.h"
#include "pool.h"
return 0;
}
-#endif /* SOLVER_H */
+#endif /* SATSOLVER_SOLVER_H */
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
-#ifndef STRINGPOOL_H
-#define STRINGPOOL_H
+#ifndef SATSOLVER_STRINGPOOL_H
+#define SATSOLVER_STRINGPOOL_H
#include "pooltypes.h"
#include "hash.h"
*
*/
-#ifndef UTIL_H
-#define UTIL_H
+#ifndef SATSOLVER_UTIL_H
+#define SATSOLVER_UTIL_H
extern void *xmalloc(size_t);
extern void *xmalloc2(size_t, size_t);
extern void *xrealloc2(void *, size_t, size_t);
extern void *xfree(void *);
-#endif /* UTIL_H */
+#endif /* SATSOLVER_UTIL_H */