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) ...@@ -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, 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_list pvar;
va_start(pvar, p_coding); va_start(pvar, p_coding);
...@@ -400,10 +400,10 @@ void FLOAT::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, ...@@ -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, 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_list pvar;
va_start(pvar, (int)p_coding); va_start(pvar, p_coding);
switch(p_coding) { switch(p_coding) {
case TTCN_EncDec::CT_BER: { case TTCN_EncDec::CT_BER: {
TTCN_EncDec_ErrorContext ec("While BER-decoding type '%s': ", p_td.name); TTCN_EncDec_ErrorContext ec("While BER-decoding type '%s': ", p_td.name);
......
...@@ -128,10 +128,10 @@ public: ...@@ -128,10 +128,10 @@ public:
void decode_text(Text_Buf& text_buf); void decode_text(Text_Buf& text_buf);
void encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_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, 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, ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td,
unsigned p_coding) const; unsigned p_coding) const;
......
...@@ -664,7 +664,7 @@ Module_Param* HEXSTRING::get_param(Module_Param_Name& /* param_name */) const ...@@ -664,7 +664,7 @@ Module_Param* HEXSTRING::get_param(Module_Param_Name& /* param_name */) const
#endif #endif
void HEXSTRING::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, 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_list pvar;
va_start(pvar, p_coding); va_start(pvar, p_coding);
...@@ -701,10 +701,10 @@ void HEXSTRING::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, ...@@ -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, 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_list pvar;
va_start(pvar, (int)p_coding); va_start(pvar, p_coding);
switch (p_coding) { switch (p_coding) {
case TTCN_EncDec::CT_RAW: { case TTCN_EncDec::CT_RAW: {
TTCN_EncDec_ErrorContext ec("While RAW-decoding type '%s': ", p_td.name); TTCN_EncDec_ErrorContext ec("While RAW-decoding type '%s': ", p_td.name);
......
...@@ -135,10 +135,10 @@ public: ...@@ -135,10 +135,10 @@ public:
void encode_text(Text_Buf& text_buf) const; void encode_text(Text_Buf& text_buf) const;
void decode_text(Text_Buf& text_buf); void decode_text(Text_Buf& text_buf);
void encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_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, 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 /** Encodes the value of the variable according to the
* TTCN_Typedescriptor_t. It must be public because called by * TTCN_Typedescriptor_t. It must be public because called by
* another types during encoding. Returns the length of encoded data*/ * another types during encoding. Returns the length of encoded data*/
......
...@@ -754,7 +754,7 @@ void INTEGER::decode_text(Text_Buf& text_buf) ...@@ -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, 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_list pvar;
va_start(pvar, p_coding); va_start(pvar, p_coding);
...@@ -814,10 +814,10 @@ void INTEGER::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, ...@@ -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, 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_list pvar;
va_start(pvar, (int)p_coding); va_start(pvar, p_coding);
switch(p_coding) { switch(p_coding) {
case TTCN_EncDec::CT_BER: { case TTCN_EncDec::CT_BER: {
TTCN_EncDec_ErrorContext ec("While BER-decoding type '%s': ", p_td.name); TTCN_EncDec_ErrorContext ec("While BER-decoding type '%s': ", p_td.name);
......
...@@ -153,10 +153,10 @@ public: ...@@ -153,10 +153,10 @@ public:
void decode_text(Text_Buf& text_buf); void decode_text(Text_Buf& text_buf);
void encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_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, 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, ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td,
unsigned p_coding) const; unsigned p_coding) const;
......
...@@ -278,7 +278,7 @@ void OBJID::decode_text(Text_Buf& text_buf) ...@@ -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, 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_list pvar;
va_start(pvar, p_coding); va_start(pvar, p_coding);
...@@ -324,10 +324,10 @@ void OBJID::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, ...@@ -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, 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_list pvar;
va_start(pvar, (int)p_coding); va_start(pvar, p_coding);
switch(p_coding) { switch(p_coding) {
case TTCN_EncDec::CT_BER: { case TTCN_EncDec::CT_BER: {
TTCN_EncDec_ErrorContext ec("While BER-decoding type '%s': ", p_td.name); TTCN_EncDec_ErrorContext ec("While BER-decoding type '%s': ", p_td.name);
......
...@@ -93,10 +93,10 @@ public: ...@@ -93,10 +93,10 @@ public:
void decode_text(Text_Buf& text_buf); void decode_text(Text_Buf& text_buf);
void encode(const TTCN_Typedescriptor_t&, TTCN_Buffer&, void encode(const TTCN_Typedescriptor_t&, TTCN_Buffer&,
TTCN_EncDec::coding_t, ...) const; int, ...) const;
void decode(const TTCN_Typedescriptor_t&, TTCN_Buffer&, 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, ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td,
unsigned p_coding) const; unsigned p_coding) const;
......
...@@ -598,7 +598,7 @@ void OCTETSTRING::decode_text(Text_Buf& text_buf) ...@@ -598,7 +598,7 @@ void OCTETSTRING::decode_text(Text_Buf& text_buf)
void OCTETSTRING::encode(const TTCN_Typedescriptor_t& p_td, void OCTETSTRING::encode(const TTCN_Typedescriptor_t& p_td,
TTCN_Buffer& p_buf, TTCN_Buffer& p_buf,
TTCN_EncDec::coding_t p_coding, ...) const int p_coding, ...) const
{ {
va_list pvar; va_list pvar;
va_start(pvar, p_coding); va_start(pvar, p_coding);
...@@ -659,10 +659,10 @@ void OCTETSTRING::encode(const TTCN_Typedescriptor_t& p_td, ...@@ -659,10 +659,10 @@ void OCTETSTRING::encode(const TTCN_Typedescriptor_t& p_td,
void OCTETSTRING::decode(const TTCN_Typedescriptor_t& p_td, void OCTETSTRING::decode(const TTCN_Typedescriptor_t& p_td,
TTCN_Buffer& p_buf, TTCN_Buffer& p_buf,
TTCN_EncDec::coding_t p_coding, ...) int p_coding, ...)
{ {
va_list pvar; va_list pvar;
va_start(pvar, (int)p_coding); va_start(pvar, p_coding);
switch(p_coding) { switch(p_coding) {
case TTCN_EncDec::CT_BER: { case TTCN_EncDec::CT_BER: {
TTCN_EncDec_ErrorContext ec("While BER-decoding type '%s': ", p_td.name); TTCN_EncDec_ErrorContext ec("While BER-decoding type '%s': ", p_td.name);
......
...@@ -145,10 +145,10 @@ public: ...@@ -145,10 +145,10 @@ public:
public: public:
void encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_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, 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, ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td,
unsigned p_coding) const; unsigned p_coding) const;
......
...@@ -1096,7 +1096,7 @@ void UNIVERSAL_CHARSTRING::decode_text(Text_Buf& text_buf) ...@@ -1096,7 +1096,7 @@ void UNIVERSAL_CHARSTRING::decode_text(Text_Buf& text_buf)
} }
void UNIVERSAL_CHARSTRING::encode(const TTCN_Typedescriptor_t& p_td, 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_list pvar;
va_start(pvar, p_coding); va_start(pvar, p_coding);
...@@ -1165,10 +1165,10 @@ void UNIVERSAL_CHARSTRING::encode(const TTCN_Typedescriptor_t& p_td, ...@@ -1165,10 +1165,10 @@ void UNIVERSAL_CHARSTRING::encode(const TTCN_Typedescriptor_t& p_td,
} }
void UNIVERSAL_CHARSTRING::decode(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_list pvar;
va_start(pvar, (int)p_coding); va_start(pvar, p_coding);
switch(p_coding) { switch(p_coding) {
case TTCN_EncDec::CT_BER: { case TTCN_EncDec::CT_BER: {
TTCN_EncDec_ErrorContext ec("While BER-decoding type '%s': ", p_td.name); TTCN_EncDec_ErrorContext ec("While BER-decoding type '%s': ", p_td.name);
......
...@@ -339,9 +339,9 @@ public: ...@@ -339,9 +339,9 @@ public:
void decode_text(Text_Buf& text_buf); void decode_text(Text_Buf& text_buf);
void encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_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, 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, ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td,
unsigned p_coding) const; unsigned p_coding) const;
......
...@@ -149,7 +149,7 @@ void VERDICTTYPE::decode_text(Text_Buf& text_buf) ...@@ -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, 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_list pvar;
va_start(pvar, p_coding); va_start(pvar, p_coding);
...@@ -205,10 +205,10 @@ void VERDICTTYPE::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, ...@@ -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, 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_list pvar;
va_start(pvar, (int)p_coding); va_start(pvar, p_coding);
switch(p_coding) { switch(p_coding) {
#if 0 #if 0
case TTCN_EncDec::CT_RAW: { case TTCN_EncDec::CT_RAW: {
......
...@@ -92,10 +92,10 @@ public: ...@@ -92,10 +92,10 @@ public:
void decode_text(Text_Buf& text_buf); void decode_text(Text_Buf& text_buf);
void encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_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, 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, 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; 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 ...@@ -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, 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_list pvar;
va_start(pvar, p_coding); va_start(pvar, p_coding);
...@@ -1875,7 +1875,7 @@ void Record_Of_Type::encode(const TTCN_Typedescriptor_t& p_td, ...@@ -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, 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_list pvar;
va_start(pvar, p_coding); va_start(pvar, p_coding);
...@@ -3014,7 +3014,7 @@ void Record_Type::set_value(const Base_Type* other_value) ...@@ -3014,7 +3014,7 @@ void Record_Type::set_value(const Base_Type* other_value)
} }
void Record_Type::encode(const TTCN_Typedescriptor_t& p_td, 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_list pvar;
va_start(pvar, p_coding); va_start(pvar, p_coding);
...@@ -3071,7 +3071,7 @@ void Record_Type::encode(const TTCN_Typedescriptor_t& p_td, ...@@ -3071,7 +3071,7 @@ void Record_Type::encode(const TTCN_Typedescriptor_t& p_td,
} }
void Record_Type::decode(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_list pvar;
va_start(pvar, p_coding); va_start(pvar, p_coding);
...@@ -7276,7 +7276,7 @@ void Empty_Record_Type::set_value(const Base_Type* other_value) ...@@ -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, 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_list pvar;
va_start(pvar, p_coding); va_start(pvar, p_coding);
...@@ -7333,7 +7333,7 @@ void Empty_Record_Type::encode(const TTCN_Typedescriptor_t& p_td, ...@@ -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, 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_list pvar;
va_start(pvar, p_coding); 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