Changeset feaddd in git for Singular/mpsr_Put.h


Ignore:
Timestamp:
Apr 10, 1997, 3:08:40 PM (27 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
91882f721049d2a9b2c3a5acda3db060a136600a
Parents:
6ae4f5a3079ec71b3f884bb50eb22a3919c9f9fb
Message:
Thu Apr 10 11:59:41 1997  Olaf Bachmann
<obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)>

	* remote quit is now arranged using MP_CopMpQuit

	* Updated mpsr_* files for new naming convention of MP v:1.1.2


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

Legend:

Unmodified
Added
Removed
  • Singular/mpsr_Put.h

    r6ae4f5 rfeaddd  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mpsr_Put.h,v 1.2 1997-04-09 12:20:03 Singular Exp $ */
     4/* $Id: mpsr_Put.h,v 1.3 1997-04-10 13:08:38 obachman Exp $ */
    55/***************************************************************
    66 *
     
    3232#include"MP_NumberDict.h"
    3333#include"MP_ProtoDict.h"
    34 
     34#include"MP_MpDict.h"
    3535
    3636
     
    7575inline mpsr_Status_t mpsr_PutString(MP_Link_pt link, char *str)
    7676{
    77   mp_return(MP_PutStringPacket(link, str, 0));
     77  if (strcmp(str, MPSR_QUIT_STRING) == 0)
     78    mp_return(MP_PutCommonOperatorPacket(link,
     79                                         MP_MpDict,
     80                                         MP_CopMpEndSession,
     81                                         0, 0));
     82  else
     83    mp_return(MP_PutStringPacket(link, str, 0));
    7884}
    7985extern mpsr_Status_t mpsr_PutRing(MP_Link_pt link, ring r);
     
    8187inline mpsr_Status_t mpsr_PutDef(MP_Link_pt link, char *name)
    8288{
    83   mp_return(MP_PutIdentifierPacket(link, name, 0, 0));
     89  mp_return(MP_PutIdentifierPacket(link, MP_SingularDict, name, 0));
    8490}
    8591// next, ring-dependent data
Note: See TracChangeset for help on using the changeset viewer.