// for rels (returns name only) and strings
//
const char *
-id2str(Pool *pool, Id id)
+id2str(const Pool *pool, Id id)
{
if (ISRELDEP(id))
{
// get operator for RelId
const char *
-id2rel(Pool *pool, Id id)
+id2rel(const Pool *pool, Id id)
{
Reldep *rd;
if (!ISRELDEP(id))
// get e:v.r for Id
//
const char *
-id2evr(Pool *pool, Id id)
+id2evr(const Pool *pool, Id id)
{
Reldep *rd;
if (!ISRELDEP(id))
}
static int
-dep2strlen(Pool *pool, Id id)
+dep2strlen(const Pool *pool, Id id)
{
int l = 0;
}
static void
-dep2strcpy(Pool *pool, char *p, Id id, int oldrel)
+dep2strcpy(const Pool *pool, char *p, Id id, int oldrel)
{
while (ISRELDEP(id))
{
extern Id str2id(Pool *pool, const char *, int);
extern Id strn2id(Pool *pool, const char *, unsigned int, int);
extern Id rel2id(Pool *pool, Id, Id, int, int);
-extern const char *id2str(Pool *pool, Id);
-extern const char *dep2str(Pool *pool, Id);
-extern const char *id2rel(Pool *pool, Id);
-extern const char *id2evr(Pool *pool, Id);
+extern const char *id2str(const Pool *pool, Id);
+extern const char *dep2str(Pool *pool, Id); /* might alloc tmpspace */
+extern const char *id2rel(const Pool *pool, Id);
+extern const char *id2evr(const Pool *pool, Id);
extern void pool_shrink_strings(Pool *pool);
extern void pool_shrink_rels(Pool *pool);