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

⟦9e5e9d305⟧ TextFile

    Length: 624 (0x270)
    Types: TextFile
    Names: »attrt_print.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_print.c« 

TextFile

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

extern int oidformat;
AttributeType last_at;

AttrT_print (ps,x,format)
register PS ps;
register AttributeType x;
register int format;
{
char * attr2name_aux();

	if (x == NULLAttrT) {
		ps_print(ps,"Unknown Type");
		return;
	}

	last_at = x;

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

	if (x->at_table == NULLTABLE_ATTR) {
		/* can't decode */
		ps_printf (ps,"%s",oid2name (x->at_oid,oidformat));
		return;
	}

	if (format == READOUT)
		ps_printf (ps,"%s",attr2name (x->at_table,oidformat));
	else
		ps_printf (ps,"%s",attr2name_aux (x->at_table));
}