add exprecs compile_transform form isup, m2ua and mtp3

This commit is contained in:
Harald Welte 2011-04-02 16:48:50 +02:00
parent 2edaf55db2
commit 5272527411
3 changed files with 9 additions and 0 deletions

View File

@ -25,6 +25,9 @@
-compile(export_all).
-compile({parse_transform, exprecs}).
-export_records([party_number, isup_msg]).
parse_isup_party(<<>>, OddEven, DigitList) ->
% in case of odd number of digits, we need to cut the last
case OddEven of

View File

@ -23,6 +23,9 @@
-export([parse_m2ua_msg/1, encode_m2ua_msg/1]).
-compile({parse_transform, exprecs}).
-export_records([m2ua_msg]).
% compute the number of pad bits required after a binary parameter
get_num_pad_bytes(BinLenBytes) ->
case BinLenBytes rem 4 of

View File

@ -23,6 +23,9 @@
-export([parse_mtp3_msg/1, encode_mtp3_msg/1]).
-compile({parse_transform, exprecs}).
-export_records([mtp3_routing_label, mtp3_msg]).
% Parse standard routing label according to Section 2.2 of ITU-T Q.704
parse_mtp3_routing_label(_, LabelBin) when is_binary(LabelBin) ->
<<Sls:4/big, Opc:14/big, Dpc:14/big, Remain/binary>> = LabelBin,