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
...@@ -35,9 +35,9 @@ void def_encdec(const char *p_classname, ...@@ -35,9 +35,9 @@ void def_encdec(const char *p_classname,
def=mputstr def=mputstr
(def, (def,
"void encode(const TTCN_Typedescriptor_t&, TTCN_Buffer&," "void encode(const TTCN_Typedescriptor_t&, TTCN_Buffer&,"
" TTCN_EncDec::coding_t, ...) const;\n" " int, ...) const;\n"
"void decode(const TTCN_Typedescriptor_t&, TTCN_Buffer&," "void decode(const TTCN_Typedescriptor_t&, TTCN_Buffer&,"
" TTCN_EncDec::coding_t, ...);\n"); " int, ...);\n");
if(ber) if(ber)
def=mputstr(def, def=mputstr(def,
"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,"
...@@ -93,10 +93,10 @@ void def_encdec(const char *p_classname, ...@@ -93,10 +93,10 @@ void def_encdec(const char *p_classname,
src=mputprintf(src, src=mputprintf(src,
"void %s::encode(const TTCN_Typedescriptor_t& p_td," "void %s::encode(const TTCN_Typedescriptor_t& p_td,"
" TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...) const\n" " TTCN_Buffer& p_buf, int p_coding, ...) const\n"
"{\n" "{\n"
" va_list pvar;\n" " va_list pvar;\n"
" va_start(pvar, (int)p_coding);\n" " va_start(pvar, p_coding);\n"
" switch(p_coding) {\n" " switch(p_coding) {\n"
" case TTCN_EncDec::CT_BER: {\n" " case TTCN_EncDec::CT_BER: {\n"
" TTCN_EncDec_ErrorContext ec(\"While BER-encoding type" " TTCN_EncDec_ErrorContext ec(\"While BER-encoding type"
...@@ -173,10 +173,10 @@ void def_encdec(const char *p_classname, ...@@ -173,10 +173,10 @@ void def_encdec(const char *p_classname,
"// written by %s in " __FILE__ " at %d\n" "// written by %s in " __FILE__ " at %d\n"
#endif #endif
"void %s::decode(const TTCN_Typedescriptor_t& p_td," "void %s::decode(const TTCN_Typedescriptor_t& p_td,"
" TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...)\n" " TTCN_Buffer& p_buf, int p_coding, ...)\n"
"{\n" "{\n"
" va_list pvar;\n" " va_list pvar;\n"
" va_start(pvar, (int)p_coding);\n" " va_start(pvar, p_coding);\n"
" switch(p_coding) {\n" " switch(p_coding) {\n"
" case TTCN_EncDec::CT_BER: {\n" " case TTCN_EncDec::CT_BER: {\n"
" TTCN_EncDec_ErrorContext ec(\"While BER-decoding type" " TTCN_EncDec_ErrorContext ec(\"While BER-decoding type"
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
void ASN_ANY::encode(const TTCN_Typedescriptor_t& p_td, void ASN_ANY::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);
...@@ -53,10 +53,10 @@ void ASN_ANY::encode(const TTCN_Typedescriptor_t& p_td, ...@@ -53,10 +53,10 @@ void ASN_ANY::encode(const TTCN_Typedescriptor_t& p_td,
void ASN_ANY::decode(const TTCN_Typedescriptor_t& p_td, void ASN_ANY::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);
......
...@@ -37,10 +37,10 @@ public: ...@@ -37,10 +37,10 @@ public:
#endif #endif
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;
......
...@@ -661,8 +661,8 @@ void CHARACTER_STRING_identification::decode_text(Text_Buf& text_buf) ...@@ -661,8 +661,8 @@ void CHARACTER_STRING_identification::decode_text(Text_Buf& text_buf)
} }
/* not called /* not called
void CHARACTER_STRING_identification::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...) const void CHARACTER_STRING_identification::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...) const
void CHARACTER_STRING_identification::decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...) void CHARACTER_STRING_identification::decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...)
*/ */
ASN_BER_TLV_t *CHARACTER_STRING_identification::BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const ASN_BER_TLV_t *CHARACTER_STRING_identification::BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const
...@@ -1741,8 +1741,8 @@ void CHARACTER_STRING_identification_syntaxes::decode_text(Text_Buf& text_buf) ...@@ -1741,8 +1741,8 @@ void CHARACTER_STRING_identification_syntaxes::decode_text(Text_Buf& text_buf)
} }
/* not called /* not called
void CHARACTER_STRING_identification_syntaxes::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...) const void CHARACTER_STRING_identification_syntaxes::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...) const
void CHARACTER_STRING_identification_syntaxes::decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...) void CHARACTER_STRING_identification_syntaxes::decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...)
*/ */
ASN_BER_TLV_t* CHARACTER_STRING_identification_syntaxes::BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const ASN_BER_TLV_t* CHARACTER_STRING_identification_syntaxes::BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const
...@@ -2473,8 +2473,8 @@ void CHARACTER_STRING_identification_context__negotiation::decode_text(Text_Buf& ...@@ -2473,8 +2473,8 @@ void CHARACTER_STRING_identification_context__negotiation::decode_text(Text_Buf&
} }
/* not called /* not called
void CHARACTER_STRING_identification_context__negotiation::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...) const void CHARACTER_STRING_identification_context__negotiation::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...) const
void CHARACTER_STRING_identification_context__negotiation::decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...) void CHARACTER_STRING_identification_context__negotiation::decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...)
*/ */
ASN_BER_TLV_t* CHARACTER_STRING_identification_context__negotiation::BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const ASN_BER_TLV_t* CHARACTER_STRING_identification_context__negotiation::BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const
...@@ -3228,7 +3228,7 @@ void CHARACTER_STRING::decode_text(Text_Buf& text_buf) ...@@ -3228,7 +3228,7 @@ void CHARACTER_STRING::decode_text(Text_Buf& text_buf)
field_string__value.decode_text(text_buf); field_string__value.decode_text(text_buf);
} }
void CHARACTER_STRING::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...) const void CHARACTER_STRING::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...) const
{ {
va_list pvar; va_list pvar;
va_start(pvar, p_coding); va_start(pvar, p_coding);
...@@ -3268,10 +3268,10 @@ void CHARACTER_STRING::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_ ...@@ -3268,10 +3268,10 @@ void CHARACTER_STRING::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_
va_end(pvar); va_end(pvar);
} }
void CHARACTER_STRING::decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...) void CHARACTER_STRING::decode(const TTCN_Typedescriptor_t& p_td, 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);
......
...@@ -94,8 +94,8 @@ public: ...@@ -94,8 +94,8 @@ public:
void set_param(Module_Param& param); void set_param(Module_Param& param);
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, TTCN_EncDec::coding_t p_coding, ...) const; //void encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...) const;
//void decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...); //void decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...);
ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const; ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const;
boolean BER_decode_TLV(const TTCN_Typedescriptor_t& p_td, const ASN_BER_TLV_t& p_tlv, unsigned L_form); boolean BER_decode_TLV(const TTCN_Typedescriptor_t& p_td, const ASN_BER_TLV_t& p_tlv, unsigned L_form);
int XER_encode(const XERdescriptor_t& p_td, int XER_encode(const XERdescriptor_t& p_td,
...@@ -218,8 +218,8 @@ public: ...@@ -218,8 +218,8 @@ public:
void set_param(Module_Param& param); void set_param(Module_Param& param);
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, TTCN_EncDec::coding_t p_coding, ...) const; //void encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...) const;
//void decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...); //void decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...);
ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const; ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const;
boolean BER_decode_TLV(const TTCN_Typedescriptor_t& p_td, const ASN_BER_TLV_t& p_tlv, unsigned L_form); boolean BER_decode_TLV(const TTCN_Typedescriptor_t& p_td, const ASN_BER_TLV_t& p_tlv, unsigned L_form);
int XER_encode(const XERdescriptor_t& p_td, int XER_encode(const XERdescriptor_t& p_td,
...@@ -327,8 +327,8 @@ public: ...@@ -327,8 +327,8 @@ public:
void set_param(Module_Param& param); void set_param(Module_Param& param);
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, TTCN_EncDec::coding_t p_coding, ...) const; //void encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...) const;
//void decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...); //void decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...);
ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const; ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const;
boolean BER_decode_TLV(const TTCN_Typedescriptor_t& p_td, const ASN_BER_TLV_t& p_tlv, unsigned L_form); boolean BER_decode_TLV(const TTCN_Typedescriptor_t& p_td, const ASN_BER_TLV_t& p_tlv, unsigned L_form);
int XER_encode(const XERdescriptor_t& p_td, int XER_encode(const XERdescriptor_t& p_td,
...@@ -445,8 +445,8 @@ public: ...@@ -445,8 +445,8 @@ public:
void set_param(Module_Param& param); void set_param(Module_Param& param);
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, TTCN_EncDec::coding_t p_coding, ...) const; void encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...) const;
void decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...); void decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...);
ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const; ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const;
boolean BER_decode_TLV(const TTCN_Typedescriptor_t& p_td, const ASN_BER_TLV_t& p_tlv, unsigned L_form); boolean BER_decode_TLV(const TTCN_Typedescriptor_t& p_td, const ASN_BER_TLV_t& p_tlv, unsigned L_form);
int XER_encode(const XERdescriptor_t&, TTCN_Buffer&, unsigned int, unsigned int, int, embed_values_enc_struct_t*) const; int XER_encode(const XERdescriptor_t&, TTCN_Buffer&, unsigned int, unsigned int, int, embed_values_enc_struct_t*) const;
......
...@@ -649,8 +649,8 @@ void EMBEDDED_PDV_identification::decode_text(Text_Buf& text_buf) ...@@ -649,8 +649,8 @@ void EMBEDDED_PDV_identification::decode_text(Text_Buf& text_buf)
} }
// No encode/decode for this implementation class // No encode/decode for this implementation class
//void EMBEDDED_PDV_identification::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...) const //void EMBEDDED_PDV_identification::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...) const
//void EMBEDDED_PDV_identification::decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...) //void EMBEDDED_PDV_identification::decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...)
ASN_BER_TLV_t *EMBEDDED_PDV_identification::BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const ASN_BER_TLV_t *EMBEDDED_PDV_identification::BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const
{ {
...@@ -1799,8 +1799,8 @@ void EMBEDDED_PDV_identification_syntaxes::decode_text(Text_Buf& text_buf) ...@@ -1799,8 +1799,8 @@ void EMBEDDED_PDV_identification_syntaxes::decode_text(Text_Buf& text_buf)
} }
// No encode/decode for this implementation class // No encode/decode for this implementation class
//void EMBEDDED_PDV_identification_syntaxes::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...) const //void EMBEDDED_PDV_identification_syntaxes::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...) const
//void EMBEDDED_PDV_identification_syntaxes::decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...) //void EMBEDDED_PDV_identification_syntaxes::decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...)
ASN_BER_TLV_t* EMBEDDED_PDV_identification_syntaxes::BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const ASN_BER_TLV_t* EMBEDDED_PDV_identification_syntaxes::BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const
{ {
...@@ -2552,8 +2552,8 @@ void EMBEDDED_PDV_identification_context__negotiation::decode_text(Text_Buf& tex ...@@ -2552,8 +2552,8 @@ void EMBEDDED_PDV_identification_context__negotiation::decode_text(Text_Buf& tex
} }
// No encode/decode for this implementation class // No encode/decode for this implementation class
//void EMBEDDED_PDV_identification_context__negotiation::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...) const //void EMBEDDED_PDV_identification_context__negotiation::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...) const
//void EMBEDDED_PDV_identification_context__negotiation::decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...) //void EMBEDDED_PDV_identification_context__negotiation::decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...)
ASN_BER_TLV_t* EMBEDDED_PDV_identification_context__negotiation::BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const ASN_BER_TLV_t* EMBEDDED_PDV_identification_context__negotiation::BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const
...@@ -3327,7 +3327,7 @@ void EMBEDDED_PDV::decode_text(Text_Buf& text_buf) ...@@ -3327,7 +3327,7 @@ void EMBEDDED_PDV::decode_text(Text_Buf& text_buf)
field_data__value.decode_text(text_buf); field_data__value.decode_text(text_buf);
} }
void EMBEDDED_PDV::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...) const void EMBEDDED_PDV::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...) const
{ {
va_list pvar; va_list pvar;
va_start(pvar, p_coding); va_start(pvar, p_coding);
...@@ -3372,10 +3372,10 @@ void EMBEDDED_PDV::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, ...@@ -3372,10 +3372,10 @@ void EMBEDDED_PDV::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
va_end(pvar); va_end(pvar);
} }
void EMBEDDED_PDV::decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...) void EMBEDDED_PDV::decode(const TTCN_Typedescriptor_t& p_td, 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);
......
...@@ -94,8 +94,8 @@ public: ...@@ -94,8 +94,8 @@ public:
void set_param(Module_Param& param); void set_param(Module_Param& param);
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, TTCN_EncDec::coding_t p_coding, ...) const; //void encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...) const;
//void decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...); //void decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...);
ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const; ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const;
boolean BER_decode_TLV(const TTCN_Typedescriptor_t& p_td, const ASN_BER_TLV_t& p_tlv, unsigned L_form); boolean BER_decode_TLV(const TTCN_Typedescriptor_t& p_td, const ASN_BER_TLV_t& p_tlv, unsigned L_form);
int XER_encode(const XERdescriptor_t& p_td, int XER_encode(const XERdescriptor_t& p_td,
...@@ -220,8 +220,8 @@ public: ...@@ -220,8 +220,8 @@ public:
void set_param(Module_Param& param); void set_param(Module_Param& param);
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, TTCN_EncDec::coding_t p_coding, ...) const; //void encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...) const;
//void decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...); //void decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...);
ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const; ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const;
boolean BER_decode_TLV(const TTCN_Typedescriptor_t& p_td, const ASN_BER_TLV_t& p_tlv, unsigned L_form); boolean BER_decode_TLV(const TTCN_Typedescriptor_t& p_td, const ASN_BER_TLV_t& p_tlv, unsigned L_form);
int XER_encode(const XERdescriptor_t&, TTCN_Buffer&, unsigned int, unsigned int, int, embed_values_enc_struct_t*) const; int XER_encode(const XERdescriptor_t&, TTCN_Buffer&, unsigned int, unsigned int, int, embed_values_enc_struct_t*) const;
...@@ -329,8 +329,8 @@ public: ...@@ -329,8 +329,8 @@ public:
void set_param(Module_Param& param); void set_param(Module_Param& param);
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, TTCN_EncDec::coding_t p_coding, ...) const; //void encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...) const;
//void decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...); //void decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...);
ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const; ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const;
boolean BER_decode_TLV(const TTCN_Typedescriptor_t& p_td, const ASN_BER_TLV_t& p_tlv, unsigned L_form); boolean BER_decode_TLV(const TTCN_Typedescriptor_t& p_td, const ASN_BER_TLV_t& p_tlv, unsigned L_form);
int XER_encode(const XERdescriptor_t&, TTCN_Buffer&, unsigned int, unsigned int, int, embed_values_enc_struct_t*) const; int XER_encode(const XERdescriptor_t&, TTCN_Buffer&, unsigned int, unsigned int, int, embed_values_enc_struct_t*) const;
...@@ -444,8 +444,8 @@ public: ...@@ -444,8 +444,8 @@ public:
void set_param(Module_Param& param); void set_param(Module_Param& param);
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, TTCN_EncDec::coding_t p_coding, ...) const; void encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...) const;
void decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...); void decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...);
ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const; ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const;
boolean BER_decode_TLV(const TTCN_Typedescriptor_t& p_td, const ASN_BER_TLV_t& p_tlv, unsigned L_form); boolean BER_decode_TLV(const TTCN_Typedescriptor_t& p_td, const ASN_BER_TLV_t& p_tlv, unsigned L_form);
int XER_encode(const XERdescriptor_t&, TTCN_Buffer&, unsigned int, unsigned int, int, embed_values_enc_struct_t*) const; int XER_encode(const XERdescriptor_t&, TTCN_Buffer&, unsigned int, unsigned int, int, embed_values_enc_struct_t*) const;
......
...@@ -3542,7 +3542,7 @@ void EXTERNAL::decode_text(Text_Buf& text_buf) ...@@ -3542,7 +3542,7 @@ void EXTERNAL::decode_text(Text_Buf& text_buf)
field_data__value.decode_text(text_buf); field_data__value.decode_text(text_buf);
} }
void EXTERNAL::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...) const void EXTERNAL::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...) const
{ {
va_list pvar; va_list pvar;
va_start(pvar, p_coding); va_start(pvar, p_coding);
...@@ -3587,10 +3587,10 @@ void EXTERNAL::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTC ...@@ -3587,10 +3587,10 @@ void EXTERNAL::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTC
va_end(pvar); va_end(pvar);
} }
void EXTERNAL::decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...) void EXTERNAL::decode(const TTCN_Typedescriptor_t& p_td, 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);
......
...@@ -418,8 +418,8 @@ public: ...@@ -418,8 +418,8 @@ public:
void set_param(Module_Param& param); void set_param(Module_Param& param);
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, TTCN_EncDec::coding_t p_coding, ...) const; void encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...) const;
void decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...); void decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...);
ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const; ASN_BER_TLV_t* BER_encode_TLV(const TTCN_Typedescriptor_t& p_td, unsigned p_coding) const;
boolean BER_decode_TLV(const TTCN_Typedescriptor_t& p_td, const ASN_BER_TLV_t& p_tlv, unsigned L_form); boolean BER_decode_TLV(const TTCN_Typedescriptor_t& p_td, const ASN_BER_TLV_t& p_tlv, unsigned L_form);
int XER_encode(const XERdescriptor_t& p_td, int XER_encode(const XERdescriptor_t& p_td,
......
...@@ -121,7 +121,7 @@ void ASN_NULL::decode_text(Text_Buf&) ...@@ -121,7 +121,7 @@ void ASN_NULL::decode_text(Text_Buf&)
} }
void ASN_NULL::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, void ASN_NULL::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);
...@@ -163,10 +163,10 @@ void ASN_NULL::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, ...@@ -163,10 +163,10 @@ void ASN_NULL::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
} }
void ASN_NULL::decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, void ASN_NULL::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);
......
...@@ -72,10 +72,10 @@ public: ...@@ -72,10 +72,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;
......
...@@ -984,8 +984,8 @@ public: ...@@ -984,8 +984,8 @@ 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&, TTCN_Buffer&, TTCN_EncDec::coding_t, ...) const; void encode(const TTCN_Typedescriptor_t&, TTCN_Buffer&, int, ...) const;
void decode(const TTCN_Typedescriptor_t&, TTCN_Buffer&, TTCN_EncDec::coding_t, ...); void decode(const TTCN_Typedescriptor_t&, TTCN_Buffer&, int, ...);
virtual const TTCN_Typedescriptor_t* get_elem_descr() const virtual const TTCN_Typedescriptor_t* get_elem_descr() const
{ TTCN_error("Internal error: VALUE_ARRAY<>::get_elem_descr() called."); } { TTCN_error("Internal error: VALUE_ARRAY<>::get_elem_descr() called."); }
...@@ -1314,7 +1314,7 @@ void VALUE_ARRAY<T_type,array_size,index_offset>::decode_text ...@@ -1314,7 +1314,7 @@ void VALUE_ARRAY<T_type,array_size,index_offset>::decode_text
template <typename T_type, unsigned int array_size, int index_offset> template <typename T_type, unsigned int array_size, int index_offset>
void VALUE_ARRAY<T_type,array_size,index_offset>::encode( void VALUE_ARRAY<T_type,array_size,index_offset>::encode(
const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...) const const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...) const
{ {
va_list pvar; va_list pvar;
va_start(pvar, p_coding); va_start(pvar, p_coding);
...@@ -1335,7 +1335,7 @@ void VALUE_ARRAY<T_type,array_size,index_offset>::encode( ...@@ -1335,7 +1335,7 @@ void VALUE_ARRAY<T_type,array_size,index_offset>::encode(
template <typename T_type, unsigned int array_size, int index_offset> template <typename T_type, unsigned int array_size, int index_offset>
void VALUE_ARRAY<T_type,array_size,index_offset>::decode( void VALUE_ARRAY<T_type,array_size,index_offset>::decode(
const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...) const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, int p_coding, ...)
{ {
switch(p_coding) { switch(p_coding) {
case TTCN_EncDec::CT_JSON: { case TTCN_EncDec::CT_JSON: {
......
...@@ -54,7 +54,7 @@ void Base_Type::log() const ...@@ -54,7 +54,7 @@ void Base_Type::log() const
} }
void Base_Type::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, void Base_Type::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);
...@@ -117,10 +117,10 @@ void Base_Type::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, ...@@ -117,10 +117,10 @@ void Base_Type::encode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf,
} }
void Base_Type::decode(const TTCN_Typedescriptor_t& p_td, TTCN_Buffer& p_buf, void Base_Type::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);
......
...@@ -260,7 +260,7 @@ public: ...@@ -260,7 +260,7 @@ public:
*/ */
VIRTUAL_IF_RUNTIME_2 void encode(const TTCN_Typedescriptor_t& p_td, VIRTUAL_IF_RUNTIME_2 void 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;
/** @brief Decode an instance of this object /** @brief Decode an instance of this object
...@@ -272,7 +272,7 @@ public: ...@@ -272,7 +272,7 @@ public:
*/ */
VIRTUAL_IF_RUNTIME_2 void decode(const TTCN_Typedescriptor_t& p_td, VIRTUAL_IF_RUNTIME_2 void decode(const TTCN_Typedescriptor_t& p_td,
TTCN_Buffer& p_buf, TTCN_EncDec::coding_t p_coding, ...); TTCN_Buffer& p_buf, int p_coding, ...);
protected: protected: