Changeset c3cb95 in git
- Timestamp:
- Sep 22, 1999, 4:42:33 PM (24 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- acd64363f3a94a76f781aa7beb80a6853c595eba
- Parents:
- 7b17cd27ba32c45609788f798f47448a335f99a5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iplib.cc
r7b17cd2 rc3cb95 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iplib.cc,v 1.6 0 1999-08-16 12:39:57Singular Exp $ */4 /* $Id: iplib.cc,v 1.61 1999-09-22 14:42:33 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: interpreter: LIB and help … … 788 788 789 789 /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/ 790 #ifndef HAVE_NAMESPACES 791 static void iiCleanProcs(idhdl &root) 792 { 793 loop 794 { 795 if (root==NULL) return; 796 if (IDTYP(root)==PROC_CMD) 797 { 798 procinfo pi=(procinfo)IDDATA(root); 799 if ((pi->language == LANG_SINGULAR) 800 && (pi->data.s.body_start == 0L)) 801 { 802 // procinfo data incorrect: 803 // - no proc body can start at the beginning of the file 804 killhdl(&root); 805 } 806 continue; 807 } 808 root=IDNEXT(root); 809 } 810 } 811 /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/ 790 812 static BOOLEAN iiLoadLIB(FILE *fp, char *libnamebuf, char*newlib, 791 813 idhdl pl, BOOLEAN autoexport, BOOLEAN tellerror) … … 822 844 reinit_yylp(); 823 845 fclose( yylpin ); 846 #ifdef HAVE_NAMESPACES 847 iiCleanProcs(idroot); 848 #endif /* HAVE_NAMESPACES */ 824 849 return TRUE; 825 850 }
Note: See TracChangeset
for help on using the changeset viewer.