Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:18
luerl
luerl-0.3-else.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File luerl-0.3-else.patch of Package luerl
diff -Ndurp luerl-0.3/src/luerl_comp_cg.erl luerl-0.3-else/src/luerl_comp_cg.erl --- luerl-0.3/src/luerl_comp_cg.erl 2016-03-15 00:47:26.000000000 +0200 +++ luerl-0.3-else/src/luerl_comp_cg.erl 2022-06-11 01:42:53.790437771 +0300 @@ -180,7 +180,7 @@ repeat_stmt(#repeat_stmt{b=B}, St0) -> %% if_stmt(If, State) -> {If,State}. -if_stmt(#if_stmt{tests=Ts,else=E}, St) -> +if_stmt(#if_stmt{tests=Ts,'else'=E}, St) -> if_tests(Ts, E, St). if_tests([{E,B}], #block{ss=[]}, St0) -> diff -Ndurp luerl-0.3/src/luerl_comp_env.erl luerl-0.3-else/src/luerl_comp_env.erl --- luerl-0.3/src/luerl_comp_env.erl 2016-03-15 00:47:26.000000000 +0200 +++ luerl-0.3-else/src/luerl_comp_env.erl 2022-06-11 01:43:20.541842657 +0300 @@ -259,10 +259,10 @@ repeat_stmt(#repeat_stmt{b=B0}=R, St0) - %% if_stmt(If, State) -> {If,State}. -if_stmt(#if_stmt{tests=Ts0,else=E0}=I, St0) -> +if_stmt(#if_stmt{tests=Ts0,'else'=E0}=I, St0) -> {Ts1,St1} = if_tests(Ts0, St0), {E1,St2} = do_block(E0, St1), - {I#if_stmt{tests=Ts1,else=E1},St2}. + {I#if_stmt{tests=Ts1,'else'=E1},St2}. if_tests([{E0,B0}|Ts0], St0) -> {E1,St1} = exp(E0, St0), diff -Ndurp luerl-0.3/src/luerl_comp.erl luerl-0.3-else/src/luerl_comp.erl --- luerl-0.3/src/luerl_comp.erl 2016-03-15 00:47:26.000000000 +0200 +++ luerl-0.3-else/src/luerl_comp.erl 2022-06-11 01:44:18.236559189 +0300 @@ -359,7 +359,7 @@ repeat_stmt(Line, B, Exp, St0) -> if_stmt(Line, Tests, Else, St0) -> {Cts,St1} = if_tests(Line, Tests, St0), {Ce,St2} = block(Line, Else, St1), - {#if_stmt{l=Line,tests=Cts,else=Ce},St2}. + {#if_stmt{l=Line,tests=Cts,'else'=Ce},St2}. if_tests(L, Ts, St) -> Test = fun ({T,B}, S0) -> diff -Ndurp luerl-0.3/src/luerl_comp.hrl luerl-0.3-else/src/luerl_comp.hrl --- luerl-0.3/src/luerl_comp.hrl 2016-03-15 00:47:26.000000000 +0200 +++ luerl-0.3-else/src/luerl_comp.hrl 2022-06-11 01:43:47.997231889 +0300 @@ -58,7 +58,7 @@ -record(gfor_stmt, {l,vs,gens,b=[]}). --record(if_stmt, {l,tests=[],else}). +-record(if_stmt, {l,tests=[],'else'}). -record(local_assign_stmt, {l,vs,es}). diff -Ndurp luerl-0.3/src/luerl_comp_locf.erl luerl-0.3-else/src/luerl_comp_locf.erl --- luerl-0.3/src/luerl_comp_locf.erl 2016-03-15 00:47:26.000000000 +0200 +++ luerl-0.3-else/src/luerl_comp_locf.erl 2022-06-11 01:44:12.268691951 +0300 @@ -137,11 +137,11 @@ repeat_stmt(#repeat_stmt{b=B0}=R, St0) - %% The block info includes anything from the test expressions even %% though we keep them separate. -if_stmt(#if_stmt{tests=Ts0,else=E0}=If, St0) -> +if_stmt(#if_stmt{tests=Ts0,'else'=E0}=If, St0) -> {Ts1,Tlocf,St1} = if_tests(Ts0, St0), {E1,Elocf,St2} = do_block(E0, St1), Locf = Tlocf or Elocf, - {If#if_stmt{tests=Ts1,else=E1},Locf,St2}. + {If#if_stmt{tests=Ts1,'else'=E1},Locf,St2}. if_tests([{E0,B0}|Ts0], St0) -> {E1,Elocf,St1} = exp(E0, St0), diff -Ndurp luerl-0.3/src/luerl_comp_vars.erl luerl-0.3-else/src/luerl_comp_vars.erl --- luerl-0.3/src/luerl_comp_vars.erl 2016-03-15 00:47:26.000000000 +0200 +++ luerl-0.3-else/src/luerl_comp_vars.erl 2022-06-11 01:43:13.965988942 +0300 @@ -183,12 +183,12 @@ repeat_stmt(#repeat_stmt{b=B0}=R, _, St0 %% The block info includes anything from the test expressions even %% though we keep them separate. -if_stmt(#if_stmt{tests=Ts0,else=E0}=If, Loc, St0) -> +if_stmt(#if_stmt{tests=Ts0,'else'=E0}=If, Loc, St0) -> {Ts1,Tused,Tfused,St1} = if_tests(Ts0, Loc, St0), {E1,Eused,Efused,St2} = do_block(E0, St1), Used = union(Tused, Eused), Fused = union(Tfused, Efused), - {If#if_stmt{tests=Ts1,else=E1},[],Used,Fused,St2}. + {If#if_stmt{tests=Ts1,'else'=E1},[],Used,Fused,St2}. if_tests([{E0,B0}|Ts0], Loc, St0) -> {E1,Eused,Efused,St1} = exp(E0, Loc, St0),
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor