X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginsh%2Fginsh_parser.yy;h=0134ab15ced455d8a4786d47fdd6d4a0bac995a9;hp=2e02b6cc1c7fdb171ecac700c4ad31eb1ca1a732;hb=955cb185a85535ab328ffedbfccdc508ce80fa91;hpb=c76a85d9ad2a9beeac6e26cb5c24a1bdbca911ed;ds=sidebyside diff --git a/ginsh/ginsh_parser.yy b/ginsh/ginsh_parser.yy index 2e02b6cc..0134ab15 100644 --- a/ginsh/ginsh_parser.yy +++ b/ginsh/ginsh_parser.yy @@ -341,7 +341,7 @@ static ex f_evalf2(const exprseq &e) static ex f_has(const exprseq &e) { - return e[0].has(e[1]) ? exONE() : exZERO(); + return e[0].has(e[1]) ? ex(1) : ex(0); } static ex f_inverse(const exprseq &e) @@ -353,7 +353,7 @@ static ex f_inverse(const exprseq &e) static ex f_is(const exprseq &e) { CHECK_ARG(0, relational, is); - return (bool)ex_to_relational(e[0]) ? exONE() : exZERO(); + return (bool)ex_to_relational(e[0]) ? ex(1) : ex(0); } static ex f_lcoeff(const exprseq &e) @@ -410,7 +410,7 @@ static ex f_rem(const exprseq &e) static ex f_series2(const exprseq &e) { CHECK_ARG(1, symbol, series); - return e[0].series(ex_to_symbol(e[1]), exZERO()); + return e[0].series(ex_to_symbol(e[1]), ex(0)); } static ex f_series3(const exprseq &e) @@ -677,7 +677,7 @@ static ex lst2matrix(const ex &l) if (l.op(i).nops() > j) m.set(i, j, l.op(i).op(j)); else - m.set(i, j, exZERO()); + m.set(i, j, ex(0)); return m; }