Changeset 286bd57 in git for Singular/mpsr_Get.cc
- Timestamp:
- Mar 28, 1997, 10:44:40 PM (27 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 16910e1c7d0e5650764c7686671407d794630421
- Parents:
- a6815bc36646e83a9fa1fd030f6cedf55e4441b5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/mpsr_Get.cc
ra6815b r286bd57 795 795 /*************************************************************** 796 796 * 797 * A routine which get the previous dump of Singular797 * A routine which gets the previous dump of Singular 798 798 * 799 799 ***************************************************************/ 800 BOOLEAN mpsr_GetDump(char *fn) 801 { 802 MP_Link_pt link = OpenMPFile(fn, 1); 803 BOOLEAN status; 804 805 if (link == NULL) return FALSE; 806 else status = mpsr_GetDump(link); 807 808 MP_CloseLink(link); 809 return status; 810 } 811 812 BOOLEAN mpsr_GetDump(MP_Link_pt link) 800 801 mpsr_Status_t mpsr_GetDump(MP_Link_pt link) 813 802 { 814 803 mpsr_sleftv mlv; … … 837 826 mpsr_PrintError(status); 838 827 } 839 840 841 return (status == mpsr_Success); 842 } 843 844 BOOLEAN mpsr_GetDump(leftv h) 845 { 846 if (h == NULL) 847 { 848 Print("Using file %s to get dump\n", MPSR_DEFAULT_DUMP_FILE); 849 return mpsr_GetDump(MPSR_DEFAULT_DUMP_FILE); 850 } 851 else if (h->Typ() == STRING_CMD) 852 { 853 return mpsr_GetDump((char *) h->Data()); 854 } 855 else if (h->Typ() == LINK_CMD) 856 { 857 si_link l = (si_link) h->Data(); 858 if (SI_LINK_R_OPEN_P(l) && mpsr_IsMPLink(l)) 859 return mpsr_GetDump((MP_Link_pt) l->data); 860 else 861 Werror("Can only get dump data from an already opened MP link"); 862 } 863 else 864 { 865 Werror("Need string or opened MP Link"); 866 } 867 return FALSE; 828 return status; 868 829 } 869 830 #endif
Note: See TracChangeset
for help on using the changeset viewer.