Commit 97848270 authored by Botond Baranyi's avatar Botond Baranyi
Browse files

Changed enum type before '...' to int


Signed-off-by: Botond Baranyi's avatarBotond Baranyi <botond.baranyi@ericsson.com>
Change-Id: I27a6ea168b54f4d472f84f4cddb087331dd09d05
parent 0d814351
......@@ -347,7 +347,7 @@ void FLOAT::decode_text(Text_Buf& text_buf)
}
void FLOAT::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
TTCN_EncDec::coding_t p_coding, ...) const
int p_coding, ...) const
{
va_list pvar;
va_start(pvar, p_coding);
......@@ -400,10 +400,10 @@ void FLOAT::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
}
void FLOAT::decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
TTCN_EncDec::coding_t p_coding, ...)
int p_coding, ...)
{
va_list pvar;
va_start(pvar, (int)p_coding);
va_start(pvar, p_coding);
switch(p_coding) {
case TTCN_EncDec::CT_BER: {
TTCN_EncDec_ErrorContext ec("While BER-decoding type '%s': ", p_td.name);
......
......@@ -128,10 +128,10 @@ public:
void decode_text(Text_Buf& text_buf);
void encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
TTCN_EncDec::coding_t p_coding, ...) const;
int p_coding, ...) const;
void decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
TTCN_EncDec::coding_t p_coding, ...);
int p_coding, ...);
ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td,
unsigned p_coding) const;
......
......@@ -664,7 +664,7 @@ Module_Param* HEXSTRING::get_param(Module_Param_Name& /* param_name */) const
#endif
void HEXSTRING::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
TTCN_EncDec::coding_t p_coding, ...) const
int p_coding, ...) const
{
va_list pvar;
va_start(pvar, p_coding);
......@@ -701,10 +701,10 @@ void HEXSTRING::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
}
void HEXSTRING::decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
TTCN_EncDec::coding_t p_coding, ...)
int p_coding, ...)
{
va_list pvar;
va_start(pvar, (int)p_coding);
va_start(pvar, p_coding);
switch (p_coding) {
case TTCN_EncDec::CT_RAW: {
TTCN_EncDec_ErrorContext ec("While RAW-decoding type '%s': ", p_td.name);
......
......@@ -135,10 +135,10 @@ public:
void encode_text(Text_Buf& text_buf) const;
void decode_text(Text_Buf& text_buf);
void encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
TTCN_EncDec::coding_t p_coding, ...) const;
int p_coding, ...) const;
void decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
TTCN_EncDec::coding_t p_coding, ...);
int p_coding, ...);
/** Encodes the value of the variable according to the
* TTCN_Typedescriptor_t. It must be public because called by
* another types during encoding. Returns the length of encoded data*/
......
......@@ -754,7 +754,7 @@ void INTEGER::decode_text(Text_Buf& text_buf)
}
void INTEGER::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
TTCN_EncDec::coding_t p_coding, ...) const
int p_coding, ...) const
{
va_list pvar;
va_start(pvar, p_coding);
......@@ -814,10 +814,10 @@ void INTEGER::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
}
void INTEGER::decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
TTCN_EncDec::coding_t p_coding, ...)
int p_coding, ...)
{
va_list pvar;
va_start(pvar, (int)p_coding);
va_start(pvar, p_coding);
switch(p_coding) {
case TTCN_EncDec::CT_BER: {
TTCN_EncDec_ErrorContext ec("While BER-decoding type '%s': ", p_td.name);
......
......@@ -153,10 +153,10 @@ public:
void decode_text(Text_Buf& text_buf);
void encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
TTCN_EncDec::coding_t p_coding, ...) const;
int p_coding, ...) const;
void decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
TTCN_EncDec::coding_t p_coding, ...);
int p_coding, ...);
ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td,
unsigned p_coding) const;
......
......@@ -278,7 +278,7 @@ void OBJID::decode_text(Text_Buf& text_buf)
}
void OBJID::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
TTCN_EncDec::coding_t p_coding, ...) const
int p_coding, ...) const
{
va_list pvar;
va_start(pvar, p_coding);
......@@ -324,10 +324,10 @@ void OBJID::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
}
void OBJID::decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
TTCN_EncDec::coding_t p_coding, ...)
int p_coding, ...)
{
va_list pvar;
va_start(pvar, (int)p_coding);
va_start(pvar, p_coding);
switch(p_coding) {
case TTCN_EncDec::CT_BER: {
TTCN_EncDec_ErrorContext ec("While BER-decoding type '%s': ", p_td.name);
......
......@@ -93,10 +93,10 @@ public:
void decode_text(Text_Buf& text_buf);
void encode(const TTCN_Typedescriptor_t&, TTCN_Buffer&,
TTCN_EncDec::coding_t, ...) const;
int, ...) const;
void decode(const TTCN_Typedescriptor_t&, TTCN_Buffer&,
TTCN_EncDec::coding_t, ...);
int, ...);
ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td,
unsigned p_coding) const;
......
......@@ -598,7 +598,7 @@ void OCTETSTRING::decode_text(Text_Buf& text_buf)
void OCTETSTRING::encode(const TTCN_Typedescriptor_t& p_td,
TTCN_Buffer& p_buf,
TTCN_EncDec::coding_t p_coding, ...) const
int p_coding, ...) const
{
va_list pvar;
va_start(pvar, p_coding);
......@@ -659,10 +659,10 @@ void OCTETSTRING::encode(const TTCN_Typedescriptor_t& p_td,
void OCTETSTRING::decode(const TTCN_Typedescriptor_t& p_td,
TTCN_Buffer& p_buf,
TTCN_EncDec::coding_t p_coding, ...)
int p_coding, ...)
{
va_list pvar;
va_start(pvar, (int)p_coding);
va_start(pvar, p_coding);
switch(p_coding) {
case TTCN_EncDec::CT_BER: {
TTCN_EncDec_ErrorContext ec("While BER-decoding type '%s': ", p_td.name);
......
......@@ -145,10 +145,10 @@ public:
public:
void encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
TTCN_EncDec::coding_t p_coding, ...) const;
int p_coding, ...) const;
void decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
TTCN_EncDec::coding_t p_coding, ...);
int p_coding, ...);
ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td,
unsigned p_coding) const;
......
......@@ -1096,7 +1096,7 @@ void UNIVERSAL_CHARSTRING::decode_text(Text_Buf& text_buf)
}
void UNIVERSAL_CHARSTRING::encode(const TTCN_Typedescriptor_t& p_td,
TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...) const
TTCN_Buffer& p_buf, int p_coding, ...) const
{
va_list pvar;
va_start(pvar, p_coding);
......@@ -1165,10 +1165,10 @@ void UNIVERSAL_CHARSTRING::encode(const TTCN_Typedescriptor_t& p_td,
}
void UNIVERSAL_CHARSTRING::decode(const TTCN_Typedescriptor_t& p_td,
TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...)
TTCN_Buffer& p_buf, int p_coding, ...)
{
va_list pvar;
va_start(pvar, (int)p_coding);
va_start(pvar, p_coding);
switch(p_coding) {
case TTCN_EncDec::CT_BER: {
TTCN_EncDec_ErrorContext ec("While BER-decoding type '%s': ", p_td.name);
......
......@@ -339,9 +339,9 @@ public:
void decode_text(Text_Buf& text_buf);
void encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
TTCN_EncDec::coding_t p_coding, ...) const;
int p_coding, ...) const;
void decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
TTCN_EncDec::coding_t p_coding, ...);
int p_coding, ...);
ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td,
unsigned p_coding) const;
......
......@@ -149,7 +149,7 @@ void VERDICTTYPE::decode_text(Text_Buf& text_buf)
}
void VERDICTTYPE::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
TTCN_EncDec::coding_t p_coding, ...) const
int p_coding, ...) const
{
va_list pvar;
va_start(pvar, p_coding);
......@@ -205,10 +205,10 @@ void VERDICTTYPE::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
}
void VERDICTTYPE::decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
TTCN_EncDec::coding_t p_coding, ...)
int p_coding, ...)
{
va_list pvar;
va_start(pvar, (int)p_coding);
va_start(pvar, p_coding);
switch(p_coding) {
#if 0
case TTCN_EncDec::CT_RAW: {
......
......@@ -92,10 +92,10 @@ public:
void decode_text(Text_Buf& text_buf);
void encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
TTCN_EncDec::coding_t p_coding, ...) const;
int p_coding, ...) const;
void decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
TTCN_EncDec::coding_t p_coding, ...);
int p_coding, ...);
int XER_encode(const XERdescriptor_t& p_td, TTCN_Buffer& p_buf,
unsigned int flavor, unsigned int flavor2, int indent, embed_values_enc_struct_t*) const;
......
......@@ -1818,7 +1818,7 @@ void Record_Of_Type::OER_decode_opentypes(TTCN_Type_list& p_typelist, TTCN_Buffe
}
void Record_Of_Type::encode(const TTCN_Typedescriptor_t& p_td,
TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...) const
TTCN_Buffer& p_buf, int p_coding, ...) const
{
va_list pvar;
va_start(pvar, p_coding);
......@@ -1875,7 +1875,7 @@ void Record_Of_Type::encode(const TTCN_Typedescriptor_t& p_td,
}
void Record_Of_Type::decode(const TTCN_Typedescriptor_t& p_td,
TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...)
TTCN_Buffer& p_buf, int p_coding, ...)
{
va_list pvar;
va_start(pvar, p_coding);
......@@ -3014,7 +3014,7 @@ void Record_Type::set_value(const Base_Type* other_value)
}
void Record_Type::encode(const TTCN_Typedescriptor_t& p_td,
TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...) const
TTCN_Buffer& p_buf, int p_coding, ...) const
{
va_list pvar;
va_start(pvar, p_coding);
......@@ -3071,7 +3071,7 @@ void Record_Type::encode(const TTCN_Typedescriptor_t& p_td,
}
void Record_Type::decode(const TTCN_Typedescriptor_t& p_td,
TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...)
TTCN_Buffer& p_buf, int p_coding, ...)
{
va_list pvar;
va_start(pvar, p_coding);
......@@ -7276,7 +7276,7 @@ void Empty_Record_Type::set_value(const Base_Type* other_value)
}
void Empty_Record_Type::encode(const TTCN_Typedescriptor_t& p_td,
TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...) const
TTCN_Buffer& p_buf, int p_coding, ...) const
{
va_list pvar;
va_start(pvar, p_coding);
......@@ -7333,7 +7333,7 @@ void Empty_Record_Type::encode(const TTCN_Typedescriptor_t& p_td,
}
void Empty_Record_Type::decode(const TTCN_Typedescriptor_t& p_td,
TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...)
TTCN_Buffer& p_buf, int p_coding, ...)
{
va_list pvar;
va_start(pvar, p_coding);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment