File:  [CSRG BSD Unix] / 43BSDReno / contrib / isode-beta / dsap / common / avs_print.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:56 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43reno
BSD 4.3reno

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

static AV_Sequence eptr;
#define foreach(a)      for(eptr = a; eptr != NULLAV; eptr = eptr->avseq_next)

avs_comp_print (ps,avs,format)
AV_Sequence  avs;
PS   ps;
int  format;
{
	AttrV_print (ps,&avs->avseq_av,format);
}

avs_print (ps,avs,format)
AV_Sequence  avs;
PS   ps;
int  format;
{
	if (avs == NULLAV) {
		ps_print (ps,"\n");
		return;
	}

	avs_print_aux (ps,avs,format," & ");
	ps_print (ps,"\n");
}

avs_print_aux (ps,avs,format,sep)
AV_Sequence  avs;
PS   ps;
int  format;
char *sep;
{
	if (avs == NULLAV)
		return;

	avs_comp_print (ps,avs,format);
	if (avs->avseq_next != NULLAV)
		foreach (avs->avseq_next) {
			ps_print (ps,sep);
			AttrV_print (ps,&eptr->avseq_av,format);
			}
}


unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.