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 b

⟦257e391f6⟧ TextFile

    Length: 2071 (0x817)
    Types: TextFile
    Names: »bk_content.py«

Derivation

└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
    └─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z« 
        └─⟦de7628f85⟧ 
            └─⟦this⟧ »isode-6.0/vt/bk_content.py« 

TextFile

-- VTPM: encode/decode BKQ/BKR PDU

-- $Header: /f/osi/vt/RCS/bk_content.py,v 7.0 89/11/23 22:31:28 mrose Rel $
--
--
-- $Log:	bk_content.py,v $
-- Revision 7.0  89/11/23  22:31:28  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.
--
--


VT  DEFINITIONS ::=
%{

#include "vtpm.h"
#include "sector5.h"
#include  <stdio.h>

#undef PEPYPARM
#define PEPYPARM int *
%}

BEGIN

SECTIONS build unbuild none

----------------------------------------------------------------------------

BKQ-pdu	 ::= CHOICE <<1>>

{
	bkqpdu[8] IMPLICIT BKQcontent [[p (PEPYPARM)parm]]
}

BKR-pdu
::= CHOICE <<1>>
{
	bkrpdu[9] IMPLICIT BKRcontent [[p (PEPYPARM)parm]]
}

ExplicitPointer 
%{
	EXPL_PTR	*arg = (EXPL_PTR *)parm;
%}
	::= SEQUENCE
{
	x [0] IMPLICIT INTEGER 
		[[i arg->xval ]] 
		OPTIONAL <<arg->xval != NULLCOORD>>,
	y [1] IMPLICIT INTEGER 
		[[i arg->yval ]] 
	    OPTIONAL <<arg->yval != NULLCOORD>>,
	z [2] IMPLICIT INTEGER 
		[[i arg->zval ]] 
	    OPTIONAL <<arg->zval != NULLCOORD>>
}

--------------------------------------------------------------------------------

BKQcontent 
%{
	BRcnt	*arg = (BRcnt *)parm;
%}
	::= SEQUENCE 
{
	token INTEGER [[i arg->BKQcont.token_val]]
	{
		initiator(0),
		acceptor (1),
		accChoice(2) 
	}
	OPTIONAL <<arg->BKQcont.token_val != NOBKTOK >>,
	ExplicitPointer [[p (PEPYPARM)&(arg->BKQcont.ExplPtr)]]
}


--------------------------------------------------------------------------------

BKRcontent 
%{
	BRcnt *arg = (BRcnt *)parm;
%}
	::= SEQUENCE 
{
	token INTEGER [[i arg->BKRcont.token_val]]
	{
		initiator(0),
		acceptor (1)
	}
	OPTIONAL <<arg->BKRcont.token_val != NOBKTOK >>,

	ExplicitPointer [[p (PEPYPARM)&(arg->BKRcont.ExplPtr)]]
}


--------------------------------------------------------------------------------
--------------------------------------------------------------------------------

END