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 a

⟦032681633⟧ TextFile

    Length: 548 (0x224)
    Types: TextFile
    Names: »attrt_cmp.c«

Derivation

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

TextFile

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

AttrT_cmp (x,y)
register AttributeType x,y;
{
	if ( x == NULLAttrT )
		return (y ? -1 : 0);
	if ( y == NULLAttrT )
		return (1);

	if (x->at_table == NULLTABLE_ATTR)
		(void) AttrT_decode(x);

	if (y->at_table == NULLTABLE_ATTR)
		(void) AttrT_decode(y);

	if ((x->at_table == NULLTABLE_ATTR) || (y->at_table == NULLTABLE_ATTR))
		/* not in tables */
		return (oid_cmp (grab_oid(x),grab_oid(y)));

	if (x->at_table == y->at_table)
		return (0);

	return ((x->at_table > y->at_table) ? 1 : -1);
}