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 d

⟦39912fd60⟧ TextFile

    Length: 3117 (0xc2d)
    Types: TextFile
    Names: »dsarg_prn.c«

Derivation

└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape
    └─⟦eba4602b1⟧ »./isode-5.0.tar.Z« 
        └─⟦d3ac74d73⟧ 
            └─⟦this⟧ »isode-5.0/dsap/x500as/dsarg_prn.c« 

TextFile

/* dsarg_prn.c - ds argument printer */

/*
 *				  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 "psap.h"
#include "quipu/util.h"
#include "quipu/common.h"
#include "quipu/dsargument.h"

extern LLog	* log_dsap;

int	  print_OPArgument(dsp, pe, type)
int	  dsp;
PE			pe;
int			type;
{
    int		success;

    if(dsp)
    {
	success = print_DSPArgument(pe, type);
    }
    else
    {
	success = print_DAPArgument(pe, type);
    }
    return(success);
}

int                     print_DAPArgument(pe,type)
PE			pe;
int			type;
{
    int		success;
    switch(type)
    {
    case    OP_READ :
	success = print_DAS_ReadArgument(pe,1,NULLIP,NULLVP,NULLCP);
	break;
    case    OP_COMPARE :
	success = print_DAS_CompareArgument(pe,1,NULLIP,NULLVP,NULLCP);
	break;
    case    OP_ABANDON :
	success = print_DAS_AbandonArgument(pe,1,NULLIP,NULLVP,NULLCP);
	break;
    case    OP_LIST :
	success = print_DAS_ListArgument(pe,1,NULLIP,NULLVP,NULLCP);
	break;
    case    OP_SEARCH :
	success = print_DAS_SearchArgument(pe,1,NULLIP,NULLVP,NULLCP);
	break;
    case    OP_ADDENTRY :
	success = print_DAS_AddEntryArgument(pe,1,NULLIP,NULLVP,NULLCP);
	break;
    case    OP_REMOVEENTRY :
	success = print_DAS_RemoveEntryArgument(pe,1,NULLIP,NULLVP,NULLCP);
	break;
    case    OP_MODIFYENTRY :
	success = print_DAS_ModifyEntryArgument(pe,1,NULLIP,NULLVP,NULLCP);
	break;
    case    OP_MODIFYRDN :
	success = print_DAS_ModifyRDNArgument(pe,1,NULLIP,NULLVP,NULLCP);
	break;
    case    OP_GETEDB :
	success = print_Quipu_GetEntryDataBlockArgument(pe,1,NULLIP,NULLVP,NULLCP);
	break;
    default:
	success = NOTOK;
	LLOG(log_dsap, LLOG_EXCEPTIONS, ("print_DAPArg OP %d unknown!", type));
	break;
    }
    return(success);
}

int                     print_DSPArgument(pe,type)
PE			pe;
int			type;
{
    int		success;
    switch(type)
    {
    case    OP_READ :
	success = print_DO_ChainedReadArgument(pe,1,NULLIP,NULLVP,NULLCP);
	break;
    case    OP_COMPARE :
	success = print_DO_ChainedCompareArgument(pe,1,NULLIP,NULLVP,NULLCP);
	break;
    case    OP_ABANDON :
	success = print_DAS_AbandonArgument(pe,1,NULLIP,NULLVP,NULLCP);
	break;
    case    OP_LIST :
	success = print_DO_ChainedListArgument(pe,1,NULLIP,NULLVP,NULLCP);
	break;
    case    OP_SEARCH :
	success = print_DO_ChainedSearchArgument(pe,1,NULLIP,NULLVP,NULLCP);
	break;
    case    OP_ADDENTRY :
	success = print_DO_ChainedAddEntryArgument(pe,1,NULLIP,NULLVP,NULLCP);
	break;
    case    OP_REMOVEENTRY :
	success = print_DO_ChainedRemoveEntryArgument(pe,1,NULLIP,NULLVP,NULLCP);
	break;
    case    OP_MODIFYENTRY :
	success = print_DO_ChainedModifyEntryArgument(pe,1,NULLIP,NULLVP,NULLCP);
	break;
    case    OP_MODIFYRDN :
	success = print_DO_ChainedModifyRDNArgument(pe,1,NULLIP,NULLVP,NULLCP);
	break;
    default:
	success = NOTOK;
	LLOG(log_dsap, LLOG_EXCEPTIONS, ("print_DSPArg OP %d unknown!", type));
	break;
    }
    return(success);
}