Changeset 286bd57 in git for Singular/mpsr_Get.cc


Ignore:
Timestamp:
Mar 28, 1997, 10:44:40 PM (27 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
16910e1c7d0e5650764c7686671407d794630421
Parents:
a6815bc36646e83a9fa1fd030f6cedf55e4441b5
Message:
Fri Mar 28 14:12:05 1997  Olaf Bachmann
<obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)>

	* Added routines dump(link) and getdump(link) for ascii and MP
	  links

	* ipconv.cc (dConvertTypes): added int->module conversion so that
	  'module m = 0' works

	* iparith.cc (jjVAR1): added LINK_CMD to list of typeof(...)


git-svn-id: file:///usr/local/Singular/svn/trunk@124 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/mpsr_Get.cc

    ra6815b r286bd57  
    795795/***************************************************************
    796796 * 
    797  * A routine which get the previous dump of Singular
     797 * A routine which gets the previous dump of Singular
    798798 *
    799799 ***************************************************************/
    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
     801mpsr_Status_t mpsr_GetDump(MP_Link_pt link)
    813802{
    814803  mpsr_sleftv mlv;
     
    837826      mpsr_PrintError(status);
    838827  }
    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;
    868829}
    869830#endif
Note: See TracChangeset for help on using the changeset viewer.