DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T d

⟦416c383c3⟧ TextFile

    Length: 714 (0x2ca)
    Types: TextFile
    Names: »dn_cpy.c«

Derivation

└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
    └─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z« 
        └─⟦de7628f85⟧ 
            └─⟦this⟧ »isode-6.0/dsap/common/dn_cpy.c« 

TextFile

#include "quipu/util.h"
#include "quipu/name.h"

extern LLog * log_dsap;

DN  dn_comp_cpy (dn)
register DN  dn;
{
register DN ptr;
	if (dn==NULLDN) {
		DLOG (log_dsap,LLOG_DEBUG,("copy of null dn"));
		return (NULLDN);
	}
	ptr = (DN) smalloc (sizeof(dncomp));
	ptr->dn_rdn    = rdn_cpy (dn->dn_rdn);
	ptr->dn_parent = NULLDN;
	return (ptr);
}

DN  dn_cpy (dn)
register DN  dn;
{
DN start;
register DN eptr,ptr,ptr2;

	if (dn == NULLDN) {
		DLOG (log_dsap,LLOG_DEBUG,("dn_cpy of null dn"));
		return (NULLDN);
	}
	start = dn_comp_cpy (dn);
	ptr2 = start;
	for (eptr = dn->dn_parent; eptr != NULLDN; eptr = eptr->dn_parent) {
		ptr = dn_comp_cpy (eptr);
		ptr2->dn_parent = ptr;
		ptr2 = ptr;
	}
	return (start);
}