Diff
Not logged in

Differences From Artifact [82e8fb7f0f]:

To Artifact [65b8aa38c9]:


154
155
156
157
158
159
160
161
162
163
164

165
166
167

168
169




170
171
172
173
174
175
176
154
155
156
157
158
159
160

161


162
163


164
165
166
167
168
169
170
171
172
173
174
175
176
177







-

-
-
+

-
-
+


+
+
+
+








    /*
     * Specify a user-specific startup file to invoke if the application is
     * run interactively. Typically the startup file is "~/.apprc" where "app"
     * is the name of the application. If this line is deleted then no
     * user-specific startup file will be run under any conditions.
     */

#ifdef DJGPP
    Tcl_ObjSetVar2(interp, Tcl_NewStringObj("tcl_rcFileName", TCL_INDEX_NONE), NULL,
	    Tcl_NewStringObj("~/tclsh.rc", TCL_INDEX_NONE), TCL_GLOBAL_ONLY);
#define INITFILENAME "tclshrc.tcl"
#else
    Tcl_ObjSetVar2(interp, Tcl_NewStringObj("tcl_rcFileName", TCL_INDEX_NONE), NULL,
	    Tcl_NewStringObj("~/.tclshrc", TCL_INDEX_NONE), TCL_GLOBAL_ONLY);
#define INITFILENAME ".tclshrc"
#endif

    (void)Tcl_EvalEx(interp,
		     "set tcl_rcFileName [file tildeexpand ~/" INITFILENAME "]",
		     -1,
		     TCL_EVAL_GLOBAL);
    return TCL_OK;
}

/*
 * Local Variables:
 * mode: c
 * c-basic-offset: 4