Changeset 46ef83 in git for Singular/iparith.cc
- Timestamp:
- Nov 20, 2000, 9:17:04 PM (24 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
- Children:
- dbf854d6f6f2ae3fe5c5fa8ccc9c20c1091fbb13
- Parents:
- 470c7c881fa69a3cf4b81eaeeb9289ca75f16cb6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
r470c7c r46ef83 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iparith.cc,v 1.23 2 2000-11-17 14:07:09Singular Exp $ */4 /* $Id: iparith.cc,v 1.233 2000-11-20 20:17:04 Singular Exp $ */ 5 5 6 6 /* … … 2949 2949 return FALSE; 2950 2950 } 2951 static BOOLEAN jjLIB(leftv res, leftv v)2952 {2953 return iiLibCmd((char *)v->CopyD(STRING_CMD));2954 }2955 2951 static BOOLEAN jjMEMORY(leftv res, leftv v) 2956 2952 { … … 3267 3263 static BOOLEAN jjLOAD(leftv res, leftv v, BOOLEAN autoexport) 3268 3264 { 3269 char * s= omStrDup((char *)v->Data());3265 char * s=(char *)v->CopyD(); 3270 3266 char libnamebuf[256]; 3271 3267 lib_types LT = type_of_LIB(s, libnamebuf); 3272 BOOLEAN result = TRUE;3273 3268 #ifdef HAVE_DYNAMIC_LOADING 3274 3269 extern BOOLEAN load_modules(char *newlib, char *fullpath, BOOLEAN tellerror); … … 3284 3279 case LT_SINGULAR: 3285 3280 #ifdef HAVE_NAMESPACES 3286 re sult =iiLibCmd(s, autoexport);3281 return iiLibCmd(s, autoexport); 3287 3282 #else 3288 re sult =iiLibCmd(s);3283 return iiLibCmd(s); 3289 3284 #endif 3290 break;3291 3285 3292 3286 case LT_ELF: 3287 case LT_HPUX: 3293 3288 #ifdef HAVE_DYNAMIC_LOADING 3294 re sult =load_modules(s, libnamebuf, autoexport);3289 return load_modules(s, libnamebuf, autoexport); 3295 3290 #else /* HAVE_DYNAMIC_LOADING */ 3296 3291 WerrorS("Dynamic modules are not supported by this version of Singular"); 3292 break; 3297 3293 #endif /* HAVE_DYNAMIC_LOADING */ 3298 break; 3299 3300 case LT_HPUX: 3301 #ifdef HAVE_DYNAMIC_LOADING 3302 result = load_modules(s, libnamebuf, autoexport); 3303 #else /* HAVE_DYNAMIC_LOADING */ 3304 WerrorS("Dynamic modules are not supported by this version of Singular"); 3305 #endif /* HAVE_DYNAMIC_LOADING */ 3306 break; 3307 } 3308 return result; 3294 } 3295 return TRUE; 3309 3296 } 3310 3297 … … 3548 3535 ,{jjUMINUS_IV, '-', INTMAT_CMD, INTMAT_CMD } 3549 3536 ,{jjPROC1, '(', ANY_TYPE/*set by p*/,PROC_CMD } 3550 ,{jjL IB,'(', NONE, STRING_CMD }3537 ,{jjLOAD1, '(', NONE, STRING_CMD } 3551 3538 // and the procedures with 1 argument: 3552 3539 ,{atATTRIB1, ATTRIB_CMD, NONE, DEF_CMD } … … 3672 3659 ,{jjLEADMONOM, LEADMONOM_CMD, POLY_CMD, POLY_CMD } 3673 3660 ,{jjLEADMONOM, LEADMONOM_CMD, VECTOR_CMD, VECTOR_CMD } 3674 ,{jjL IB,LIB_CMD, NONE, STRING_CMD }3661 ,{jjLOAD1, LIB_CMD, NONE, STRING_CMD } 3675 3662 ,{jjDUMMY, LINK_CMD, LINK_CMD, LINK_CMD} 3676 3663 ,{jjCALL1MANY, LIST_CMD, LIST_CMD, DEF_CMD }
Note: See TracChangeset
for help on using the changeset viewer.