#include "config.h"
Include dependency graph for tclAppInit.cc:

Go to the source code of this file.
Defines | |
| #define | NS_BEGIN_EXTERN_C extern "C" { |
| #define | NS_END_EXTERN_C } |
Functions | |
| void | abort () |
| void | init_misc (void) |
| NS_BEGIN_EXTERN_C int | main (int argc, char **argv) |
| static void | setup_floating_point_environment () |
| int | Tcl_AppInit (Tcl_Interp *interp) |
Variables | |
| EmbeddedTcl | et_ns_lib |
| EmbeddedTcl | et_ns_ptypes |
|
|
Definition at line 29 of file tclAppInit.cc. |
|
|
Definition at line 30 of file tclAppInit.cc. |
|
|
|
Definition at line 228 of file misc.cc. 00229 { 00230 (void)new VersionCommand; 00231 (void)new RandomCommand; 00232 (void)new TimeAtofCommand; 00233 (void)new HasInt64Command; 00234 (void)new HasSTLCommand; 00235 #if defined(HAVE_INT64) 00236 (void)new Add64Command; 00237 (void)new Mult64Command; 00238 (void)new Int64ToDoubleCommand; 00239 #endif 00240 }
|
|
||||||||||||
|
Definition at line 65 of file tclAppInit.cc. References Tcl_AppInit(). 00066 { 00067 Tcl_Main(argc, argv, Tcl_AppInit); 00068 return 0; /* Needed only to prevent compiler warning. */ 00069 }
Here is the call graph for this function: ![]() |
|
|
Definition at line 175 of file tclAppInit.cc. Referenced by Tcl_AppInit(). 00176 { 00177 #ifdef HAVE_NS_SETUP_FPU 00178 00179 ns_setup_fpu(); 00180 00181 #else /* !HAVE_NS_SETUP_FPU */ 00182 00183 // In general, try to use the C99 standards to set things up. 00184 // If we can't do that, do nothing and hope the default is right. 00185 #ifdef HAVE_FESETPRECISION 00186 fesetprecision(FE_DBLPREC); 00187 #endif 00188 00189 #ifdef HAVE_FEENABLEEXCEPT 00190 /* 00191 * In general we'd like to catch some serious exceptions (div by zero) 00192 * and ignore the boring ones (overflow/underflow). 00193 * We set up that up here. 00194 * This depends on feenableexcept which is (currently) GNU 00195 * specific. 00196 */ 00197 int trap_exceptions = 0; 00198 #ifdef FE_DIVBYZERO 00199 trap_exceptions |= FE_DIVBYZERO; 00200 #endif 00201 #ifdef FE_INVALID 00202 trap_exceptions |= FE_INVALID; 00203 #endif 00204 #ifdef FE_OVERFLOW 00205 trap_exceptions |= FE_OVERFLOW; 00206 #endif 00207 //#ifdef FE_UNDERFLOW 00208 // trap_exceptions |= FE_UNDERFLOW; 00209 //#endif 00210 00211 feenableexcept(trap_exceptions); 00212 #endif /* HAVE_FEENABLEEXCEPT */ 00213 #endif /* !HAVE_NS_SETUP_FPU */ 00214 }
|
|
|
Definition at line 237 of file tclAppInit.cc. References et_ns_lib, et_ns_ptypes, init(), init_misc(), and setup_floating_point_environment(). Referenced by main(). 00238 { 00239 #ifdef MEMDEBUG_SIMULATIONS 00240 extern MemTrace *globalMemTrace; 00241 globalMemTrace = new MemTrace; 00242 #endif 00243 00244 setup_floating_point_environment(); 00245 00246 if (Tcl_Init(interp) == TCL_ERROR || 00247 Otcl_Init(interp) == TCL_ERROR) 00248 return TCL_ERROR; 00249 00250 #ifdef HAVE_LIBTCLDBG 00251 extern int Tcldbg_Init(Tcl_Interp *); // hackorama 00252 if (Tcldbg_Init(interp) == TCL_ERROR) { 00253 return TCL_ERROR; 00254 } 00255 #endif 00256 00257 Tcl_SetVar(interp, "tcl_rcFileName", "~/.ns.tcl", TCL_GLOBAL_ONLY); 00258 Tcl::init(interp, "ns"); 00259 init_misc(); 00260 et_ns_ptypes.load(); 00261 et_ns_lib.load(); 00262 00263 00264 #ifdef TCL_TEST 00265 if (Tcltest_Init(interp) == TCL_ERROR) { 00266 return TCL_ERROR; 00267 } 00268 Tcl_StaticPackage(interp, "Tcltest", Tcltest_Init, 00269 (Tcl_PackageInitProc *) NULL); 00270 #endif /* TCL_TEST */ 00271 00272 return TCL_OK; 00273 }
Here is the call graph for this function: ![]() |
|
|
Referenced by Tcl_AppInit(). |
|
|
Referenced by Tcl_AppInit(). |
1.4.6