~petitjean-sim/xmg-ng/xmg-ng.dev

« back to all changes in this revision

Viewing changes to contributions/core/bricks/mg/compiler/exporter.yap

  • Committer: Simon Petitjean
  • Date: 2017-04-03 16:51:05 UTC
  • Revision ID: petitjean.sim@gmail.com-20170403165105-oia1ddawekydjumm
threads in preparers for plugins

Show diffs side-by-side

added added

removed removed

Lines of Context:
215
215
add_vars_no_duplicates(Exps,[],Exps).
216
216
add_vars_no_duplicates(Exps,[id(H,C)|T],T1):-
217
217
        lists:member(id(H,_)-_,Exps),!,
218
 
        xmg:send(debug,' Multiple declarations of variable '),
219
 
        xmg:send(debug,H),
220
 
        xmg:send(debug,C),
221
 
        false,
 
218
        xmg:send(info,'\n\nWarning: Multiple declarations of variable '),
 
219
        xmg:send(info,H),
 
220
        xmg:send(info,', '),
 
221
        xmg:send(info,C),
 
222
        xmg:send(info,'\n\n'),
222
223
        add_vars_no_duplicates(Exps,T,T1).
223
224
add_vars_no_duplicates(Exps,[H|T],[H-_|T1]):-
224
225
        add_vars_no_duplicates(Exps,T,T1).