# HG changeset patch # User samer # Date 1328786196 0 # Node ID c7ea49d19055e1cfb55df3275220ea32da65358e # Parent 256016cddcbaa7af3dab2338855f688b1e920066 Import library(debug) explicitly; removed spurious \n from debug messages. diff -r 256016cddcba -r c7ea49d19055 prolog/plml.pl --- a/prolog/plml.pl Thu Feb 09 10:57:10 2012 +0000 +++ b/prolog/plml.pl Thu Feb 09 11:16:36 2012 +0000 @@ -216,6 +216,7 @@ Remove I from ml_expr//2 and add to mx type? */ +:- use_module(library(debug)). :- use_module(library(apply_macros)). :- use_module(library(utils), [hostname/1]). :- use_module(library(dcgu)). @@ -315,7 +316,7 @@ ; Exec1=Exec ), format(atom(Cmd),'~w ~w',[Exec1,Flags]), - debug(plml,'About to start Matlab with: ~w\n',[Cmd]), + debug(plml,'About to start Matlab with: ~w',[Cmd]), mlOPEN(Cmd,Id), set_flag(ml(Id),open), ( member(noinit,Options) -> true @@ -341,7 +342,7 @@ % Execute Matlab expression without returning any values. ml_exec(Id,X) :- term_mlstring(Id,X,C), !, - debug(plml,'plml:ml_exec>> ~s\n',[C]), + debug(plml,'plml:ml_exec>> ~s',[C]), mlEXEC(Id,C). %% ml_eval(+Id:ml_eng, +Expr:ml_expr, +Types:list(type), -Res:list(ml_val)) is det.