~rdoering/ubuntu/karmic/erlang/fix-535090

« back to all changes in this revision

Viewing changes to lib/compiler/src/beam_flatten.erl

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-02-15 16:42:52 UTC
  • mfrom: (3.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090215164252-q5x4rcf8a5pbesb1
Tags: 1:12.b.5-dfsg-2
Upload to unstable after lenny is released.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
-export([module/2]).
23
23
-export([combine_heap_needs/2]).
24
24
 
25
 
-import(lists, [reverse/1,reverse/2,map/2,sort/1]).
 
25
-import(lists, [reverse/1,reverse/2,sort/1]).
26
26
 
27
27
module({Mod,Exp,Attr,Fs,Lc}, _Opt) ->
28
 
    {ok,{Mod,Exp,Attr,map(fun function/1, Fs),Lc}}.
 
28
    {ok,{Mod,Exp,Attr,[function(F) || F <- Fs],Lc}}.
29
29
 
30
30
function({function,Name,Arity,CLabel,Is0}) ->
31
31
    Is1 = block(Is0),