Changeset 2a2c07 in git


Ignore:
Timestamp:
Apr 18, 1997, 1:25:03 PM (26 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
d6a968ad46e91f0ffffede4a68649eea37ed52c6
Parents:
ef304d9dba21b588603cac1440c1ae1fe53a012e
Message:
Fri Apr 18 09:47:22 1997  Olaf Bachmann
<obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)>

	* silink.cc (DumpAsciiIdhdl): LIB string is dumped without type
	  declaration

	* mpsr_Get.cc (InitIdentifierLeftv): used mpsr_SetCurrRing(r,
	  TRUE) so that pOne works if no ring did previously exist.

	* iparith.cc: Added jjPROC3.

Tue Apr 15 12:07:17 1997  Olaf Bachmann
<obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)>

	* silink.cc (slStandardInit): changed Ascii type specifyer from
	  "ascii" to "Ascii" for consistency

	* iparith.cc : added #else branch to #ifdef HAVE_FGLM in proc table

	*  (extra.cc): system("sh",command) returns exit status of command


git-svn-id: file:///usr/local/Singular/svn/trunk@173 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • Singular/ChangeLog

    ref304d r2a2c07  
     1Fri Apr 18 09:47:22 1997  Olaf Bachmann  <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)>
     2
     3        * silink.cc (DumpAsciiIdhdl): LIB string is dumped without type
     4          declaration
     5
     6        * mpsr_Get.cc (InitIdentifierLeftv): used mpsr_SetCurrRing(r,
     7          TRUE) so that pOne works if no ring did previously exist.
     8
     9        * iparith.cc: Added jjPROC3.
     10
    111Tue Apr 15 12:07:17 1997  Olaf Bachmann  <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)>
    212
  • Singular/iparith.cc

    ref304d r2a2c07  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iparith.cc,v 1.21 1997-04-17 17:52:18 Singular Exp $ */
     4/* $Id: iparith.cc,v 1.22 1997-04-18 11:24:55 obachman Exp $ */
    55/*
    66* ABSTRACT: table driven kernel interface, used by interpreter
     
    21422142static BOOLEAN jjPROC1(leftv res, leftv u)
    21432143{
    2144   leftv sl = iiMake_proc((idhdl)u->data,NULL);
     2144  if ((u->rtyp!=IDHDL) || (u->e!=NULL))
     2145    return TRUE;
     2146  leftv sl = iiMake_proc((idhdl) u->data,NULL);
    21452147  if (sl==NULL)
    21462148  {
     
    33233325  return FALSE;
    33243326}
     3327static BOOLEAN jjPROC3(leftv res, leftv u, leftv v, leftv w)
     3328{
     3329  v->next=(leftv)Alloc(sizeof(sleftv));
     3330  memcpy(v->next,w,sizeof(sleftv));
     3331  BOOLEAN r=iiExprArith2(res,u,'(',v);
     3332  v->rtyp=0; v->data=NULL;
     3333  w->rtyp=0; w->data=NULL;
     3334  return r;
     3335}
    33253336static BOOLEAN jjCALL3MANY(leftv res, leftv u, leftv v, leftv w)
    33263337{
     
    36563667,{jjBRACK_Ma_IV_I,  '[',        POLY_CMD,   MATRIX_CMD, INTVEC_CMD, INT_CMD }
    36573668,{jjBRACK_Ma_IV_IV, '[',        POLY_CMD,   MATRIX_CMD, INTVEC_CMD, INTVEC_CMD }
     3669,{jjPROC3,          '(',        ANY_TYPE,   PROC_CMD,   DEF_CMD,    DEF_CMD }
    36583670,{atATTRIB3,        ATTRIB_CMD, NONE,       IDHDL,      STRING_CMD, DEF_CMD }
    36593671,{jjCOEFFS3_P,      COEFFS_CMD, MATRIX_CMD, POLY_CMD,   POLY_CMD,   MATRIX_CMD }
  • Singular/mpsr_Get.cc

    ref304d r2a2c07  
    33****************************************/
    44
    5 /* $Id: mpsr_Get.cc,v 1.8 1997-04-10 13:08:36 obachman Exp $ */
     5/* $Id: mpsr_Get.cc,v 1.9 1997-04-18 11:24:58 obachman Exp $ */
    66/***************************************************************
    77 *
     
    211211     
    212212      pos = mpsr_rDefault(0, name, mlv->r);
    213       mpsr_SetCurrRing(mlv->r, FALSE);
     213      mpsr_SetCurrRing(mlv->r, TRUE);
    214214      p = pOne();
    215215      p->exp[pos+1] = 1;
  • Singular/mpsr_GetMisc.cc

    ref304d r2a2c07  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mpsr_GetMisc.cc,v 1.4 1997-04-02 15:07:38 Singular Exp $ */
     4/* $Id: mpsr_GetMisc.cc,v 1.5 1997-04-18 11:25:00 obachman Exp $ */
    55
    66/***************************************************************
     
    416416idhdl mpsr_FindIdhdl(char *name, ring &r)
    417417{
    418   idhdl h = idroot->get(name, 0), h2;
     418  idhdl h = (idroot != NULL ? idroot->get(name, 0): NULL), h2;
    419419  r = NULL;
    420420 
     
    430430    if (IDTYP(h) == RING_CMD || IDTYP(h) == QRING_CMD)
    431431    {
    432       h2 = IDRING(h)->idroot->get(name, 0);
     432      h2 = (IDRING(h)->idroot!=NULL ?IDRING(h)->idroot->get(name, 0) : NULL);
     433     
    433434      if (h2 != NULL)
    434435      {
  • Singular/silink.cc

    ref304d r2a2c07  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: silink.cc,v 1.9 1997-04-15 12:48:37 obachman Exp $ */
     4/* $Id: silink.cc,v 1.10 1997-04-18 11:25:01 obachman Exp $ */
    55
    66/*
     
    510510  if (type_id == QRING_CMD) return DumpQring(fd, h, type_str);
    511511 
     512  if (type_id == STRING_CMD && strcmp("LIB", IDID(h)) == 0)
     513  {
     514    if (fprintf(fd, "LIB \"%s\";\n", IDSTRING(h)) == EOF) return TRUE;
     515    else return FALSE;
     516  }
     517                                     
    512518  // put type and name
    513519  if (fprintf(fd, "%s %s", type_str, IDID(h)) == EOF) return TRUE;
  • Singular/subexpr.cc

    ref304d r2a2c07  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: subexpr.cc,v 1.12 1997-04-09 12:20:14 Singular Exp $ */
     4/* $Id: subexpr.cc,v 1.13 1997-04-18 11:25:03 obachman Exp $ */
    55
    66/*
     
    11991199  {
    12001200    int t=Typ();
    1201     void *d=CopyD(t);
    1202     data=d;
    1203     rtyp=t;
    1204     name=NULL;
    1205     e=NULL;
     1201    if (t!=PROC_CMD)
     1202    {
     1203      void *d=CopyD(t);
     1204      data=d;
     1205      rtyp=t;
     1206      name=NULL;
     1207      e=NULL;
     1208    }
    12061209  }
    12071210  else if (rtyp==COMMAND)
Note: See TracChangeset for help on using the changeset viewer.