From 1c5f50be3b99721e70d51cb3c18f556d71f99861 Mon Sep 17 00:00:00 2001 From: Christian Bauer Date: Thu, 31 Jul 2003 00:10:26 +0000 Subject: [PATCH 1/1] initialize print_context registry on startup --- ginac/utils.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ginac/utils.cpp b/ginac/utils.cpp index 12a8d1b3..7291021d 100644 --- a/ginac/utils.cpp +++ b/ginac/utils.cpp @@ -366,6 +366,21 @@ library_init::library_init() _num48_p = reinterpret_cast(&((new numeric(48))->setflag(status_flags::dynallocated))); _num60_p = reinterpret_cast(&((new numeric(60))->setflag(status_flags::dynallocated))); _num120_p = reinterpret_cast(&((new numeric(120))->setflag(status_flags::dynallocated))); + + // Initialize print context class info (this is not strictly necessary + // but we do it anyway to make print_context_class_info::dump_hierarchy() + // output the whole hierarchy whether or not the classes are actually + // used) + print_context::get_class_info_static(); + print_dflt::get_class_info_static(); + print_latex::get_class_info_static(); + print_python::get_class_info_static(); + print_python_repr::get_class_info_static(); + print_tree::get_class_info_static(); + print_csrc::get_class_info_static(); + print_csrc_float::get_class_info_static(); + print_csrc_double::get_class_info_static(); + print_csrc_cl_N::get_class_info_static(); } } -- 2.44.0