From 8dad90e81443038707cccac66ef0718ac0ff6ee3 Mon Sep 17 00:00:00 2001 From: Paul Guyot Date: Thu, 17 Jun 2010 14:20:46 +0200 Subject: Fix beam_lib:cmp/2 return type specification Specify that beam_lib:cmp/2 can return {error, beam_lib, different_chunks} if a chunk is only present in one of the beams. --- lib/stdlib/doc/src/beam_lib.xml | 1 + lib/stdlib/src/beam_lib.erl | 1 + 2 files changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/stdlib/doc/src/beam_lib.xml b/lib/stdlib/doc/src/beam_lib.xml index 27308e02f3..adc411e272 100644 --- a/lib/stdlib/doc/src/beam_lib.xml +++ b/lib/stdlib/doc/src/beam_lib.xml @@ -341,6 +341,7 @@ chunkref() = chunkname() | chunkid() Beam1 = Beam2 = beam() Reason = {modules_different, Module1, Module2}   | {chunks_different, ChunkId} +   | different_chunks   | Reason1 -- see info/1  Module1 = Module2 = atom()  ChunkId = chunkid() diff --git a/lib/stdlib/src/beam_lib.erl b/lib/stdlib/src/beam_lib.erl index 91ff2438c6..e612bf71e7 100644 --- a/lib/stdlib/src/beam_lib.erl +++ b/lib/stdlib/src/beam_lib.erl @@ -105,6 +105,7 @@ | info_rsn(). -type cmp_rsn() :: {'modules_different', module(), module()} | {'chunks_different', chunkid()} + | 'different_chunks' | info_rsn(). %%------------------------------------------------------------------------- -- cgit v1.2.3