static FILE *cli_gretlnet_open (const char *prog) { FILE *fp = NULL; set_gretlnet_filename(prog); if (*netfile != '\0') { fp = gretl_fopen(netfile, "r"); } return fp; }
void gretl_win32_init (const char *progname, int debug) { char tmp[4] = {0}; set_gretlnet_filename(progname); /* Are we using the XP theme (as opposed to "classic")? In that case we'll make use of libwimp the default, prior to reading the user's config file. */ read_reg_val(HKEY_CURRENT_USER, "Microsoft\\Windows\\CurrentVersion\\ThemeManager", "ThemeActive", tmp); set_wimp_preferred(!strcmp(tmp, "1")); read_win32_config(debug); set_gretl_startdir(); }