~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/megaco/src/binary/megaco_binary_transformer_v1.erl

  • Committer: Bazaar Package Importer
  • Author(s): Erlang Packagers, Sergei Golovan
  • Date: 2006-12-03 17:07:44 UTC
  • mfrom: (2.1.11 feisty)
  • Revision ID: james.westby@ubuntu.com-20061203170744-rghjwupacqlzs6kv
Tags: 1:11.b.2-4
[ Sergei Golovan ]
Fixed erlang-base and erlang-base-hipe prerm scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
-export([tr_message/3, tr_transaction/3]).
28
28
 
29
29
-define(DEFAULT_NAME_RESOLVER,megaco_binary_name_resolver_v1).
 
30
-define(error(R), erlang:error({error, R})).
30
31
 
31
32
-record(state, {mode,                 % verify | encode | decode
32
33
                resolver_module,      % 
174
175
    tr_DIGIT(Val, State, 0, 255).
175
176
 
176
177
tr_IP6Address(_Val, _State) ->
177
 
    exit(ipv6_not_supported). %% BUGBUG: nyi
 
178
    ?error(ipv6_not_supported). %% BUGBUG: nyi
178
179
 
179
180
tr_PathName(Path, State) ->
180
181
    %% BUGBUG: ["*"] NAME *("/" / "*"/ ALPHA / DIGIT /"_" / "$" ) 
1235
1236
                        Max == infinity ->
1236
1237
                            Count;
1237
1238
                        true ->
1238
 
                            deliberate_badmatch = {count_too_large, Count, Max}
 
1239
                            ?error({count_too_large, Count, Max})
1239
1240
                    end;
1240
1241
                true ->
1241
 
                    deliberate_badmatch = {count_too_small, Count, Min}
 
1242
                    ?error({count_too_small, Count, Min})
1242
1243
            end;
1243
1244
        true ->
1244
 
            deliberate_badmatch = {count_not_an_integer, Count}
 
1245
            ?error({count_not_an_integer, Count})
1245
1246
    end.
1246
1247
 
1247
1248