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 g

⟦4df76e85f⟧ TextFile

    Length: 1370 (0x55a)
    Types: TextFile
    Names: »get_ava.c«

Derivation

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

TextFile

/* get_ava.c - */

#ifndef	lint
static char *rcsid = "$Header: /f/osi/quipu/dish/RCS/get_ava.c,v 7.0 89/11/23 22:20:09 mrose Rel $";
#endif

/* 
 * $Header: /f/osi/quipu/dish/RCS/get_ava.c,v 7.0 89/11/23 22:20:09 mrose Rel $
 *
 *
 * $Log:	get_ava.c,v $
 * Revision 7.0  89/11/23  22:20:09  mrose
 * Release 6.0
 * 
 */

/*
 *				  NOTICE
 *
 *    Acquisition, use, and distribution of this module and related
 *    materials are subject to the restrictions of a license agreement.
 *    Consult the Preface in the User's Manual for the full terms of
 *    this agreement.
 *
 */


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

#define	OPT	(!frompipe || rps -> ps_byteno == 0 ? opt : rps)
#define	RPS	(!frompipe || opt -> ps_byteno == 0 ? rps : opt)
extern	char	frompipe;
extern	PS	opt, rps;

get_ava (avasert, type, value)
AVA            *avasert;
char           *type;
char           *value;
{
	char           *TidyString ();

	if (type == NULLCP || *type == 0)
		return (NOTOK);

	avasert->ava_type = AttrT_new (TidyString (type));
	if (avasert->ava_type == NULLAttrT) {
		ps_printf (OPT, "Invalid at %s\n", type);
		return (NOTOK);
	}

	if ((avasert->ava_value = str_at2AttrV (TidyString (value), avasert->ava_type)) == NULLAttrV) {
		ps_print (OPT, "Invalid attribute value value\n");
		AttrT_free (avasert->ava_type);
		return (NOTOK);
	}

	return (OK);
}