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 e

⟦f2cb78693⟧ TextFile

    Length: 592 (0x250)
    Types: TextFile
    Names: »eType.c«

Derivation

└─⟦8648bda34⟧ Bits:30007244 EUUGD5_II: X11R5
    └─⟦b23e377d7⟧ »./contrib-2/contrib-2.00« 
        └─⟦0ed22c3ba⟧ 
            └─⟦this⟧ »contrib/lib/Xpex/clients/Xpex/pexscope/eType.c« 

TextFile

/* $Header: eType.c,v 2.2 91/09/11 15:52:10 sinyaw Exp $ */
#include <stdio.h>
#include <X11/X.h>
#include "PEX.h"
#include "PEXprotost.h"
#include "PEXproto.h"

void
pexpr_edge_type( str, type)
	char *str;
	pexEnumTypeIndex type;
{
#define VALID_EDGE_TYPE(_M) \
(_M >= PEXSurfaceEdgeSolid && _M <= PEXSurfaceEdgeDashDot)

	static char *edge_type[5] = {
		NULL,
		"Solid",
		"Dashed",
		"Dotted",
		"DashDot"
	};

	if( VALID_EDGE_TYPE(type)) {
		(void) fprintf( stderr, "%s: %s\n", str, edge_type[type]);
	} else {
		(void) fprintf( stderr, "%s: Invalid\n", str);
	}
#undef VALID_EDGE_TYPE
}