Changeset 716b74a in tol
- Timestamp:
- Jan 19, 2011, 3:04:39 PM (16 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- ee8167a
- Parents:
- 8916937
- File:
-
- 1 edited
-
tol/contrib/cint/tolCint.cpp (modified) (20 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/contrib/cint/tolCint.cpp
r8916937 r716b74a 24 24 #include <contrib/cint/tolCint.h> 25 25 26 #include <tol/tol_bdir.h> 26 27 #include <tol/tol_blanguag.h> 27 28 #include <tol/tol_bdatgra.h> … … 117 118 118 119 //-------------------------------------------------------------------- 119 void Cint_not_linked_message (void) 120 //-------------------------------------------------------------------- 121 { 122 Error("Cannot use CINT due to libcint.dll is not linked."); 120 void Cint_not_linked_message (const char* function) 121 //-------------------------------------------------------------------- 122 { 123 Error(BText("Cannot use CINT function ")+function+ 124 " due to libcint.dll is not linked."); 123 125 } 124 126 … … 129 131 if(!G__scratch_all_ptr) 130 132 { 131 Cint_not_linked_message( );133 Cint_not_linked_message("Cint_scratch_all"); 132 134 return; 133 135 } … … 141 143 if(!G__lasterror_filename_ptr) 142 144 { 143 Cint_not_linked_message( );145 Cint_not_linked_message("Cint_lasterror_filename"); 144 146 return(NULL); 145 147 } … … 153 155 if(!G__lasterror_linenum_ptr) 154 156 { 157 Cint_not_linked_message("Cint_lasterror_linenum"); 155 158 return(0); 156 159 } … … 164 167 if(!G__init_cint_ptr) 165 168 { 166 Cint_not_linked_message( );169 Cint_not_linked_message("Cint_init_cint"); 167 170 return(-1); 168 171 } … … 176 179 if(!G__set_errmsgcallback_ptr) 177 180 { 178 Cint_not_linked_message( );181 Cint_not_linked_message("Cint_set_errmsgcallback"); 179 182 return; 180 183 } … … 188 191 if(!G__setautoconsole_ptr) 189 192 { 190 Cint_not_linked_message( );193 Cint_not_linked_message("Cint_setautoconsole"); 191 194 return; 192 195 } … … 200 203 if(!G__SetCINTSYSDIR_ptr) 201 204 { 202 Cint_not_linked_message( );205 Cint_not_linked_message("Cint_SetCINTSYSDIR"); 203 206 return; 204 207 } … … 212 215 if(!G__loadfile_ptr) 213 216 { 214 Cint_not_linked_message( );217 Cint_not_linked_message("Cint_loadfile"); 215 218 return(0); 216 219 } … … 224 227 if(!G__unloadfile_ptr) 225 228 { 226 Cint_not_linked_message( );229 Cint_not_linked_message("Cint_unloadfile"); 227 230 return(0); 228 231 } … … 237 240 if(!G__exec_tempfile_ptr) 238 241 { 239 Cint_not_linked_message( );242 Cint_not_linked_message("Cint_exec_tempfile"); 240 243 return(gv); 241 244 } … … 250 253 if(!G__exec_text_ptr) 251 254 { 252 Cint_not_linked_message( );255 Cint_not_linked_message("Cint_exec_text"); 253 256 return(gv); 254 257 } … … 262 265 if(!G__int_ptr) 263 266 { 264 Cint_not_linked_message( );267 Cint_not_linked_message("Cint_int"); 265 268 return(0); 266 269 } … … 274 277 if(!G__double_ptr) 275 278 { 276 Cint_not_linked_message( );279 Cint_not_linked_message("Cint_double"); 277 280 return(BDat::Unknown().Value()); 278 281 } … … 287 290 if(!G__calc_ptr) 288 291 { 289 Cint_not_linked_message( );292 Cint_not_linked_message("Cint_calc"); 290 293 return(gv ); 291 294 } … … 299 302 if(!G__deletevariable_ptr) 300 303 { 301 Cint_not_linked_message( );304 Cint_not_linked_message("Cint_deletevariable"); 302 305 return(0); 303 306 } … … 351 354 { 352 355 Cint_is_initialized() = true; 353 if(!Cint_dynamic_linkage()) { return(false); } 356 int linked = Cint_dynamic_linkage(); 357 if(!linked) { return(false); } 354 358 BText order = "cint"; 355 359 if(filePath.HasName()) { order += BText(" ")+filePath; } … … 391 395 392 396 //-------------------------------------------------------------------- 397 int Cint_initialize_tol_variables() 398 //-------------------------------------------------------------------- 399 { 400 int linked = Cint_dynamic_linkage(); 401 BSystemDat* linked_ = new BSystemDat("Cint_IsLinked", linked, 402 I2("Is true if optional libcint library has been linked succesfully.", 403 "Es cierto si la librería opcional libcint ha sido enlazada correctamente")); 404 return(linked); 405 } 406 407 //-------------------------------------------------------------------- 393 408 DeclareContensClass(BDat, BDatTemporary, BDatCint_SetCINTSYSDIR); 394 409 DefExtOpr(1, BDatCint_SetCINTSYSDIR, "Cint.SetCINTSYSDIR", 1, 1, "Text", … … 402 417 { 403 418 if(CheckNonDeclarativeAction("Cint.SetCINTSYSDIR")) { return; } 404 BText& filePath = Text(Arg(1)); 405 Cint_SetCINTSYSDIR(filePath); 406 contens_ = 1; 419 BText& dirPath = Text(Arg(1)); 420 bool ok = G__SetCINTSYSDIR_ptr!=NULL; 421 422 if(!BDir::CheckIsDir(dirPath)) 423 { 424 Error(BText("[Cint.SetCINTSYSDIR]")+" Not found path "+dirPath); 425 ok = false; 426 } 427 contens_ = ok; 428 if(ok) 429 { 430 Cint_SetCINTSYSDIR(dirPath); 431 } 407 432 } 408 433
Note: See TracChangeset
for help on using the changeset viewer.
