summaryrefslogtreecommitdiff
path: root/codegen.py
diff options
context:
space:
mode:
authorAlexandru Scvortov <alexandru@rabbitmq.com>2010-07-02 12:25:30 +0100
committerAlexandru Scvortov <alexandru@rabbitmq.com>2010-07-02 12:25:30 +0100
commitd81c817d65ceba84c8095b0df866e068779c92f2 (patch)
treeab03c262b49adf6f0cd9067e3fb38afba1a96455 /codegen.py
parenta7fe204b13b1f46d53d25ce87215b04ffdb50129 (diff)
downloadrabbitmq-server-d81c817d65ceba84c8095b0df866e068779c92f2.tar.gz
moved most hard-coded types from rabbit_framing
Diffstat (limited to 'codegen.py')
-rw-r--r--codegen.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/codegen.py b/codegen.py
index 5c235e35..d0008cf3 100644
--- a/codegen.py
+++ b/codegen.py
@@ -333,8 +333,7 @@ def genErl(spec):
-export([amqp_exception/1]).
-export_type([amqp_table/0, amqp_property_type/0, amqp_method_record/0,
- amqp_method_name/0, amqp_method/0, vhost/0, ctag/0,
- resource_name/0, amqp_properties/0, amqp_class_id/0]).
+ amqp_method_name/0, amqp_method/0, amqp_class_id/0]).
bitvalue(true) -> 1;
bitvalue(false) -> 0;
@@ -367,12 +366,7 @@ bitvalue(undefined) -> 0.
%% we could make this more precise but ultimately are limited by
%% dialyzer's lack of support for recursive types
-type(amqp_table() :: [{binary(), amqp_field_type(), any()}]).
-%% TODO: make this more precise
-type(amqp_properties() :: tuple()).
--type(resource_name() :: binary()).
--type(vhost() :: binary()).
--type(ctag() :: binary()).
-
-endif. % use_specs
"""
print "-ifdef(use_specs)."