/* Copyright (C) 1994 - 2001 by Telelogic AB.
Copyright (C) 1991, 1992, 1993, 1994 by Telelogic Malmoe AB.
Copyright (C) 1990, 1991, 1999 by Telesoft Europe AB.
This Program is owned by Telelogic and is protected by national
copyright laws and international copyright treaties. Telelogic
grants you the right to use this Program on one computer or in
one local computer network at any one time.
Under this License you may only modify the source code for the purpose
of adapting it to your environment. You must reproduce and include
any copyright and trademark notices on all copies of the source code.
You may not use, copy, merge, modify or transfer the Program except as
provided in this License.
Telelogic does not warrant that the Program will meet your
requirements or that the operation of the Program will be
uninterrupted and error free. You are solely responsible that the
selection of the Program and the modification of the source code
will achieve your intended result and that the results are actually
obtained. */

#ifndef __coderucf_h
#define __coderucf_h

#include "cucf.h"

/* Compile switches backward compatibility */

#if defined(CODER_BER_CONTENTS_OCTETS)
#define CODER_BER_CONSTRUCTED_LENGTH CODER_BER_CONTENTS_OCTETS
#endif



/* BMS backward compatibility */

#define SmlBuf  bms_SmallBuffer
#define SML_BUF bms_SmallBuffer

#define Direct
#define Reverse

#undef BufInitBuf
#define BufInitBuf(b, buftype, dirmode) \
  BaseBufInitBuf(&b, buftype, NULL)

#define BufInDirectMode(b)   1
#define BufInReverseMode(b)  0

/* Error Codes backward compatibility */

/* CUCF_ERROR_BEGIN: this line must not changed */

#define ec_SMLBUF_READ_ERROR                 ec_BUF_NoMoreDataForRead

#define ec_UNKNOWN_TYPE_CLASS                ec_INT_UnsupportedType

#define ec_BER_WRONG_UNUSED_BITS             ec_DEC_WrongUnusedBits
#define ec_BER_WRONG_REAL_VALUE              ec_DEC_WrongRealPrefix
#define ec_BER_UNSUPPORTED_REAL_BASE         ec_DEC_UnsupportedRealBase
#define ec_BER_UNSUPPORTED_REAL_DECIMAL_ENC  ec_DEC_UnsupportedRealDecimalEncoding
#define ec_BER_WRONG_ALTERNATIVE_TAG         ec_DEC_UnknownAlternative
#define ec_BER_WRONG_COMPONENT_TAG           ec_DEC_UnknownComponent
#define ec_BER_OPEN_TABLE_ID_NOT_PRESENT     ec_DEC_NoOpenId
#define ec_BER_WRONG_OPEN_TABLE_ID           ec_DEC_UnknownObject

#define ec_PER_WRONG_REAL_VALUE              ec_DEC_WrongRealPrefix
#define ec_PER_UNSUPPORTED_REAL_BASE         ec_DEC_UnsupportedRealBase
#define ec_PER_UNSUPPORTED_REAL_DECIMAL_ENC  ec_DEC_UnsupportedRealDecimalEncoding
#define ec_PER_WRONG_FRAGMENTATION           ec_DEC_WrongConstructedLengthPrefix
#define ec_PER_OPEN_TABLE_ID_NOT_PRESENT     ec_DEC_NoOpenId
#define ec_PER_WRONG_OPEN_TABLE_ID           ec_DEC_UnknownObject

/* CUCF_ERROR_END: this line must not changed */

#endif /* __coderucf_h */
