/* * Initialize graphics context, color palette, local preferences. * Called both at program startup and by "reset session". */ void init_session() { /* Disable pipes and system commands during initialization */ successful_initialization = FALSE; /* Undefine any previously-used variables */ del_udv_by_name("",TRUE); /* Restore default colors before loading local preferences */ set_colorsequence(1); /* Reset program variables not handled by 'reset' */ overflow_handling = INT64_OVERFLOW_TO_FLOAT; /* Reset voxel data structures if supported */ init_voxelsupport(); /* Make sure all variables start in the same state 'reset' * would set them to. */ reset_command(); /* FIXME: this does c_token++ */ load_rcfile(0); /* System-wide gnuplotrc if configured */ load_rcfile(1); /* ./.gnuplot if configured */ /* After this point we allow pipes and system commands */ successful_initialization = TRUE; load_rcfile(2); /* ~/.gnuplot */ }
/* * Initialize graphics context, color palette, local preferences. * Called both at program startup and by "reset session". */ void init_session() { /* Disable pipes and system commands during initialization */ successful_initialization = FALSE; /* Undefine any previously-used variables */ del_udv_by_name("",TRUE); /* Restore default colors before loadin local preferences */ set_colorsequence(1); /* Make sure all variables start in the same state 'reset' * would set them to. */ reset_command(); /* FIXME: this does c_token++ */ load_rcfile(0); /* System-wide gnuplotrc if configured */ load_rcfile(1); /* ./.gnuplot if configured */ /* After this point we allow pipes and system commands */ successful_initialization = TRUE; load_rcfile(2); /* ~/.gnuplot */ }