* Implementation of GiNaC's overloaded operators. */
/*
- * GiNaC Copyright (C) 1999-2003 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2004 Johannes Gutenberg University Mainz, Germany
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
{
print_context *p = get_print_context(s);
if (p == 0)
- set_print_context(s, print_context(s, options));
+ set_print_context(s, print_dflt(s, options));
else
p->options = options;
}
{
print_context *p = get_print_context(os);
if (p == 0)
- e.print(print_context(os));
+ e.print(print_dflt(os));
else
e.print(*p);
return os;
std::ostream & dflt(std::ostream & os)
{
- set_print_context(os, print_context(os));
+ set_print_context(os, print_dflt(os));
set_print_options(os, 0);
return os;
}