Changeset 1d1101 in git for Singular/iplib.cc
- Timestamp:
- Apr 27, 1998, 4:58:09 PM (25 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- 48ef1b78f26c10a268b5e62bb42f0787fe9e3b18
- Parents:
- 9e2ba3333cb37221b091178f15de38c4f2cfbf24
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iplib.cc
r9e2ba3 r1d1101 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iplib.cc,v 1.2 0 1998-04-27 12:34:16 obachmanExp $ */4 /* $Id: iplib.cc,v 1.21 1998-04-27 14:58:09 krueger Exp $ */ 5 5 /* 6 6 * ABSTRACT: interpreter: LIB and help … … 194 194 strcat(s+procbuflen-3, "\n;return();\n\n" ); 195 195 p=strchr(s,'{'); 196 if (p!=NULL) * s=' ';196 if (p!=NULL) *p=' '; 197 197 return(s); 198 198 } … … 322 322 { 323 323 leftv res = (leftv)Alloc0(sizeof(sleftv)); 324 res->rtyp=NONE; 324 325 err = (pi->data.o.function)(res, sl); 325 326 iiRETURNEXPR[myynest+1].Copy(res); … … 431 432 } 432 433 434 /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/ 433 435 BOOLEAN iiLibCmd( char *newlib, BOOLEAN tellerror ) 434 436 { … … 695 697 } 696 698 699 /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/ 697 700 procinfo *iiInitSingularProcinfo(procinfov pi, char *libname, char *procname, 698 701 int line, long pos, BOOLEAN pstatic) … … 721 724 } 722 725 726 #ifdef HAVE_DYNAMIC_LOADING 727 /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/ 728 int iiAddCproc(char *libname, char *procname, BOOLEAN pstatic, 729 BOOLEAN(*func)(leftv res, leftv v)) 730 { 731 procinfov pi; 732 idhdl h; 733 734 h = enterid(mstrdup(procname),0, PROC_CMD, &idroot, FALSE); 735 if ( h!= NULL ) { 736 Print("register binary proc: %s::%s\n", libname, procname); 737 pi = IDPROC(h); 738 pi->libname = mstrdup(libname); 739 pi->procname = mstrdup(procname); 740 pi->language = LANG_C; 741 pi->ref = 1; 742 pi->is_static = pstatic; 743 pi->data.o.function = func; 744 return(1); 745 } else { 746 Print("iiAddCproc: failed.\n"); 747 } 748 return(0); 749 } 750 #endif /* HAVE_DYNAMIC_LOADING */ 751 723 752 /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/ 724 753 char *iiConvName(char *libname)
Note: See TracChangeset
for help on using the changeset viewer.